| |
From Luciano Montebove:
To use Resin as an EJB client with Orion follow these steps:
- Under Orion do nothing :)
- In Resin add orion.jar, ejb.jar, mail.jar (from orion) in your app
WEB-INF/classes dir
- 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>
|
- 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")
- 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. | |
|