• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Protocol - Statefull session bean

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ???
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Hey, I'm supposed to be the guide! Wait up! No fair! You have the tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic