• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hard time getting Spring working with WS'.

 
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Hoping someone maybe able to help here as I'm beginning to get pretty stumped..

I have an already nicely 'autowired' j2ee application with spring 2.5.6, service layer and a DAO layer and am trying to create a JAX-WS based webservice.

Well even the webservice is ok, until I try and use my Servicelayer objects within it, in which case they are not being automatically propagated via Spring.

I have my webservice defined as follows...



I am trying to extend the autowiring support as that appears to be the way that Spring allows you to use Autowiring within webservices. I also have the 'Service' annotation there as without that Spring doesn't autowire my Tests(abstractJpaTests).

I have none of the beans defined in applicationContext.xml as they are all, up untill now automatically taken care of using context:component-scan

So please if anyone can give me a hint as to why when deployed (And Spring IS definately initialised) that the autowiring isnt taking place then I would very much appreciate it.

Thanks
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic