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.

begin:vcard
n:Kumar;Sanjeev
tel;cell:(650) 740-8501
tel;home:(510) 226-7011
x-mozilla-html:FALSE
adr:;;195 Ondina Drive;Fremont;CA;94539;USA
version:2.1
email;internet:[EMAIL PROTECTED]
note:"People who say it cannot be done, should not interrupt those who are doing it" - a sign posted at Michael Johnson's gym (first athlete to break World and Olympic records for 200 and 400 meter sprints).
fn:Sanjeev Kumar
end:vcard

Reply via email to