I am trying to print jboss.server.dir variable but the output is null
i am doing System.out.println(System.getProperty("jboss.server.dir"));
I am executing this piece of code in a simple POJO class deployed in JBOSS App server 1.4.
Any pointer to this is greatly appreciated
There's no property named jboss.server.dir. Are you looking for jboss.home.dir? Have a look at the various system properties that jboss sets at: