• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss connection time out

 
Tom Ys
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

My environment is: Windows XP, Eclipse 3.4.1 and JBOSS 5.0.1

I am connecting to another web service using a Java Bean through JBoss which will take some time to complete, possibly 8 hours. The Java Bean calls the other service which is in IIS, then may have to wait up to 8 hours. This is a problem for the Java Bean since it times out after 5minutes.

Is there an option I can use within the Java Bean or in a JBOSS config which will extend the timeout?

 
Tom Ys
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I did find option in file: deploy/transaction-jboss-beans.xml
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="urn:jboss:bean-deployer:2.0">

<bean name="TransactionManager" class="com.arjuna.ats.jbossatx.jta.TransactionManagerService">
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=TransactionManager", exposedInterface=com.arjuna.ats.jbossatx.jta.TransactionManagerServiceMBean.class, registerDirectly=true)</annotation>

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

The property above, transactionTimeout, is 300. If I jack this up to 8 hours: 28800sec Will this do it? Or, will I have to adjust another timeout?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you need to come up with an alternate design. You really should not have a call waiting for 8 hours for something to finish. You should rig up an eventing or callback mechanism instead. Even a poling mechanism would be better than waiting for 8 hours.
 
Tom Ys
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks for the suggestion. If you can, please send links to examples of your suggestions? I would be glad to explore these options. Right now, this small shop wants this design out the door Tuesday and the computers involved are dedicated. My questions is still out there...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic