Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use Connection Pooling?

 
Girish Bapat
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic