tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edoardo Panfili <edoa...@aspix.it>
Subject Re: HOW TO detect what app server you're running in
Date Tue, 25 Oct 2011 11:38:29 GMT
Il 25/10/11 13:33, Bob DeRemer ha scritto:
> I may need to use some Tomcat-specific code in my web app.  As a result, I would like
to detect [if possible] when I'm running in Tomcat, so I can invoke the logic.   If anyone
knows how best to do this, ideally with some sample java code, that'd be great.
>

inside a servlet you can use
this.getServletContext().getServerInfo();

Edoardo

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


Mime
View raw message