This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes Handling timeout in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Handling timeout in java" Watch "Handling timeout in java" New topic
Author

Handling timeout in java

sanjiv kapila
Greenhorn

Joined: Mar 14, 2005
Posts: 3
I am developing a application involving webservices through java for server side and Delphi for client side. In my application, through a program i am calling an external interface - Lotusdomino server here to get some data in a transaction and then process the same at my end. My transaction requirement are:

1.in set of cases, FOR EACH CASE
1.1 BEGIN TRANSACTION
1.2.SET TRANSACTION TIME OUT <READ TIMED OUT.
1.3 DELETE RECORDS FROM TABLES
1.4 CHECK IF IGNORECASEDOCS= FALSE;THEN:
1.4.1 DOWNLOAD DOCUMENT FROM LOTUS NOTES SERVER.
ELSE
1.4.2 ROllBACK TRANSACTION.

1.5.IF TRANSACTION TIMEOUT OCCURS
1.5.1 TRANSACTION ROLLBACK.
1.5.2 SET FLAG � IGNORECASEDOCS � TRUE.
2. REPEAT 1 FOR ALL CASES .

However in current scenario my application goes in infinite wait state for getting aresponse from Lotus DOmino Server at 1.4.1. And I am unable to go forward withsetting up the flag IGNORECASEDOCS at 1.5.2.
Can any one guide me to get a control of the system and remove the external interface dependency from my program.
Please note I am not to use EJB/JMS.
Regards
Sanjiv
 
Don't get me started about those stupid light bulbs.
 
subject: Handling timeout in java