User: fleury
Date: 00/08/17 20:21:03
Modified: src/main/org/jboss/ejb/plugins/jrmp/interfaces
HomeHandleImpl.java HomeProxy.java
StatefulHandleImpl.java StatefulSessionProxy.java
Log:
Logger messages and clean up for binary
Revision Changes Path
1.4 +2 -2
jboss/src/main/org/jboss/ejb/plugins/jrmp/interfaces/HomeHandleImpl.java
Index: HomeHandleImpl.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/jrmp/interfaces/HomeHandleImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- HomeHandleImpl.java 2000/08/14 15:07:53 1.3
+++ HomeHandleImpl.java 2000/08/18 03:21:02 1.4
@@ -20,7 +20,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class HomeHandleImpl
implements HomeHandle
@@ -51,7 +51,7 @@
}
catch (NamingException e) {
- e.printStackTrace();
+ e.printStackTrace();
throw new RemoteException("Could not get EJBHome");
}
}
1.17 +1 -9
jboss/src/main/org/jboss/ejb/plugins/jrmp/interfaces/HomeProxy.java
Index: HomeProxy.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/jrmp/interfaces/HomeProxy.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- HomeProxy.java 2000/08/17 20:13:15 1.16
+++ HomeProxy.java 2000/08/18 03:21:02 1.17
@@ -27,7 +27,7 @@
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
-* @version $Revision: 1.16 $
+* @version $Revision: 1.17 $
*/
public class HomeProxy
extends GenericProxy
@@ -99,21 +99,18 @@
// Implement local methods
if (m.equals(toStr))
{
- System.out.println("HomeProxy:toStr");
return name+"Home";
}
else if (m.equals(eq))
{
// equality of the proxy home is based on names...
- System.out.println("HomeProxy:eq");
return new Boolean(invoke(proxy,toStr, args).equals(name+"Home"));
}
else if (m.equals(hash))
{
- System.out.println("HomeProxy:hash");
return new Integer(this.hashCode());
}
@@ -121,7 +118,6 @@
else if (m.equals(getHomeHandle))
{
- System.out.println("HomeProxy:getHomeHandle");
return new HomeHandleImpl(name);
}
@@ -129,7 +125,6 @@
else if (m.equals(getEJBMetaData))
{
- System.out.println("HomeProxy:getEJBMetaData");
return ejbMetaData;
}
@@ -137,7 +132,6 @@
else if (m.equals(removeByHandle))
{
- System.out.println("HomeProxy:removeByHandle");
// First get the EJBObject
EJBObject object = ((Handle) args[0]).getEJBObject();
@@ -152,7 +146,6 @@
else if (m.equals(removeByPrimaryKey))
{
- System.out.println("HomeProxy:removeByPK");
if (optimize && isLocal())
{
return container.invoke(
@@ -198,7 +191,6 @@
else
{
- System.out.println("HomeProxy:"+m.getName());
// Delegate to container
// Optimize if calling another bean in same EJB-application
if (optimize && isLocal())
1.4 +2 -2
jboss/src/main/org/jboss/ejb/plugins/jrmp/interfaces/StatefulHandleImpl.java
Index: StatefulHandleImpl.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/jrmp/interfaces/StatefulHandleImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- StatefulHandleImpl.java 2000/08/16 06:44:45 1.3
+++ StatefulHandleImpl.java 2000/08/18 03:21:02 1.4
@@ -22,7 +22,7 @@
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
* @author <a href="mailto:[EMAIL PROTECTED]>Marc Fleury</a>
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class StatefulHandleImpl
implements Handle
@@ -65,7 +65,7 @@
ContainerRemote container = (ContainerRemote) new
InitialContext().lookup("invokers/"+name);
// Create a new MethodInvocation for distribution
- System.out.println("I am about to invoke and getEJBOBject is
"+getEJBObjectMethod.getName() +" My ID is "+id);
+ //System.out.println("I am about to invoke and getEJBOBject is
"+getEJBObjectMethod.getName() +" My ID is "+id);
RemoteMethodInvocation rmi = new RemoteMethodInvocation(null,
getEJBObjectMethod, new Object[] {id});
// MF FIXME: WE DEFINITLY NEED THE SECURITY ON SUCH A CALL...
1.15 +1 -4
jboss/src/main/org/jboss/ejb/plugins/jrmp/interfaces/StatefulSessionProxy.java
Index: StatefulSessionProxy.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/jrmp/interfaces/StatefulSessionProxy.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- StatefulSessionProxy.java 2000/08/16 18:09:47 1.14
+++ StatefulSessionProxy.java 2000/08/18 03:21:02 1.15
@@ -21,7 +21,7 @@
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
- * @version $Revision: 1.14 $
+ * @version $Revision: 1.15 $
*/
public class StatefulSessionProxy
extends GenericProxy
@@ -91,7 +91,6 @@
}
else if (m.equals(eq))
{
- System.out.println("SFSP:equals");
return invoke(proxy, isIdentical, args);
}
@@ -108,7 +107,6 @@
else if (m.equals(getPrimaryKey))
{
- System.out.println("SSP:getPrimaryKey");
// MF FIXME
// The spec says that SSB PrimaryKeys should not be returned and the call
should throw an exception
// However we need to expose the field *somehow* so we can check for
"isIdentical"
@@ -126,7 +124,6 @@
}
else if (m.equals(isIdentical))
{
- System.out.println("SSP:isIdentical");
// MF FIXME
// See above, this is not correct but works for now (do jboss1.0 PKHolder
hack in here)
return new Boolean(((EJBObject)args[0]).getPrimaryKey().equals(id));