This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Hard time getting Spring working with WS'. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Hard time getting Spring working with WS Watch "Hard time getting Spring working with WS New topic
Author

Hard time getting Spring working with WS'.

Dave Brown
Ranch Hand

Joined: Mar 08, 2005
Posts: 301
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


Regards, Dave Brown
SCJP 6 - [url]http://www.dbws.net/[/url] - Check out Grails Forum
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hard time getting Spring working with WS'.
 
Similar Threads
Why is autowiring working in JUnit test but not in bean?
Spring Multiple Service Design approach
@Autowired component within it self
@Autowired not working in JUnit using spring 2.5
Is not autowire a another type of dependendcy injection?