File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple session bean question

 
Bobby S Sidhu
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a stateful session bean instance can be passivated while it is associated with a transaction?
 
Brian Smith
Ranch Hand
Posts: 232
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi boby,
A bean(stateful session and entity) can't be passivated while they are in transaction. They must get out of their transaction context.
namaste
 
Nauman Khan
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
A Stateful session bean will never be passivated when it is in a transaction.Because the condition of passivation is this that bean is wasting the resources and not service the client for long time then container decides to passivate the bean by using the serialization mechanism.
On the other hand if stateful bean is in transaction that means it is under process and doing some work.
Regards,
 
Bobby S Sidhu
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx all...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic