Stanimir,

Well, first off, you probably shouldn't be calling EJBs directly from
JSP, but that's a design discussion that I won't go into here.

The best way to make EJB references available to JSPs is to create a
merge file containing the EJB references. The files should be named
"web-ejbrefs.xml" for remote references and "web-ejbrefs-local.xml" for
local references.

Another thing to note is that EJB references are global to all servlets
and JSPs in a web application. Therefore, you only need them to be
declared once in web.xml. As such, if you already have a servlet tagged
with @web.ejb-ref, then you don't need to do anything for your JSPs
because the servlet tagging will make sure that the EJB reference ends
up in web.xml.


Stanimir Stamenkov wrote:

> In Servlets I can specify @web.ejb-ref tags to generate EJB
> reference entries in the deployment descriptor but how do I specify
> such hints in/for JSPs? Or may be I should put them in separate .xml
> file with which to merge (how this file should be named)?
>
> --
> TIA,
> Stanimir
>
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open!
> Get cracking and register here for some mind boggling fun and
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to