For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > July 2004 > ejb-link in Jboss









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ejb-link in Jboss
Alberto

2004-07-22, 3:57 pm

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

2004-07-22, 3:57 pm

Alberto <albert_dabrowski@yahoo.co.uk> wrote:

> 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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com