Hi,

We're using jBoss 3.2.2 and are encountering:

No ManagedConnections available within configured blocking timeout ( 5000 [ms] ); - 
nested throwable: (javax.resource.ResourceException: No ManagedConnections available 
within configured blocking timeout ( 5000 [ms] ))

I have a small test case where we do a sleep in our ejb to cause the
transaction to time out (I set it to 30 seconds).  If I run this case enough
the AvailableConnectionCount from the 
org.jboss.resource.connectionmanager.JBossManagedConnectionPool
mbean in the jmx-console reports 0 connections available.

The code to fetch a connection is wrapped with the try...finally block
to ensure that the connection is released.  However, with the sleep we
never fetch a connection.  The exception trace is:

18:13:01,647 INFO  [TxConnectionManager] Could not enlist XAResource!
javax.transaction.RollbackException: Already marked for rollback
        at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:596)

        at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnection
EventListener.enlist(TxConnectionManager.java:443)
        at org.jboss.resource.connectionmanager.TxConnectionManager.managedConne
ctionReconnected(TxConnectionManager.java:343)
        at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
onnection(BaseConnectionManager2.java:483)
        at org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
nManagerProxy.allocateConnection(BaseConnectionManager2.java:814)
        at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
erDataSource.java:102)

I can reset the AvailableConnectionCount back to its maximum by
invoking flush() from the jmx-console; however this is not practical.

It appears that transactions that time out do not release their connections
back to the pool.  Has this issue been resolved in a newer release?

Thanks!!
Albert

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850835#3850835

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850835


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to