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. Thanks.
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. Kyle