| |
From Damon Maria:
Got 1.2 talking to IAS 4.1 the other day and just thought I'd share my
experiences to save someone else some time.
Here's what to do:
- Copy vbjorb.jar and vbejb.jar from AppServer/lib into resin/lib. Just adding
these into the <classpath .../> in resin.conf doesn't work.
- Add the path to your beans into resin.conf:
<classpath id='c:/development/classes'/>
|
- Add the JNDI link from resin to the app server in resin.conf:
<jndi-link>
<jndi-name>java:comp/env/ejb</jndi-name>
<jndi-factory>com.inprise.j2ee.jndi.CtxFactory</jndi-factory>
</jndi-link>
|
- Then connect to your beans in servlets/JSP, simply add "java:comp/env/ejb/"
onto any JNDI paths you use to find your beans. Eg. if I have a bean at the app
server JNDI path of "TestSession" then in my servlet I use:
javax.naming.Context context = new javax.naming.InitialContext();
Object ref = context.lookup("java:comp/env/ejb/TestSession");
home = (TestSessionHome) javax.rmi.PortableRemoteObject.narrow(ref,
TestSessionHome.class);
|
Copyright © 1998-2002 Caucho Technology, Inc. All rights reserved.
Resin® is a registered trademark,
and HardCoretm and Quercustm are trademarks of Caucho Technology, Inc. | |
|