2 Replies Latest reply on Oct 20, 2005 11:03 AM by Ramon Grunder

    Accessing Local interfaces

    Blaise Gosselin Newbie


      I have created an EAR application, containing a WAR module and an EJB JAR module.
      I'd like to call only the Local interfaces of my EJB.

      In the J2EE specification, it seems that the Local interfaces can only be called when the WAR module and the EJB module reside in the same EAR.

      I made a test, and even if I put my WAR file and my EJB-JAR file in JBoss without grouping them in an EAR unit, it works.
      How is it possible ? I prefer like that, but I don't want my application not to work on others application server if this is not possible.

      Thanks in advance.

        • 1. Re: Accessing Local interfaces
          Rene Felder Newbie

          ... did you give them two different classloaders? Otherwise the unified classloader repository is used, therefor you have access to classes in other war's and ejb's.

          If you want to isolate the war use a jboss-web.xml descriptor such as:

          <?xml version="1.0" encoding="UTF-8"?>
          <class-loading java2ClassLoadingCompliance="true">

          Greets Rene

          • 2. Re: Accessing Local interfaces
            Ramon Grunder Newbie

            I've a terribly hard time trying to set up exactly this... Do you have an example you can post or a link to a good example?

            Thanks a lot