dcsimg
workin with cople of beans together
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   yudan_maivar
Posted On:   Tuesday, July 23, 2002 02:44 AM

hi
I have a jsp working with mysql DB
I have a Java bean (DbBean) that handel the connection to the DB.
I would like to create more beans, but each bean has to connect to the DB. I want to use the same connection.
I want to use a class that implement HttpSessionBindingListener in order to delete from the db and close the connection when the session is ended.

how can i make this bean to use the same connection as in the DbBean object ??
thanks

About | Sitemap | Contact