2 Replies Latest reply on Sep 6, 2003 4:21 PM by flitzie

    InterfaceRepository of EJB

    flitzie

      How can I add IDL files/class files into an InterfaceRepository?

      I used JacORB's idl compiler with -ir option and put the generated class files into my EJB.jar directory. Then I used JacORB's IRBrowser to look into the InterfaceRepository, but there are only the Classes/IDL's of my EJB.

      I checked the iiop-service.xml file, but there are no settings for JBoss's IR.

      Well, can anbody help me?

      BTW: Does JBoss 3.2.1 use the InterfaceRepository of JacORB or another/modified version?

      TIA

      flitzie

        • 1. Re: InterfaceRepository of EJB
          reverbel

          > How can I add IDL files/class files into an
          > InterfaceRepository?

          You cannot. When an EJB is deployed in JBoss, its interfaces/classes are automatically added to a brand new interface repository.

          > I used JacORB's idl compiler with -ir option and put
          > the generated class files into my EJB.jar directory.
          > Then I used JacORB's IRBrowser to look into the
          > InterfaceRepository, but there are only the
          > Classes/IDL's of my EJB.

          This is correct. JBoss activates one interface repository per deployed EJB. This interface repository has the sole purpose of handling _get_interface_def invocations on the EJB home and on its instances.

          The rationale here is: types that were not originally defined in IDL (EJB interfaces and classes) are automatically placed in an interface repository, with no explicit IDL translation step. If you also have types defined in IDL, set up a separate interface repository for these and feed type definitions into that repository as usual.

          The reason JBoss activates an interface repository per deployed EJB is that different EJBs can have distinct interfaces with the same (fully qualified) name.

          > BTW: Does JBoss 3.2.1 use the InterfaceRepository of
          > JacORB or another/modified version?

          No, JBoss does not use JacORB's interface repository. Moreover, the IR in JBoss is not a general-purpose IR such as JacORB's IR.

          Cheers,

          Francisco

          • 2. Re: InterfaceRepository of EJB
            flitzie

            > This interface repository has the sole purpose of handling _get_interface_def invocations on the EJB home and on its instances.

            I can confirm it. I have taken a look into JBoss's sources :)

            Now i am using another IR because my client doesn't support _get_interface_def but the older one _get_interface.

            BTW:
            Is it possible to add another Java-IR that JBoss will start and feed automatically?