Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

container-managed extended persistence context

 
Kamlesh Devani
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Following is the question
A bean provider has to use container-managed extended persistence context for a session bean. which of the following statements regarding the session bean is correct.?

A. The session bean can be stateful session bean but not stateless session bean
B. The session bean can be either stateful or stateless session bean

I think A is the correct answer since for stateless sesion bean the methods may be invoked on different instances and hence there would no same persistence context.
Kindly please tell whether I am right or not? Thanks in advance
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can use container-managed extended persistence only in Stateful Session beans.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic