I am having a problem in looking up ejbs in my application. I think the
problem is that resin is not aware of them (ejb).
Please point out the error in my setup.
I have foo.ear application under webapps. it contains foo.war, general jars,
and multiple ejb.jar under root level. when resin expands foo.ear, it
creates
C:\resin-ee-2.1.1\webapps\_foo\WEB-INF\lib\ejb_us.jar
C:\resin-ee-2.1.1\webapps\_foo\WEB-INF\lib\ejb_cgrls.jar
.......
each ejb jar contains multiple ejbs (stateless session and cmp) and
ejb-jar.xml describing them
i specified each ejb_.jar in foo.ear's application.xml
as
<module>
<ejb>ejb_us.jar</ejb>
</module>
......................
in foo.war web.xml, i created these entries for handling my ejbs (i think
this is where the problem might be)
<!-- resource-ref elememt(s) -->
<!--
- The CMP server. It will read all the *.ejb in WEB-INF
- automatically.
-->
<resource-ref>
<res-ref-name>java:comp/env/cmp</res-ref-name>
<class-name>com.caucho.ejb.EJBServer</class-name>
<init-param data-source='java:comp/env/jdbc/cgboPool'/>
</resource-ref>
<jndi-link>
<jndi-name>java:comp/env/ejb</jndi-name>
<jndi-factory>com.caucho.burlap.BurlapContextFactory</jndi-factory>
<init-param java.naming.provider.url="http://localhost/foo/burlap"/>
</jndi-link>
I can initialize context in my servlet code using "java:comp/env/ejb", but
it can't find any of the ejbs nor i have seen resin try to compile them.
Please advise, what should i change to make resin ejb-aware.
Thank you
Leonard
Received on Mon 29 Jul 2002 11:37:55 -0700
This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:17:08 PDT