|
From: Christian <chr...@ta...> - 2010-09-22 00:18:22
|
Dave, you can do this with the org.tanukisoftware.wrapper.WrapperManager.getJVMId() method. http://wrapper.tanukisoftware.com/jdoc/org/tanukisoftware/wrapper/WrapperManager.html#getJVMId%28%29 public static int getJVMId() Returns the Id of the current JVM. JVM Ids increment from 1 each time the wrapper restarts a new one. Any value larger than 1 indicates, that the app was restarted. Hope this helps you out. Cheers, Christian -----Original Message----- From: Dave Muirhead <mui...@ya...> Reply-to: wra...@li... To: wra...@li... Subject: [Wrapper-user] Distinguish Between Start and Restart Date: Tue, 21 Sep 2010 15:24:28 -0700 (PDT) Is there a way, from within a WrapperListener, to distinguish a start from a re-start? Stated another way, how can I know if the WrapperListener's start method is being invoked due to a re-start in the aftermath of a JVM failure? Thanks, Dave ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |