[jboss-dev] Determining JBoss AS server version by examining install

Ales Justin ales.justin at gmail.com
Mon May 14 15:06:56 EDT 2007


See how it is done in AS:

org.jboss.system.server.profileservice.ServerImpl

/** Package information for org.jboss */
    private final Package jbossPackage = Package.getPackage("org.jboss");

       log.info("Release ID: " +
                   jbossPackage.getImplementationTitle() + " " +
                   jbossPackage.getImplementationVersion());

If this helps.

Rgds, Ales



More information about the jboss-development mailing list