Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling Entity Bean from Sesion bean

 
Asif Equbal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eric Khosa
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic