Hi ABDELLATIF,

try closing connection immediately after you are finished with your query.
When connection is closed in finally block, it is alive until garbage
collector starts its work( Garbage collector executes code in finally {}
blocks.). May be that's why you are running out of connections.

Good luck.
- Aparna
-----Original Message-----
From: Abdellatif Belmokhtar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 18, 2000 10:46 AM
To: [EMAIL PROTECTED]
Subject: How to manage connection?


Hi,
I'm running a load testing tool to test my server application. If the tool
tries to create a number of customers 50% higher than the number of
connections in the pool it goes out of connection.
I use an entity bean for the customer (BMP)
I use a session bean that verify the uniqueness of the email an calls
customer create method.
I close the connection in a finally statement.
I use weblogic as server

thanks a lot

ABDELLATIF BELMOKHTAR
SENIOR DEVELOPER
BORDERFREE.COM
2300 YONGE STREET, SUITE 2700
TORONTO, ON
M4P 1E4
CANADA

TEL #: (416) 480-2558 Ext 248
FAX #: (416) 480-0665
EMAIL: [EMAIL PROTECTED]
www.borderfree.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to