Re: How One Connection Object alone Used to for Whole Session between Different Pages
Friday, July 22, 2005 08:02 AM
how abt creating an java bean encapsualting all the DB functionality u need and place this bean in session scope..
any better idea ! pld post back
Re: How One Connection Object alone Used
Thursday, July 21, 2005 02:26 PM
I would suggest reusing one DataSource maybe, but definitely don't reuse Connections; you should close them as soon as you can, and get new ones from the DataSource whenever you need one. The DataSource should be one that provides connection pooling.