Richard Dallaway wrote:
> Very interested in any discussion on JSP and EJB.
>
> We're having some success in building components for use in JSP without EJB,
> but it's a real pain. The hard and messy part is providing persistance and
> ensuring that the persistance is fast (cached, whatever). It's all working,
> but it's not something I'm terribly proud about. Hence, I'd love to see
> some thought on EJB use from JSP.
>
> The costs I most want to avoid are:
> - (relatively) slow lookup (e.g., for a Home) for every single JSP that uses
> the bean;
> - having to specify deployment details (e.g., the location of a Home) in
> every JSP page;
> - use of scripting (more than a line or two) in the JSP.
>
> Should we expect anything in this direction from JSP 1.1?
>
> Cheers
> Richard
>
Besides the tag extensions capability in JSP 1.1 (the public draft of the spec
was just released), you might want to check out the new Servlet API spec
(version 2.2). Among other things, the deployment descriptor includes the
ability to map names to particular EJBs at deployment time. The mapped
references will be stored in the servlet context attributes (equivalent to
application scope in JSP pages), so they don't have to be looked up every time.
Craig McClanahan
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".