• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Axis 1.* objects feeded by Spring

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic