Hi,
I'm new to JBoss. I'm using JBoss 3.2.1 with Jetty. I'm trying to deploy a servlet to access a stateless session bean using the local interfaces. Here's my 4 XML configuration files.
1) Will this work? If not, please correct the files with the values that should work.
2) Why can't I have <ejb-local-ref> in web.xml? And <local-jndi-name> in jboss-web.xml?
ejb-jar.xml:
<ejb-name>MySession</ejb-name>
<local-home>mypackage.MySessionLocalHome</local-home>
mypackage.MySessionLocal
mypackage.MySessionHome
mypackage.MySession
<ejb-class>mypackage.MySessionBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
jboss.xml:
<ejb-name>MySession</ejb-name>
<jndi-name>ejb/MySessionHome</jndi-name>
<local-jndi-name>ejb/MySessionLocalHome</local-jndi-name>
web.xml:
<context-param>
<param-name>MySession</param-name>
<param-value>ejb/MySessionHome</param-value>
</context-param>
...
...
<ejb-ref>
<ejb-ref-name>MySession</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
mypackage.MySessionHome
mypackage.MySession
<ejb-link>MySession</ejb-link>
</ejb-ref>
jboss-web.xml:
<ejb-ref>
<ejb-ref-name>MySession</ejb-ref-name>
<jndi-name>ejb/MySessionHome</jndi-name>
</ejb-ref>
Roslan