Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / July 2004

Tip: Looking for answers? Try searching our database.

ejb-link in Jboss

Thread view: 
Alberto - 22 Jul 2004 14:47 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.