dcsimg
Transaction:Servlets.Problems with more than one user.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Irene_Espadas
Posted On:   Tuesday, November 6, 2001 01:57 AM


I am using the trial version of Weblogic Server and I have a connection to the database put in the init method. When two users do a select, one of them is locked and the server throws a excepcion.

I have read connection pool is a good solution, but I donĀ“t know if it is the best and how to use it. Can anybody help me????
Thanks to all.

Re: Transaction:Servlets.Problems with more than one user.

Posted By:   Bozidar_Dangubic  
Posted On:   Wednesday, November 14, 2001 05:15 AM

you can specify connectioning pooling in weblogic.properties file I believe. WebLogic documentation is a good source for finding the information on how to setup pooling. since servlets are multithreaded, you cannot have a class variable representing the connection. in each method, you need to get the connection from the pool, do the work and return it back to the pool. I am sure weblogic has examples of working with database from the servlets since it is very common.
About | Sitemap | Contact