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.
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
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
Thanks for the response - I guess the key is to put everything in an EAR file. It worked after I deployed the new file.
WHAT THE HELL IS JBOSS????
When I did call the Local interface, I gave a simple name in the ejb-link.Try removing
"ejb/test/" from the ejb-link.