This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Protocol  - Statefull session 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 » Java » EJB and other Java EE Technologies
Bookmark "Protocol  - Statefull session bean" Watch "Protocol  - Statefull session bean" New topic
Author

Protocol - Statefull session bean

Ramdas Sawant
Ranch Hand

Joined: Aug 08, 2005
Posts: 51
Hi Ranchers,
How does the container associate a stateful session bean with the respective client. In case of a webserver we use cookie to identify the client. What do EJB container use to identify the request for a stateful session bean and use that particular Stateful session bean to handle the request. Any specific protocol used ? I googled for this but didnt find any suitable answer Am I missing anything ???


If you think you can, you can. If you think you can't, you are right.
prashant k. gupta
Ranch Hand

Joined: May 15, 2008
Posts: 62
Hi Ramdas,

In Stateful session bean, client state can be stored in instance variable.
When client will invoke the create method in beanhome, it will send client specific details in argument and it can be stored in instance variable of beanclass create method. That���s why we use create method with argument in stateful session bean.make sure that beanhome and beanclass create methods map each other (create method with same arguments)and you are storing that client specific detail in instance variable of your bean class.By this way it will process the request for that particular client.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Protocol - Statefull session bean
 
Similar Threads
Mock Exam Question
How a Stateful Session Bean Maintains the session??
Session Bean Pooling
Stateful session bean
How is Stateful session bean mapped to Client