tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <>
Subject Re: How to know if any @Scheduled operation is running
Date Wed, 18 May 2016 08:23:32 GMT

just throwing out an idea: did you check if it was available in quartz JMX

Issue is you will likely get the scheduled tasks but maybe not the "in
progress" information. An interceptor sounds good and you can expose it the
way you want (like having a file you can check in your script which is
easier than having an endpoint if you run in a secured environment where
curl/wget/... are not present).

Romain Manni-Bucau
@rmannibucau <> |  Blog
<> | Github <> |
LinkedIn <> | Tomitriber
<> | JavaEE Factory

2016-05-18 9:45 GMT+02:00 cocorossello <>:

> Hi,
> I'm trying to implement an "autostop" bash (or equivalent) script for
> tomcat
> (I want to implement an "autoscaled" cluster, although I'm a newbie on
> this).
> The script would check for active sessions and stop the server (and the VM)
> whenever is 0, but we also need to look for active @Scheduled operations
> and
> I was wondering if there is an easy way to look for this. The other option
> is to implement a custom interceptor, but I was wondering if there is
> already a solution for this.
> Thanks in advance
> --
> View this message in context:
> Sent from the TomEE Users mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message