Re: Getting a WAR last deployment timestamp thru JMX ?

2017-09-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Laurent,

On 9/7/17 10:52 AM, Laurent Perez wrote:
> I'm exposing some webapp metrics over a JSON servlet. I'd like to
> output the deployment timestamp of my webapp, when war is
> redeployed by tomcat using the built-in /manager/. I looked into
> the manager and could not find a timestamp.
> 
> Is there some magic JMX query available to obtain the last
> deployment time of a war ?

Poke-around in the JMX tree that Tomcat exposes. If you see it, you
can fetch that value through the manager's JMXProxyServlet.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJZsb5nAAoJEBzwKT+lPKRYknsP/ip2kkC5jXaEsQ+REaFelutv
vwgLGR7pndQOWsSB3ruOJdIVwYMvrk0D4nUUA1U9HYMI5DOWXTEzsixGsRbsZavi
CP499Eyx3WSipoibnDTWCuIJtyKo7txN46X373oU5NImgNo+SivwkFklP2Xgx+gF
PW5WZ1Z4/BZpDuoskftyXXejJ3AgAU7cEtlk3MeKINv+GX8PP+eyBMso1PZzRvh5
LTECUnziHqjVEJgZuBhjz9U3ae//BJiTi+Qj28+Wy/mqkCILYUHZMTSH5VXf2DtP
39QAPijZ+JgnLlOFlNVKebgPLOZfQgAlRcr4PHHqo+5SFB5sc6D6int7Q+MsVjy/
JOjl/hL50X0ekhNi7UZYPmxv+Qf3LwBvtbhoACx5U7mzMcgx2pnVoAaIgAaUABSo
DqtOY5PWNjnO1Dlp1C8MpjDYxLdDahRSmVcNOGLU3JZjBfEvBzjkEuQYEm1yYNUW
jnJh+SEfbpdfoovkd4Nz7UwowAAszXqgKDVM+QfqzLBBEhRNGNS0zysLl99gQ8sJ
hH8L34onEohjfGDyskjlSQM1a5COevGwJg5f1idkEpm0fRblmS3knHBQjDGGFY/O
fMXI95STGlbxZfUn8pwi3xJt2nkCxUTrLR1YqFN6v9UJ8v5GxGUxCE34tdoBobBe
cVhD22Sjix6gfvwBiVrV
=ttUm
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Getting a WAR last deployment timestamp thru JMX ?

2017-09-07 Thread Laurent Perez
Hi

I'm exposing some webapp metrics over a JSON servlet. I'd like to output
the deployment timestamp of my webapp, when war is redeployed by tomcat
using the built-in /manager/.
I looked into the manager and could not find a timestamp.

Is there some magic JMX query available to obtain the last deployment time
of a war ?

Thanks
laurent

-- 
http://laurentperez.fr
J2EE, HTML5, JS, CSS3