I don't know of a single source that would tell you how to do this, but I do
know that beans and servlets certainly talk to each other (and I am assuming
you mean EJB, not JavaBeans) - it's all Java. Servlets are cool for making
JDBC connections to databases, but EJBs are even cooler (for db connections,
folks...don't start flaming me), because the container itself handles the
connections and you don't have to worry about it. Then there is the issue
of filters in JSDK 2.3, but Nic is the real expert here on that.
I would look at the online documentation at java.sun.com/products/j2ee and
get 'hold of Jason Hunter's "Java Servlet Programming." I'm sure you will
very quickly find a solution.
Cheers!
Mark
----- Original Message -----
From: "Hugo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2001 3:29 PM
Subject: Can a JavaBean call a Servlet?
> I am developing an online catalog app using jsp, javabeans, and servlets
> in a 3-tiered architecture. Right now, everything is up and running;
> however, the app seems slow when retrieving information from the database.
> In an attempt to improve performance, I have been looking at implementing
> the database connection tier using servlets, but I have not really found
> any references that have helped. Is it possible to call a servlet from
> a javabean and have the servlet return resultset information to the bean?
> If so, could someone recommend a book or online tutorial that outlines
> how to do this? Should I be investigating into connection pooling
instead?
>
> Thanks.
>
> --
> Hugo
>
>
>
> __________________________________________________
> FREE voicemail, email, and fax...all in one place.
> Sign Up Now! http://www.onebox.com
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html