Re: How to find war file name programmatically?

2019-08-17 Thread W
ServletContext.getRealPath("/") works for me.Thanks. On Tuesday, August 13, 2019, 01:43:35 AM PDT, Mark Thomas wrote: On 12/08/2019 23:18, W wrote: > Hi, > I would like to find the war file name (for example,  > ROOT##2019-08-12-10-44.war) inside   >

Re: How to find war file name programmatically?

2019-08-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 8/13/19 04:43, Mark Thomas wrote: > On 12/08/2019 23:18, W wrote: >> Hi, I would like to find the war file name (for example, >> ROOT##2019-08-12-10-44.war) inside >> ServletContextListener.contextInitialized() and >>

Re: How to find war file name programmatically?

2019-08-13 Thread Mark Thomas
On 12/08/2019 23:18, W wrote: > Hi, > I would like to find the war file name (for example,  > ROOT##2019-08-12-10-44.war) inside   > ServletContextListener.contextInitialized() and  > ServletContextListener.contextDestroyed(). So I can send email to admins warn > them which app is up and down.  >