You're probably not closing your connections. You should wrap all JDBC
code in a try ... finally where you close all resulsets, statements, and
connections (in that order)
-danch
Phan Anh Tran wrote:
> I found the problem. I ran out of connections with blocking enabled on the
> pool.
>
> Anh
>
>>
>>This code is running in the context of a stateless session bean:
>>
>> Context initCtx = new InitialContext();
>> DataSource ds = (DataSource)initCtx.lookup("java:/" +
>>
> aDataSourceName);
>
>> Connection conn = ds.getConnection();
>>
>>The code hangs some where in the ds.getConnection() after 5-6 iterations
>>(calls to the bean's one and only method). Is this a jboss or a mm driver
>>problem?
>>
>>Thanks,
>>Anh
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user