This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Exec & Wait - Polling intervals Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exec & Wait - Polling intervals" Watch "Exec & Wait - Polling intervals" New topic

Exec & Wait - Polling intervals

Glen Divers
Ranch Hand

Joined: Jan 21, 2010
Posts: 61
I've got @InterceptorRefs( { @InterceptorRef("defaultStack"),
in one of may actions. I now want to add the delaySleepInterval parameter to the execAndWait interceptor.

I've tried @InterceptorRefs( { @InterceptorRef("defaultStack"),
@InterceptorRef("execAndWait", params = {"delaySleepInterval","5000"})}) and

@InterceptorRefs( { @InterceptorRef("defaultStack"),
@InterceptorRef(value="execAndWait" , params = {"delaySleepInterval","5000"})})

The first version doesn't compile and although the second does, it's not waiting 5 seconds between polls, it's more like 1 second, which co-incidentally is the value in my "wait" jsp - <meta http-equiv="refresh" content="2;url=<s:url includeParams="all" />"/>

Is my second attempt at the intereptor reference correct, and what is the correlation between the delaySleepInterval and the refresh on the "wait".jsp page?

As an added bonus, does anyone know if the exec & wait runs in a seperate thread to the process that it's waiting on? It feels as if the long running process take longer if I use exec & wait.

Consider Paul's rocket mass heater.
subject: Exec & Wait - Polling intervals
Similar Threads
parameter and scope interceptor
execAndWait problem
Struts2 - execAndWait Interceptor
struts2 execandwait interceptor
ExecAndWait interceptor parameters lost