Can a java program know what kind of server it is running on?



Is there a pure java way to find the identity of the web server that
the application is running on?

A system property? A JMX query? Anything?

I want to have my webapp behave differently based on the webserver
being used. Is there a way to tell what the server is (tomcat,
websphere, weblogic, etc)?

.