I am trying to write a java program that runs on the same machine Jboss is installed (and running). I need to programmatically (from my java program) figure out where Jboss is installed on that system, and also what port it is running at.
I know Jboss has properties like jboss.bind.address, jboss.server.base.dir I can use, but it always return null when I do a System.getProperty("jboss.bind.address") or System.getProperty("jboss.server.base.dir"). What's the easiest way to get to these jboss properties? Do I need to actually call their MBeans? Is there an easier way?
thanks,
Pi