[jboss-dev-forums] [Design of JBoss Transaction Services] - Transaction Timeout Simulation not working

juser2007 do-not-reply at jboss.com
Mon Feb 12 10:50:54 EST 2007


Hi,

As part of a debugging process, I am trying to enforce Transaction Time out. I am using Jboss-3.2.3 and have changed the following configurations.
The beans are Container managed.

jboss-service.xml - with "TransactionTimeout" attribute set to 45 sec.

<mbean code="org.jboss.tm.TransactionManagerService" name="jboss:service=TransactionManager" xmbean-dd="resource:xmdesc/TransactionManagerService-xmbean.xml">
      45
      <depends optional-attribute-name="XidFactory">jboss:service=XidFactory



jboss.xml in META-INF -


    		<ejb-name>TestSessionBean</ejb-name>
    		<jndi-name>TestService/TestSession</jndi-name>
    		<exception-on-rollback>true</exception-on-rollback>
            true
	        <method-attributes>
	           
	              <method-name>testOverriddenTimeoutExpires</method-name>
	              <transaction-timeout>5</transaction-timeout>
	           
	           
	              <method-name>testOverriddenTimeoutDoesNotExpire</method-name>
	              <transaction-timeout>5</transaction-timeout>
	           
	         </method-attributes>

    	

I have tried to trace the Transaction Log by appending in log4j.xml, but could not find any relevant information. 

I have added code to make sure that the processing would take more than a minute, but still haven't been able to simulate the transaction time out.

Please let me know what else is needed to be done.

Thanks for your help.

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

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



More information about the jboss-dev-forums mailing list