Does System.getProperty("catalina.base")
give only the Tomcat home, or does it also work on servers like GlassFish or WebSphere?
System.getProperty("catalina.base")
gives me the following path:
C:\Tomcat 6.0
Does System.getProperty("catalina.base")
give only the Tomcat home, or does it also work on servers like GlassFish or WebSphere?
System.getProperty("catalina.base")
gives me the following path:
C:\Tomcat 6.0
Only for tomcat. Catalina is a tomcat specific thing!
Catalina is basically the servlet container used by tomcat.
In short, yes.
Catalina refers to the Tomcat Servlet Container, the module of the Tomcat Web Application Server that implements the Servlet and JSP Sun Microsystems Specification.
Other modules include Coyote, Jasper and Jasper 2.
The above applies to Tomcat 6. I don't know the details of the latest Tomcat release.