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

>From: Sanjeev Kumar <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: JSPs and EJBs
>Date: Wed, 30 Jun 1999 23:31:52 -0700
>
>John Malloy wrote:
>
> > My recolleciton is that JSP 1.0 does not
> > support direct invocation of an EJB.  The
> > JSP must invoke a regular bean which, in
> > turn, can then invoke an EJB.
>
>There are no pre-defined "tags" or other short cuts to invoke an EJB from a
>JSP
>as part of the spec. But that does not mean that you cannot write a
>scriptlet
>as part of a JSP that does the home look-up using JNDI and then gets a
>handle
>to a "remote" session bean. In other words, the JSP acts as a regular EJB
>client. As a matter of fact, in my opinion, the JSP should use JTA
>explicitly
>to control  the (distributed) transaction and then pass its context over to
>the
>EJB. It is the presentation bean that starts the processing on the server
>side
>after all. Although, you are deep down in the javax.* api's at this level,
>and
>quite beyond what a scripting language developer is expected to know!
>
>Any other opinions?
>Regards,
>Sanjeev K.



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

===========================================================================
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".

Reply via email to