Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Calling Entity Bean from Sesion bean

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic