aspose file tools
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
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

JAX-WS client and service within same VM

Akila Panditha

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.
I agree. Here's the link:
subject: JAX-WS client and service within same VM