This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
wood burning stoves
 
subject: Handling timeout in java
 
Similar Threads
Handling transaction time out
Transaction handling in stateless session bean.
can I rollback my transactions (which are set as con.setAutoCommit(false) )after few days ?
My Study Notes
Transaction Timeouts