Why would you use Beans instead of servlets?

I have not worked with beans so I am looking for arguments one way or the
other for maintaining a connection pool to the db.

Alan

-----Original Message-----
From: Derek Conniffe <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, June 14, 1999 4:39 AM
Subject: JSP Beans & Sessions


>Hi All,
>
>I've been working with JSP for about a week now & so far so good!.
>
>(Like a large number of people) I'm most interested in using JSP to create
>dynamic pages with contents provided via. a database connection.
>
>I've written the JSP Beans which handle the database connection & again -
so
>far so good.
>
>I have difficulty in understanding how to produce a bean that is more than
>simply session-wide - I need a bean that has one constant-state database
>connection that JSP files can use - otherwise each and every session would
>require a new database connection & after an amount of time you would
>imagine a large number of connections would exist.
>
>Is this linked to the "session" / "application" scope argument when using
>beans in a JSP file?
>
>How is threading handled in this case?
>
>Thanks,
>
>Derek.
>
>
>Derek Conniffe
>Telephone               +353 1   287 2671
>Mobile          +353 86 856 3823
>Fax (IRL)               +353 86 956 3823
>Fax (UK)                +44 870 088 2811
>Fax (US)                +1 617 507 0589
>Email:          [EMAIL PROTECTED]
>
>===========================================================================
>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".

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