-
1. Re: using of a pooled connection allways creates a new Conne
davidjencks Sep 24, 2002 10:19 AM (in response to thomas_x)> hi there !
> i tried to use the Conenction pool with the following
> commands:
>
>
> ds = (DataSource)
> initialContext.lookup(aDSName);
> con = ds.getConnection();
>
> but always whe i make a lookup(aDSName) the JBOSS
> creates a ne ConnectionPool !
>
> is there something wrong with the connectionPooling
> in 2.4.7 ??
Yes, use 2.4.8 or later.
or is there an example available howtoUse
> PooledConnections ?
>
>
>
> i have tried the same in JBOSS 3.0 and after a few
> times getting a Connection the getConnection fails !
You didnt indicate if your code stops at the end of your snippet or contains
try {
//do something, closing all result sets and statements in finally blocks in reverse order of opening them
{
finally {con.close();}
> -
2. Re: using of a pooled connection allways creates a new Conne
augustynr Sep 24, 2002 12:39 PM (in response to thomas_x)Hi,
I am having the same problem it looks like I get different connection every time I ask for one and yes I do conn.close() in the final.
I am on 3.0.2 version of jboss.
Is it documented anywhere? an example would be great!
Thanks in advance. -
3. Re: using of a pooled connection allways creates a new Conne
thomas_x Sep 25, 2002 3:58 AM (in response to thomas_x)the problem is, i use Jboss+jetty ... and there is only 2.4.7 available !
i don't know if it is possible to change only the jboss directory in the jbossjetty version ? -
4. Re: using of a pooled connection allways creates a new Conne
augustynr Sep 25, 2002 9:10 PM (in response to thomas_x)Thomas,
3.02 comes with http server? What is the problem?
robert