-
1. Re: Local Interface question
nicknewman Dec 10, 2002 5:32 PM (in response to stevek)Does the example work without the entry in the jboss-web.xml? The reason I ask is that normally you would use EITHER the ejb-link OR the entry in the jndi-web.xml, but not both.
If JBoss is using the jboss-web.xml entry, I think there may be a problem because the jndi-name that you are pointing to is a globally accessible name (i.e. it doesn't start with "java:" and so can be accessed from outside the machine). Since this is a local interface, it should NOT exist in the global JNDI namespace, so JBoss would be correct in its error report. -
2. Re: Local Interface question
stevek Dec 10, 2002 6:15 PM (in response to stevek)If I remove the entry from jboss-web.xml, I get the same error when I deploy "target not found, add valid ejb-link". If I remove the stuff from web.xml, I can deploy it, but the I get the error "TestSessionLocal not bound" when I access the bean from the jsp.
Thanks for any help -
3. Re: Local Interface question
nicknewman Dec 10, 2002 7:22 PM (in response to stevek)Well then, I'm not sure what's wrong, but perhaps you can work it out from the attached example (which works on JBoss 3.0.2).
The zip includes an ear file, and you should be able to test it by hitting /local/index.jsp -
4. Re: Local Interface question
stevek Dec 11, 2002 11:09 AM (in response to stevek)Thanks for the response - I guess the key is to put everything in an EAR file. It worked after I deployed the new file.
Thanks again -
5. Re: Local Interface question
zezinho Dec 11, 2002 2:10 PM (in response to stevek)WHAT THE HELL IS JBOSS????
-
6. Re: Local Interface question
gayathri Dec 11, 2002 8:28 PM (in response to stevek)When I did call the Local interface, I gave a simple name in the ejb-link.Try removing
"ejb/test/" from the ejb-link.