0 Replies Latest reply on Aug 23, 2003 6:33 AM by Hugo

    Interrupted while requesting permit!

    Hugo Newbie

      My application times out on getting a connection from the connectionmanager. It happens more and more and is getting a real pain. I already increased the BlockingTimeoutMillis from the standard 5 seconds to 15 seconds. This is not the solution however because the same problem surfaces, only later.
      I run the standard CachedConnectionManager.

      Help please!

      Hugo

      Trace:

      javax.resource.ResourceException: Interrupted while requesting permit!
      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool
      .java:187)
      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionP
      ool.java:335)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:4
      67)
      at org.jboss.resource.connectionmanager.LocalTxConnectionManager.getManagedConnection(LocalTxConnectionManager.ja
      va:221)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:532
      )
      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConn
      ectionManager2.java:828)
      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)
      ... 65 more


      db2-service.xml in deploy dir:
      <depends optional-attribute-name="ManagedConnectionFactoryName">
      <!--embedded mbean-->


      jdbc/ctb


      <config-property name="ConnectionURL" type="java.lang.String">jdbc:db2:mr92a0.pinkroccade.lan:PROD</config-property>
      <config-property name="DriverClass" type="java.lang.String">COM.ibm.db2.jdbc.net.DB2Driver</config-property>
      <!--set these only if you want only default logins, not through JAAS -->
      <config-property name="UserName" type="java.lang.String">db2inst1</config-property>
      <config-property name="Password" type="java.lang.String">*********</config-property>



      <!--Below here are advanced properties -->
      <!--hack-->
      <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper


      <depends optional-attribute-name="ManagedConnectionPool">

      <!--embedded mbean-->

      0
      50
      <!-- See MT 3575 Timeout while requesting permit temporary solution?-->
      15000
      15

      <!--
      criteria indicates if Subject (from security domain) or app supplied
      parameters (such as from getConnection(user, pw)) are used to distinguish
      connections in the pool. Choices are
      ByContainerAndApplication (use both),
      ByContainer (use Subject),
      ByApplication (use app supplied params only),
      ByNothing (all connections are equivalent, usually if adapter supports
      reauthentication)-->
      ByContainer


      <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager

      <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager

      java:/TransactionManager
      <!--make the rar deploy! hack till better deployment-->
      jboss.jca:service=RARDeployer