Hi, I am reading JBoss 3.2.3 and have a question about passivating StatefulSessionBean 
instance and EntityBean instance.

There are fellow statements, which are in line 120, StatefulSessionInstanceCache.java, 
used to decide if a SFSB instance can be passivated. 
if (ctx.getTransaction() != null)
{
try{
return (ctx.getTransaction().getStatus() == Status.STATUS_NO_TRANSACTION);
} catch (SystemException e) {
// SA FIXIT: not sure what to do here
return false;
}
}
But the statements for EntityBean are different. We donÃÂt passivate an EB instance 
even itÃÂs transaction status is No_Transaction. Fellow statements are from line 
128, EntityInstanceCache.
      if (ctx.getTransaction() != null)
      {
         return false;
      }
I am puzzled :-(.  Why did we implement the passivation of SFSB and EB in different 
ways?
Thank you.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838072#3838072

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838072


-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to