permaculture playing cards*
The moose likes EJB and other Java EE Technologies and the fly likes How to use Connection Pooling? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to use Connection Pooling?" Watch "How to use Connection Pooling?" New topic
Author

How to use Connection Pooling?

Girish Bapat
Greenhorn

Joined: Jan 06, 2005
Posts: 2
Hello,
I am opening and closing connection for my each method in database bean.
I have 2 questions
Does this practice create performance problem?
If yes
Can someone tell me how to use connection pooling
Thanks in Advance,
- Girish
pradeep jaladi
Ranch Hand

Joined: Nov 21, 2004
Posts: 65
hi girish,

First u create a data source in beaweblogic8.1 Connectionpooling with a specified name. and u the datasource in u r coding once and connect to the database .

Or

Just write one open, one close connections methods for general odbc driver type and make a call to that methods.

But this type of connections leads to poor performance when you are going for large scale applications. so go for "DataSource" .Performance in sense of network if the database is remote, Querying the database , performance of coding etc..


Pradeep.Jaladi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use Connection Pooling?