*
The moose likes BEA/Weblogic and the fly likes Calling Entity Bean from Sesion bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Calling Entity Bean from Sesion bean" Watch "Calling Entity Bean from Sesion bean" New topic
Author

Calling Entity Bean from Sesion bean

Asif Equbal
Greenhorn

Joined: Dec 10, 2001
Posts: 7
I have created an Entity bean , and a Session bean (Stateles) . Both of them are deployed in Weblogic 6.1 and running sucessfully with their individual client .
i want to call the Entity bean from my Session bean and want the session beans remote interface to return me the entity beans home interface after making the lookup .
i dont know if this is how we set up the use of session bean to access entity beans .
help me with the process .
Thanks

------------------
Asif Equbal
Cognizant Technology Solutions , India.


Asif Equbal<BR>Cognizant Technology Solutions , India.
Eric Khosa
Greenhorn

Joined: Nov 08, 2001
Posts: 2
Its always best to only allow client apps to access Entity beans via a Session bean. This is known as the Session Facade pattern. However, in my personal experience, i have always prefered to let the Session bean return the Entity Bean's remote interface(s) as opposed to the home interfaces you may have proposed... I think this is a neater solution.
Asif Equbal
Greenhorn

Joined: Dec 10, 2001
Posts: 7
Originally posted by Eric Khosa:
Its always best to only allow client apps to access Entity beans via a Session bean. This is known as the Session Facade pattern. However, in my personal experience, i have always prefered to let the Session bean return the Entity Bean's remote interface(s) as opposed to the home interfaces you may have proposed... I think this is a neater solution.

*******************************************
Thanks Eric , I got ur point I am trying out the facade (Session ) Way
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling Entity Bean from Sesion bean
 
Similar Threads
EJB basic Questions
Deleting from a DataBase
local interface vs remoter interface.
Ejb NotSerializableException ???
Local Interface (NameNotFoundException)