5 Replies Latest reply on Apr 30, 2003 8:49 PM by chris

    multiple ear files

    chris Newbie

      Is it possible to have a single instance of Jboss running multiple ear's with different classloaders, and have the deployed ejb's talk to eachother?

      I have been having some trouble with this and am trying to figure out what I need to change in the configuration to get it all to work properly.

        • 1. Re: multiple ear files
          Daniel Silcox Newbie

          Just another developer here....
          Seems like under that deployment configuration the ejb's would have to "talk" through remote jndi lookups. If you find a different solution please post.

          • 2. Re: multiple ear files
            Daniel Silcox Newbie

            Just another developer here...
            seems like under this configuration all the "talking" would have to be done through the remote interface. If you find a different soloution other than putting all the ejbs under the same ear please post.

            • 3. Re: multiple ear files
              chris Newbie

              We have purchased the documentation on JBoss and cannot find anything about having multiple ears deployed into one app-server and having the ejb's from each of the ears talk to eachother.

              Someone please respond, We really want to use JBoss but right now it does not look like we can do what we need!

              • 4. Re: multiple ear files
                chris Newbie

                Thanks for the reply! :)

                I tried both using a context from
                Context ic = new InitialContext(). Which gave me a class cast exception, the Home interface was loaded by the classloader in the other ear file.

                I also tried setting the properties and going through port 1099, but that gave me a NullPointerException, I am currently looking at the errors from this one. I will re-post when I know something concrete.

                • 5. Re: multiple ear files
                  chris Newbie

                  well, I have put more of this together, but dont understand what is going on. When I connect to the jnp port, I get the following exception, if someone would like to see more I would really appreciate some feedback as to how to fix this!

                  java.lang.NullPointerException
                  at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercep
                  tor.java:97)
                  at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1
                  20)
                  at org.jboss.ejb.plugins.CleanShutdownInterceptor.invokeHome(CleanShutdo
                  wnInterceptor.java:198)

                  Ideally we would like to connect to the appserver using the default InitialContext but I cannot seem to figure out how to do that.