This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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?
Joined: Sep 22, 2011
I did find option in file: deploy/transaction-jboss-beans.xml
<?xml version="1.0" encoding="UTF-8"?>
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.
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...