• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX-WS Service using IBM WAS and Spring Injection mechanism

 
Venkataprasath Padmanabhan
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic