-
1. Re: EJB3 <ejb-local-ref> not working
waynebaylor Nov 10, 2007 10:56 AM (in response to daedalus_hammer)you will also need a jboss-web.xml to map "ejb/UserBean" to the global JNDI name for com.website.Statefull.UserBeanLocal.
-
2. Re: EJB3 <ejb-local-ref> not working
daedalus_hammer Nov 10, 2007 5:19 PM (in response to daedalus_hammer)Ok, I added a jboss-web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<ejb-local-ref>
<ejb-ref-name>ejb/UserBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
com.website.Statefull.UserBeanLocal
</ejb-local-ref>
</jboss-web>
But now, the exception changes to "org.jboss.deployment.DeploymentException: expected one local-home tag" .
Any other idea?
Thanks! -
3. Re: EJB3 <ejb-local-ref> not working
daedalus_hammer Nov 10, 2007 6:46 PM (in response to daedalus_hammer)I fixed it, and in case anybody stumbles across this problem here's what I found:
1.Jboss doesn't fully support version 2.5 so, in web.xml you should add both and <local-home> to point to the same thing(though I think <local-home> should be added just so the parser won't yell something's wrong)
2. in jboss-web.xml you should also add <local-jndi-name> which should be something like YourApp/YourBean/local -- which tells jboss -- map the bean YourApp/YourBean/local (proprietary jboss naming format) to java:/comp/env/ejb/YourBean (if you set your <ejb-ref-name> to ejb/YourBean)