Hi
I'm using JBoss2.4.9 on Linux Debian
I've got something strange i can understand.
My first application used servlet and EJB (session and entity), deployed in an ear file on a same server.
So, i declare in my web.xml all servlets and ejbs, and ejbs in jboss.xml and ejb-jar.xml.
All is good, my application is ok with this configuration.
My trouble is when i remove in the web.xml file the declaration of alls ejb, my application is always ok, servlet find ejb !!
In another application on the same server, i defined in a myapp.war directory some jsp files which used ejb of this first application. And in the myapp.war/WEB_INF/web.xml, i've no defined the ejb ! And it's ok, jsp found ejb !
Is there a problem ? or what have i not understood ?
tia
Bruno
you don't need to define them in your web.xml as you discovered. If they are defined in an ejb-jar.xml, your web tier just needs to know the jndi to find them