This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes JAX-WS client and service within same VM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS client and service within same VM" Watch "JAX-WS client and service within same VM" New topic
Author

JAX-WS client and service within same VM

Akila Panditha
Greenhorn

Joined: Jun 04, 2014
Posts: 1
Hi All ,

I want to implement Jax-WS client within same VM as service to enable cascading of service calls between different instances ( deployed in different servers ). Basically I want to enable my service to act as a proxy to different instance of same service based on some defined conditions.

When i initiate client inside service , JAX-WS and JAXB gives errors because of conflicting classes with same target name space. ( service implementation classes and generated stubs from wsimport have same target namespaces) . I have tried running client on separate thread with custom class-loader set as the thread's context class loader but namespace conflicts still remains. Also i tried injecting custom JAXB context while initiating client but haven't succeeded yet.

I am seeking for expert advice on method to achieve my goal. Also please provide your comments on feasibility of this as well.

( please note that this is different from a clustering scenario, service instances are managed by different set of entities and requirement is to maintain conditional communication between them )

Thank you.
 
Consider Paul's rocket mass heater.
 
subject: JAX-WS client and service within same VM
 
Similar Threads
Wsimport and jaxb binding issue
Webservices made easier ?
Any feedback for SCDJWS Beta?
FREE CERTIFICATION BETA: SCDJWS 5
My personal test review about SCDJWS 5 beta