Inprise Application Server EJB
Resin 3.0

Features
Installation
Configuration
Web Applications
IOC/AOP
Resources
JSP
Servlets and Filters
Portlets
Databases
Admin (JMX)
CMP
EJB
Amber
EJB 3.0
Security
XML and XSLT
XTP
JMS
Performance
Protocols
Third-party
Troubleshooting/FAQ

IDE's
Scottit
Groovy
PHP
Code Libraries
EJB Servers
JMS
JCA Resources
JMX
SSL Accelerators

jBoss
Inprise
JOnAS
Weblogic
Orion
jBoss
EJB Servers
JOnAS

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:

  1. Copy vbjorb.jar and vbejb.jar from AppServer/lib into resin/lib. Just adding these into the <classpath .../> in resin.conf doesn't work.
  2. Add the path to your beans into resin.conf:

      <classpath id='c:/development/classes'/>
    

  3. 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>
    

  4. 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);
    


jBoss
EJB Servers
JOnAS
Copyright © 1998-2005 Caucho Technology, Inc. All rights reserved.
Resin® is a registered trademark, and HardCoretm and Quercustm are trademarks of Caucho Technology, Inc.