Saturday, September 19, 2009

an easy way to check some System properties

The properties.jsp page available in properties.war has proven to be useful from time to time.
see http://www.consideringred.com/files/mix/properties/properties.war

It allows you to quickly check some System properties on the server you are dealing with.
- For example on OC4J:
properties.jsp?pProperty=oracle.j2ee.container.name
could return oracle.j2ee.container.name = Oracle Containers for J2EE 10g (10.1.3.4.0)
- For example on Oracle WebLogic Server Version 10.3.1.0 (11gR1):
properties.jsp?pProperty=java.vm.name
could return java.vm.name = BEA JRockit(R)

If you add the properties.jsp page to your own application, it could be a quick way to check some System property values used by your application.
(note : Be careful when packaging the properties.jsp page for a production deployment.)