caucho
 


From Luciano Montebove:

To use Resin as an EJB client with Orion follow these steps:

  1. Under Orion do nothing :)
  2. In Resin add orion.jar, ejb.jar, mail.jar (from orion) in your app WEB-INF/classes dir
  3. In Resin in your app web.xml add these lines:

    <classpath id='WEB-INF/classes/orion.jar'/>
    <classpath id='WEB-INF/classes/mail.jar'/>
    <classpath id='WEB-INF/classes/ejb.jar'/>
    <jndi-link>
      <jndi-name>java:comp/env/ejb</jndi-name>
      <jndi-factory>com.evermind.server.rmi.RMIInitialContextFactory
      </jndi-factory>
      <init-param java.naming.provider.url="ormi://myOrionHost/MyApp"/>
      <init-param java.naming.security.principal="admin"/>
      <init-param java.naming.security.credentials="xxx"/>
    </jndi-link>
    

  4. Write your servlet/JSP as you would in Orion so for example if you have a SessionBean called MyBean (in your ejb-jar.xml) your lookup should use this string ("java:comp/env/ejb/MyBean")
  5. It's all

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