Win a copy of liveProject: Build an ML Recommender System this week in the Artificial Intelligence and Machine Learning forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Webapp to call another webapp in WebSphere

Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a war file deployed on WebSphere containing service code which I would like other war files to find and utilize. I would also like to have other war files (on different app servers) find and utilize this service code. An added bonus would be the same method for finding the service in both scenarios.
What are my options?
RMI-IIOP? I need to compile a stub, skel, and put a skel reference in a JNDI provider? Does WebSphere do this?
Standard class invocation? Open up the classloader configs for my service WAR so other web archives' classloader can find and instantiate my class?
EJB? Make my service class an EJB and have clients find the home interface through JNDI
Any others? I just can't figure out how to have one webapp call another without bundling the two together.
Posts: 3892
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Extract the service code from the WAR file into a standard JAR file and have all of the different WAR files include that JAR file. Read this article by Keys Botzum for more advice along these lines.
    Bookmark Topic Watch Topic
  • New Topic