I am receiving a name not found exception on a entity bean when referencing it from the client. Client and ejb are in the same ear. I would appreciate any help.
Maybe my problem has to do with the part in the documentation that references "Here the "MyBeanName" refers to the name of your bean in the JNDI namespace. JBoss does not currently allow you to use the java:comp/env namespace to call your beans from your clients." on page http://www.jboss.org/online-manual/HTML/ch07s10.html
Here are my details
ejb-jar.xml:
<ejb-jar>
<enterprise-beans>
<ejb-name>SAAmortBean</ejb-name>
com.acme.amort.SAAmortHome
com.acme.amort.SAAmort
<ejb-class>com.acme.amort.SAAmortEJB</ejb-class>
etc........
</enterprise-beans>
jboss.xml:
<enterprise-beans>
<ejb-name>SAAmortBean</ejb-name>
<jndi-name>ejb/SAAmortBean</jndi-name>
<configuration-name></configuration-name>
</enterprise-beans>
web.xml:
<ejb-ref>
<ejb-ref-name>SAAmortBean</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
com.acme.amort.SAAmortHome
com.acme.amort.SAAmort
</ejb-ref>
jboss-web.xml:
<ejb-ref>
<ejb-ref-name>SAAmortBean</ejb-ref-name>
<jndi-name>ejb/SAAmortBean</jndi-name>
</ejb-ref>
client lookup:
I have tried the following all with the same error
Object wHomeObject = initial.lookup("java:comp/env/ejb/SAAmortBean");
Object wHomeObject = initial.lookup("ejb/SAAmortBean");
Object wHomeObject = initial.lookup("SAAmortBean");
Object wHomeObject = initial.lookup("java:ejb/SAAmortBean");
error message when referenced(partial stack):
[ERROR,Default] javax.naming.NameNotFoundException: ejb not bound
Thanks in advance,
Chad