-
1. Re: InterfaceRepository of EJB
reverbel Sep 1, 2003 4:13 PM (in response to flitzie)> 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 Sep 6, 2003 4:21 PM (in response to 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?