wood burning stoves 2.0*
The moose likes Web Services and the fly likes JAX-WS Service using IBM WAS and Spring Injection mechanism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS Service using IBM WAS and Spring Injection mechanism" Watch "JAX-WS Service using IBM WAS and Spring Injection mechanism" New topic
Author

JAX-WS Service using IBM WAS and Spring Injection mechanism

Venkataprasath Padmanabhan
Greenhorn

Joined: Jul 14, 2011
Posts: 10
Hi,

I am in the process of creating top down JAX-WS services using WSDL. I use RAD to achieve this. RAD creates a WebService project with web.xml and other ibm related configuration. In this service implementation class, I would like to invoke another business object layer which invokes DAO and so forth. I have my projects organized to have BO and DAO layer which are bound using Spring DI. When I put things together with my web service implementation class, I am wondering how to load Spring application context so that my BO layer is injected with proper DAO objects. I have done this using CXF/Spring in which the context config location is configured in web.xml. Here, I'm not using CXF.

I can have a factory to load the application context using ClassPathXMLApplicationContext.

I would like to know some suggestions and best practices on this.

Regards,
Venkat
Brian Mulholland
Ranch Hand

Joined: Mar 12, 2009
Posts: 61
*bump*

I am in a similar situation. I have a web service created by using "Create Web Service" in RAD, but if I try to include get/sets for my dao so spring can inject it, the web service doesn't generate. I am also unclear how to make the web service a spring managed class. Seems like I need an interceptor or filter between the web service and the caller, but I am not sure how to accomplish that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAX-WS Service using IBM WAS and Spring Injection mechanism
 
Similar Threads
Hard time getting Spring working with WS'.
Web Application and Web Service inside one 'War' archive
WebServiceContext or handle to session in CXF JAX-RS implementation
Suggestion Required on packaging POJOs/DTOs with Web Service projects
Web Services Security in tomcat6