3 Replies Latest reply on Mar 23, 2004 11:54 AM by ahardy66

    using ServiceLocator to cache RemoteHomes

    ahardy66

      I'm using the ServiceLocator pattern to cache my RemoteHome objects in the client, which is in a war.

      Each time I redeploy the war, somehow tomcat or jboss keeps the ServiceLocator instance in memory so that the cache is still there and I can use the old RemoteHome for any EJB, but it will throw an InvalidInvocation Exception.

      How can I test my RemoteHome to see if it is still valid or whether it will throw an InvalidInvocationException?

      Thanks,
      Adam