• 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

Exec & Wait - Polling intervals

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've got @InterceptorRefs( { @InterceptorRef("defaultStack"),
@InterceptorRef("execAndWait")})
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.

Regards
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic