User: fleury
Date: 00/07/27 16:02:59
Modified: src/main/org/jboss/ejb/plugins
NoPassivationEntityInstanceCache.java
Log:
Cache needs rewriting and factoring
Revision Changes Path
1.5 +13 -4
jboss/src/main/org/jboss/ejb/plugins/NoPassivationEntityInstanceCache.java
Index: NoPassivationEntityInstanceCache.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/NoPassivationEntityInstanceCache.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- NoPassivationEntityInstanceCache.java 2000/06/16 13:10:23 1.4
+++ NoPassivationEntityInstanceCache.java 2000/07/27 23:02:59 1.5
@@ -31,7 +31,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class NoPassivationEntityInstanceCache
implements InstanceCache
@@ -94,7 +94,7 @@
info = (InstanceInfo)ctx.getCacheContext();
if (!info.isLocked())
break;
-// System.out.println("Cache is waiting for
"+id+"("+info.isLocked()+","+ctx.getTransaction()+")");
+//DEBUG System.out.println("Cache is waiting for
"+id+"("+info.isLocked()+","+ctx.getTransaction()+")");
// Check if same tx; reentrant call
try
@@ -106,8 +106,17 @@
break;
} else
{
- throw new RemoteException("Reentrant call not allowed");
- }
+ // MF FIXME
+ // This is wrong but doing it right requires time
+ // The problem is that the entity EJB calls
from an instance
+ // come back on the instance and in the presence
of a
+ // transaction it throws the exception....
+ // Since I suspect most people will use the
EJBObject method calls before they set the reentrant right :)
+ // I would rather bypass the default for now.
+
+ //throw new RemoteException("Reentrant call
not allowed");
+ break;
+ }
}
} catch (SystemException e)
{