• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session and Entity Bean Flow

 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I tried understanding the flow looking at the article
http://members.tripod.com/gsraj/ejb/chapter/ejb_3.html

but I am highly confused. Can someone please take time and just tell me in words what exactly is happening?

Say I want to invoke a session bean from a Servlet. how would the flow be?

Thanks.
[ July 26, 2008: Message edited by: Arjun Reddy ]
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am writing what I understood from the sample code I ran in WSAD for stateless session bean. Please correct me if I am wrong.


Client(servlet) looks up in the JNDI for the HomeInterface's Object and Gets it back. Then client invokes create method on it. Client gets back the remote interface object and using this object, he invokes the methods in the remote interface, which are similar to the ones in the bean class.

Am I missing something? Please correct me.

Thanks.
[ July 26, 2008: Message edited by: Arjun Reddy ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35744
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Arjun Reddy:
Client(servlet) looks up in the JNDI for the HomeInterface's Object and Gets it back. Then client invokes create method on it. Client gets back the remote interface object and using this object, he invokes the methods in the remote interface, which are similar to the ones in the bean class.

Am I missing something? Please correct me.

This is all correct.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne in EJB 3.0 what would be the flow for session beans? whatever is said above is for EJB 2.0/2.1 right?

Thanks.
[ December 17, 2008: Message edited by: Arjun Reddy ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!