aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Simple session bean question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Simple session bean question" Watch "Simple session bean question" New topic
Author

Simple session bean question

Bobby S Sidhu
Greenhorn

Joined: Dec 13, 2003
Posts: 6
Can a stateful session bean instance can be passivated while it is associated with a transaction?


SCJP,SCWCD,SCBCD,OCA DBA
Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
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

Joined: Aug 07, 2003
Posts: 49
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,


Nauman Khan <br />SCJP,MCSE,SCWCD,SCBCD,SCWCD1.4
Bobby S Sidhu
Greenhorn

Joined: Dec 13, 2003
Posts: 6
Thx all...
 
jQuery in Action, 2nd edition
 
subject: Simple session bean question