This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis 1.* objects feeded by Spring  RSS feed

Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello dear cervidea,

I am using Axis in order to implement WS. Those WS are supposed to call some Business logic already present in a business layer whose beans are instantiated by Spring. I would like to know how to inject dependencies using Spring in my WS objects.

I saw some examples for Axis2 where you can say to Axis servlet that your WS beans will be instantiated by Spring. So you can declare the beans in your applicationContext.xml and inject the dependencies.
I also saw some examples for Axis1 where people access to the Spring ApplicationContext inside the code extending Spring "ServletEndpointSupport" and that's the way I am currently doing it :

However I am not satisfied because I'd prefer to create the dependencies in some configuration file rather than directly inside my Java code.

In other words I would like to know if there is a way to delegate the end point webservice objects instantiation to spring. Or at least ask Axis to inject the BusinessObjects using Spring context.
I found a beautiful pie. And a tiny ad:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!