1 Reply Latest reply on Mar 27, 2009 7:07 AM by greigm

    Setting Tx-Timeout on JBoss 5

    joshua aaaaa Newbie

      Dear all,
      I'd like to set a new value for the TransactionTimeout. Besides from the JMX Console I can see that this parameter is defined in deploy/transaction-jboss-beans.xml

      <property name="transactionTimeout">300</property>


      However if I try to change this parameter in the file lots of errors are issued and eventually JBoss crashes..!

      *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
      
      CachedConnectionManager
       -> TransactionManager{Configured:**ERROR**}
      
      DefaultUserTransactionprovider
       -> <UNKNOWN DefaultUserTransactionprovider>{Described:** UNRESOLVED Demands 'TransactionManager' **}
      
      RealTransactionManager
       -> TransactionManager{Instantiated:**ERROR**}
      
      UnifiedInvoker
       -> TransactionManager{Create:**ERROR**}
      
      WebServer
       -> jboss.jca:service=CachedConnectionManager{Create:** NOT FOUND Depends on 'jboss.jca:service=CachedConnectionManager' **}
       -> jboss:service=TransactionManager{Create:** NOT FOUND Depends on 'jboss:service=TransactionManager' **}
      
      WorkManager
       -> TransactionManager{Configured:**ERROR**}
      
      jboss.admin:service=PluginManager
       -> jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor{Creat
      e:Configured}
      
      jboss.ejb:persistencePolicy=database,service=EJBTimerService
       -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Create:Configured}
      
      jboss.ejb:service=EJB3TimerService
       -> jboss:service=TransactionManager{Create:** NOT FOUND Depends on 'jboss:service=TransactionManager' **}
       -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Create:Configured}
      
      jboss.ejb:service=EJBTimerService
       -> jboss.ejb:persistencePolicy=database,service=EJBTimerService{Create:Configur
      ed}
       -> jboss:service=TransactionManager{Create:** NOT FOUND Depends on 'jboss:service=TransactionManager' **}
      
      jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment
       -> jboss:service=TransactionManager{Configured:** NOT FOUND Depends on 'jboss:service=TransactionManager' **}
       -> jboss.jca:service=WorkManager{Configured:** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **}
      
      jboss.jca:name='jboss-xa-jdbc.rar',service=RARDeployment
       -> jboss.jca:service=WorkManager{Configured:** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **}
       -> jboss:service=TransactionManager{Configured:** NOT FOUND Depends on 'jboss:service=TransactionManager' **}
      
      jboss.jca:name='jms-ra.rar',service=RARDeployment
       -> jboss.jca:service=WorkManager{Configured:** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **}
       -> jboss:service=TransactionManager{Configured:** NOT FOUND Depends on 'jboss:service=TransactionManager' **}
      
      jboss.jca:name='mail-ra.rar',service=RARDeployment
       -> jboss.jca:service=WorkManager{Configured:** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **}
       -> jboss:service=TransactionManager{Configured:** NOT FOUND Depends on 'jboss:service=TransactionManager' **}
      
      jboss.jca:name='quartz-ra.rar',service=RARDeployment
       -> jboss:service=TransactionManager{Configured:** NOT FOUND Depends on 'jboss:service=TransactionManager' **}
       -> jboss.jca:service=WorkManager{Configured:** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **}
      
      jboss.jca:name=DefaultDS,service=DataSourceBinding
       -> jboss.jca:name=DefaultDS,service=LocalTxCM{Create:Configured}
      
      jboss.jca:name=DefaultDS,service=LocalTxCM
       -> jboss:service=TransactionManager{Create:** NOT FOUND Depends on 'jboss:service=TransactionManager' **}
       -> jboss.jca:service=CachedConnectionManager{Create:** NOT FOUND Depends on 'jboss.jca:service=CachedConnectionManager' **}
       -> jboss.jca:name=DefaultDS,service=ManagedConnectionPool{Create:Configured}
      
      jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
       -> jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment{Create:Instantia
      ted}
      
      jboss.jca:name=DefaultDS,service=ManagedConnectionPool
       -> jboss.jca:name=DefaultDS,service=ManagedConnectionFactory{Create:Configured}
      
      
      jboss.jca:name=JmsXA,service=ConnectionFactoryBinding
       -> jboss.jca:name=JmsXA,service=TxCM{Create:Configured}
      
      jboss.jca:name=JmsXA,service=ManagedConnectionFactory
       -> jboss.jca:name='jms-ra.rar',service=RARDeployment{Create:Instantiated}
       -> jboss.messaging:service=ServerPeer{Create:Configured}
      
      jboss.jca:name=JmsXA,service=ManagedConnectionPool
       -> jboss.jca:name=JmsXA,service=ManagedConnectionFactory{Create:Configured}
      
      jboss.jca:name=JmsXA,service=TxCM
       -> jboss.jca:name=JmsXA,service=ManagedConnectionPool{Create:Configured}
       -> jboss:service=TransactionManager{Create:** NOT FOUND Depends on 'jboss:servi
      ce=TransactionManager' **}
       -> jboss.jca:service=CachedConnectionManager{Create:** NOT FOUND Depends on 'jb
      oss.jca:service=CachedConnectionManager' **}
      
      jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor
       -> jboss:service=invoker,type=jrmp{Create:Configured}
      
      jboss.jmx:name=MBeanProxyRemote,protocol=jrmp,type=adaptor
       -> jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor{Creat
      e:Configured}
      
      jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory
       -> jboss.messaging:service=ServerPeer{Create:Configured}
       -> jboss.messaging:service=PostOffice{Create:Configured}
      
      ..................
       at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep
      loyersImpl.java:863)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainD
      eployerImpl.java:665)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDSca
      nner.java:293)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScan
      ner.java:221)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44
      1)
       at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java
      :317)
       at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
      access$101(ScheduledThreadPoolExecutor.java:98)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
      runPeriodic(ScheduledThreadPoolExecutor.java:181)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
      run(ScheduledThreadPoolExecutor.java:205)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
      utor.java:885)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
      .java:907)
       at java.lang.Thread.run(Thread.java:619)


      Is this the right place to change this parameter ?
      I'm using JBoss 5.0.0 GA
      thanks alot
      john

        • 1. Re: Setting Tx-Timeout on JBoss 5
          greigm Newbie

          Hi, I have the same problem - I've just upgraded from 4.2.2 where I could alter the TransactionTimout in jboss-service.xml - can someone tell me where to find the equivalent setting in 5.0.1 as its not in the same file - I've done a search through forums and docs but there doesn't seem to be a clear answer anywhere?

          I'd appreciate any urgent answer you can give as I'm getting the old "The transaction is not active! " exception.

          Many Thanks,