User: mnf999
Date: 01/12/18 21:37:57
Modified: src/main/org/jboss/ejb/plugins BMPPersistenceManager.java
CMPFilePersistenceManager.java
CMPPersistenceManager.java
Log:
casting on invoker and init replaced by create()
Revision Changes Path
1.34 +4 -3 jboss/src/main/org/jboss/ejb/plugins/BMPPersistenceManager.java
Index: BMPPersistenceManager.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/BMPPersistenceManager.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- BMPPersistenceManager.java 2001/12/03 23:00:16 1.33
+++ BMPPersistenceManager.java 2001/12/19 05:37:57 1.34
@@ -21,6 +21,7 @@
import javax.ejb.FinderException;
import javax.ejb.RemoveException;
import javax.ejb.EJBException;
+import javax.ejb.EJBObject;
import org.jboss.ejb.Container;
import org.jboss.ejb.EntityContainer;
@@ -39,7 +40,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Rickard �berg</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Andreas Schaefer</a>
-* @version $Revision: 1.33 $
+* @version $Revision: 1.34 $
*
* <p><b>Revisions:</b>
* <p><b>20010709 andreas schaefer:</b>
@@ -94,7 +95,7 @@
con = (EntityContainer)c;
}
- public void init()
+ public void create()
throws Exception
{
ejbLoad = EntityBean.class.getMethod("ejbLoad", new Class[0]);
@@ -252,7 +253,7 @@
// Create EJBObject
// Create EJBObject
if (con.getContainerInvoker() != null)
- ctx.setEJBObject(con.getContainerInvoker().getEntityEJBObject(cacheKey));
+ ctx.setEJBObject((EJBObject)
con.getContainerInvoker().getEntityEJBObject(cacheKey));
if (con.getLocalHomeClass() != null)
ctx.setEJBLocalObject(con.getLocalContainerInvoker().getEntityEJBLocalObject(cacheKey));
1.16 +2 -2
jboss/src/main/org/jboss/ejb/plugins/CMPFilePersistenceManager.java
Index: CMPFilePersistenceManager.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/CMPFilePersistenceManager.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- CMPFilePersistenceManager.java 2001/12/03 23:00:16 1.15
+++ CMPFilePersistenceManager.java 2001/12/19 05:37:57 1.16
@@ -38,7 +38,7 @@
/**
* @author <a href="mailto:[EMAIL PROTECTED]">Rickard �berg</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
- * @version $Revision: 1.15 $
+ * @version $Revision: 1.16 $
* <p><b>20010801 marc fleury:</b>
* <ul>
* <li>- insertion in cache upon create in now done in the instance interceptor
@@ -73,7 +73,7 @@
con = (EntityContainer)c;
}
- public void init()
+ public void create()
throws Exception
{
String ejbName = con.getBeanMetaData().getEjbName();
1.38 +5 -4 jboss/src/main/org/jboss/ejb/plugins/CMPPersistenceManager.java
Index: CMPPersistenceManager.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/CMPPersistenceManager.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- CMPPersistenceManager.java 2001/12/03 23:00:16 1.37
+++ CMPPersistenceManager.java 2001/12/19 05:37:57 1.38
@@ -16,6 +16,7 @@
import java.util.Map;
import javax.ejb.EntityBean;
+import javax.ejb.EJBObject;
import javax.ejb.RemoveException;
import javax.ejb.EJBException;
@@ -44,7 +45,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Dan Christopherson</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Bill Burke</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Andreas Schaefer</a>
- * @version $Revision: 1.37 $
+ * @version $Revision: 1.38 $
*
* Revisions:
* 20010621 Bill Burke: removed loadEntities call because CMP read-ahead is now
@@ -109,7 +110,7 @@
if (con!= null) store.setContainer(con);
}
- public void init()
+ public void create()
throws Exception
{
// The common EJB methods
@@ -130,7 +131,7 @@
createMethodCache( methods );
}
- store.init();
+ store.create();
}
/**
@@ -243,7 +244,7 @@
// Create EJBObject
if (con.getContainerInvoker() != null)
{
- ctx.setEJBObject(con.getContainerInvoker().getEntityEJBObject(cacheKey));
+ ctx.setEJBObject((EJBObject)
con.getContainerInvoker().getEntityEJBObject(cacheKey));
}
if (con.getLocalHomeClass() != null)
{
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development