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.