---- Mark Galbreath <[EMAIL PROTECTED]> wrote:
> 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
>
Thanks for the book title. I will definitely look for it.
I am still using Java 1.1.8, so I don't think I can use EJBs. I have
called javaBeans from servlets many times, but not vice versa. I thought
perhaps once instantiated inside a jsp, a bean could call a servlet to
retrieve any needed database information. The reason I am looking at
servlets for this role is because jdbc code seemed to execute faster
in them than in beans or jsps.
Thanks again.
--
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