commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mudumbai, Kalyan" <Kalyan.Mudum...@gs.com>
Subject RE: [DBCP] Hiya, Has anyone managed to configure DBCP to use JNDI (via xml) in Jboss 3.x
Date Wed, 19 Jan 2005 00:26:33 GMT
To create connection pools in JBoss 3.x you can simply create a *-ds.xml
file and deploy it. You don't have to use DBCP or any other connection
pooling framework. You can specify the JNDI name of the connection pool.
Using this name you can later lookup the DataSource and then obtain a
connection. 

If you still want to use DBCP, you can simply write an Mbean, that creates
the required number of connections with the required configuration. Deploy
the Mbean so that jboss executes the code for you. (you can write this whole
job of creating and configuring connection in the start method of the
Mbean). 

Thanks,
Kalyan.

-----Original Message-----
From: Kle Miller [mailto:Kle.Miller@spcm.com.au] 
Sent: Tuesday, January 18, 2005 6:55 PM
To: commons-user@jakarta.apache.org
Subject: [DBCP] Hiya, Has anyone managed to configure DBCP to use JNDI (via
xml) in Jboss 3.x


Hiya,
i was trying to do this but gave up eventually, option to create the
connection pool in the startup code of the web app.
 
I am curious to see if anyone got it working. 
 
I would also like to know how ppl create the DBCP generally for web apps
using JBoss 3.x
 
 
cheers
Kle
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message