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

Stateless vs Stateful Session Beans  RSS feed

Travis Kline
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working with both stateless and stateful sesssion beans within Visual age for Java. I was wondering if anyone could give me a general overview of the proper way to invoke/use these beans. I was told it was best to cache the EJBHome object and continually call the create() method to obtain the remote object when working with stateless beans.
Meanwhile, if maintaining state for a single user with stateful beans it is best to cache a remote object unique to that user. Does the developer rely on a session to cache this object or is an id sent to the bean each time? Is any of this information accurate....if not what is the best practice?
Thanks a lot,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!