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 2003

Tip: Looking for answers? Try searching our database.

Dynamically Access & Call An EJB From Another EJB?

Thread view: 
Steve - 14 Jul 2003 16:04 GMT
Is there a way to dynamically access and call an EJB from another EJB?
For example, can a session bean read a file with information about
another session bean without hardcoding information about the second
bean in the first bean's .java bean class or its .xml descriptor files? Can
some form of reflection or introspection be used?

Thanks.

Steve
Christopher Blunck - 25 Jul 2003 06:15 GMT
> Is there a way to dynamically access and call an EJB from another EJB?
> For example, can a session bean read a file with information about
> another session bean without hardcoding information about the second
> bean in the first bean's .java bean class or its .xml descriptor files? Can
> some form of reflection or introspection be used?

Hi Steve.

Sure - you can obtain a remote reference to *any* EJB using it's JNDI
name.  You may need to do some work in narrowing the Object down to a
home interface, but if you can cross that bridge you can then use all
of the reflection and introspection constructs you are used to using
on other java classes.

-c


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.