0 Replies Latest reply on Jun 29, 2006 3:14 PM by Bamboo Bamboo

    How to fetch Jboss properties, eg. jboss.bind.address, jboss

    Bamboo Bamboo Newbie

      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