User: starksm
Date: 02/04/18 16:15:02
Modified: src/main/org/jboss/test/naming/ejb Tag: Branch_3_0
TestEjbLinkBean.java
Log:
Report the full details of the JNDI proxy implementing TestEjbLinkLocalHome
as well as the details on the static reference to TestEjbLinkLocalHome.
Revision Changes Path
No revision
No revision
1.2.2.1 +25 -1
jbosstest/src/main/org/jboss/test/naming/ejb/TestEjbLinkBean.java
Index: TestEjbLinkBean.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/naming/ejb/TestEjbLinkBean.java,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -r1.2 -r1.2.2.1
--- TestEjbLinkBean.java 23 Mar 2002 01:55:54 -0000 1.2
+++ TestEjbLinkBean.java 18 Apr 2002 23:15:02 -0000 1.2.2.1
@@ -13,11 +13,12 @@
import org.jboss.test.naming.interfaces.TestEjbLink;
import org.jboss.test.naming.interfaces.TestEjbLinkLocalHome;
import org.jboss.test.naming.interfaces.TestEjbLinkLocal;
+import org.jboss.test.util.Debug;
/** A bean that tests ejb-link works
@author <a href="mailto:[EMAIL PROTECTED]">Adrian.Brock</a>
-@version $Revision: 1.2 $
+@version $Revision: 1.2.2.1 $
*/
public class TestEjbLinkBean implements SessionBean
{
@@ -50,6 +51,17 @@
{
InitialContext initial = new InitialContext();
Object object = initial.lookup(jndiName);
+ log.debug("jndiName="+jndiName);
+
+ StringBuffer results = new StringBuffer("testEjbLinkCaller Proxy info\n");
+ Debug.displayClassInfo(object.getClass(), results);
+ log.debug(results.toString());
+
+ results.setLength(0);
+ results.append("testEjbLinkCaller TestEjbLinkLocalHome.class info\n");
+ Debug.displayClassInfo(TestEjbLinkLocalHome.class, results);
+ log.debug(results.toString());
+
TestEjbLinkHome home =
(TestEjbLinkHome) PortableRemoteObject.narrow(object,
TestEjbLinkHome.class);
TestEjbLink bean = home.create();
@@ -68,6 +80,17 @@
{
InitialContext initial = new InitialContext();
Object object = initial.lookup(jndiName);
+ log.debug("jndiName="+jndiName);
+
+ StringBuffer results = new StringBuffer("testEjbLinkCallerLocal Proxy
info\n");
+ Debug.displayClassInfo(object.getClass(), results);
+ log.debug(results.toString());
+
+ results.setLength(0);
+ results.append("testEjbLinkCallerLocal TestEjbLinkLocalHome.class
info\n");
+ Debug.displayClassInfo(TestEjbLinkLocalHome.class, results);
+ log.debug(results.toString());
+
TestEjbLinkLocalHome home =
(TestEjbLinkLocalHome) PortableRemoteObject.narrow(object,
TestEjbLinkLocalHome.class);
TestEjbLinkLocal bean = home.create();
@@ -84,4 +107,5 @@
{
return "Works";
}
+
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development