• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAX-WS client and service within same VM

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic