• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Retry functionality in Java Struts web based application

 
Ranch Hand
Posts: 165
Tomcat Server Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want to implement a retry functionality in my struts based application whenever the request failed or during exception encountered in system.


In Spring framework, we can use annotation @RetryOnFailure, like below



But I'm not sure about struts based application.

I want to prepare a component so that I can use through out my web application wherever it is required and expected to through exceptions like DB Connection, Documentum Server connection, and especially failed to download attachment(based on documentum code) with Documentum server.

My only worry is in single threaded environment, for instance, when user try to download an attachment and it failed, if i put retry functionality here(say after few minutes) then my browser will still be loading and loading, waiting for retry waiting time to be elapsed before server request again. Now can you please advice how to handle such situation such that retry happens parallely in different thread.

Is there any third party tool to be used for retry functionality.

I'm using web logic application server here with JDK 1.6.

Thank you



 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic