Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to convert a Statess Session bean to a Stateful one?  RSS feed

 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

Following is a question that i faced duringan interview
How to convert a Stateless Session bean to a Stateful one?
Can just the changes in the Deployment Descriptor do the trick?
Thanks,
Saj
 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Technically yes, just changing the deployment descripter will do it. But practically there certain other issues which should be taken care. If u r making a stateful session bean than ejbCreate method usually takes some parameters and the session bean contains certain instance variables to store the session related information(otherwise u wont make it stateful session bean, rather u will make it stateless session bean).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!