Hi,
I am using 3.0.8 Jboss and have a concern about using ejb-link. This
is an optional in remote interfaces, but for local references it is
obligatory.
So to summon up if you have two Beans where they want to talk
peer-to-peer by local interfaces then we have a problem if they are in
different jar files.
If we use ejb-link (<ejb-link>beanA-ejb.jar#beanA</ejb-link>) this
bean must be deployed before, so it is impossible to have
communication for instance beanA<->beanB by local references when they
are in different jar files.
Is there any solution how to resolve that issue or I have to use only
remote lookup in that case?
Thanks in advance,
Albert
Pavel Kolesnikov - 22 Jul 2004 17:30 GMT
> If we use ejb-link (<ejb-link>beanA-ejb.jar#beanA</ejb-link>) this
> bean must be deployed before, so it is impossible to have
> communication for instance beanA<->beanB by local references when they
> are in different jar files.
I guess you're not allowed to use local interfaces to access EJB
deployed in different JARs. At least in older versions of JBoss.
It should work if you created an "allmybeans.jar" containing both
of your beans - just put simple <ejb-link>beanA</ejb-link>
to your deployment descriptor.
Pavel