You can access your EJBs directly from your JSP - just put your client code
into your JSP page.  And, of course, make sure your client export jar
(generated when you deployed your EJBs into your server) is in the servlet
engine's classpath, so it knows where to get the stubs for the bean's home,
etc.

If you need an example, let me know and I'll email you one directly.



Douglas Bullard
Internet Commerce Applications Engineer
GemStone Systems, Inc.
20575 NW von Neumann Drive
Beaverton, OR 97006
(503) 533-3590
[EMAIL PROTECTED]


 -----Original Message-----
From:   Rao, Chintala Srinivasa (CAP, FLEET)
[mailto:[EMAIL PROTECTED]]
Sent:   Friday, July 14, 2000 2:28 PM
To:     [EMAIL PROTECTED]
Subject:        Re: JSPs accessing EJBs

Yes... that is OK..

For suppose, Now as of some constraints, I don't want to develop Servlets.
I want to access EJBs (business methods) directly from JSPs (i.e., from
presentation layer).
Are my APIs doesn't support direct calls from JSP to EJB?
I need little explanation..

Thanks in advance..


-----Original Message-----
From: Douglas Bullard [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 14, 2000 3:54 PM
To: [EMAIL PROTECTED]
Subject: Re: JSPs accessing EJBs


Not true - I use JSP pages which talk directly to EJBs.  Another approach is
to have the JSP pages talk to server-side Java Beans, which in turn talk to
the EJBs.  This way you can keep the amount of Java code in your JSP to a
minimum, and use the JSP strictly for presentation.



Douglas Bullard
Internet Commerce Applications Engineer
GemStone Systems, Inc.
20575 NW von Neumann Drive
Beaverton, OR 97006
(503) 533-3590
[EMAIL PROTECTED]


 -----Original Message-----
From:   Jorge Salas-Ortiz [mailto:[EMAIL PROTECTED]]
Sent:   Friday, July 14, 2000 12:37 PM
To:     [EMAIL PROTECTED]
Subject:        JSPs accessing EJBs

Hello all,

I recently read in an EJB book that JSPs can not
access EJBs.  This book could be outdated. My concern
is what would be the approach if I wanted to keep
existing JSPs and not replace them with servlets
because serlvets can access EJBs.

I have read that wrapping EJBs in JavaBeans or simple
classes is the way to go.  Does anyone have any other
ideas or suggestions...

thanks, jorge

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to