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.