File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

How to use Connection Pooling?

Girish Bapat

Joined: Jan 06, 2005
Posts: 2
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 .


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

I agree. Here's the link:
subject: How to use Connection Pooling?
It's not a secret anymore!