Serlvet goes in war, EJB in jar. Servlet can use local interface to ejb since war and jar both in an ear (the "same deployment unit").

A Servlet can *not* use a local interface of an ejb that's on a different app server. That would, by definition, imply "remote."

You can find out the nitty-gritty details by reading the J2EE, EJB, and Servlet specs.

Hope this helps,
David

--

SainTiss wrote:
Hi,

I've read that a servlet for example could have access to an EJB's local
interface, if the servlet is in the same deployment unit as the EJB...

Does this mean it has to be on the same application server? Or does this
mean it's got to be in the same jar?
In the second case there seems to be a problem, since servlets seem to
go in war files and EJB's in jar files...

Thanks

Hans




-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to