Calling Entity Bean from Sesion bean

Asif Equbal

Greenhorn

Posts: 7

posted 14 years ago

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

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

Posts: 7

posted 14 years ago

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