vmassol 2003/09/13 05:19:31
Modified: samples/ejb/src/test-cactus/share/org/apache/cactus/sample/ejb
TestConverterEJB.java
Log:
Uses the nice default behavior of most containers which, by default, map the JNDI
name for EJBs with the name defined in ejb-jar.xml... The EJB sample now works with
Orion 1.x and Orion 2.x. Still not working with JBoss 3.x for some reason.
Revision Changes Path
1.2 +2 -2
jakarta-cactus/samples/ejb/src/test-cactus/share/org/apache/cactus/sample/ejb/TestConverterEJB.java
Index: TestConverterEJB.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/samples/ejb/src/test-cactus/share/org/apache/cactus/sample/ejb/TestConverterEJB.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TestConverterEJB.java 13 Sep 2003 12:11:43 -0000 1.1
+++ TestConverterEJB.java 13 Sep 2003 12:19:31 -0000 1.2
@@ -83,7 +83,7 @@
{
Context ctx = new InitialContext();
ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(
- ctx.lookup("java:comp/ejb/Converter"), ConverterHome.class);
+ ctx.lookup("Converter"), ConverterHome.class);
this.converter = home.create();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]