3 Replies Latest reply on Apr 20, 2006 3:14 AM by starksm64

    How can one find the jboss version that is installed?

    babureddy

      Starting and stopping a jboss server and then scanning the server log is one way of finding the jboss version. Is there any other way to find the jboss version. Like reading a file that comes with the install.

      Thanks in advance,
      Babu

        • 1. Re: How can one find the jboss version that is installed?
          jiwils

           

          "babureddy@rocketmail.com" wrote:
          Is there any other way to find the jboss version.

          Use the Version attribute of the jboss.system:type=Server MBean.

          Use this wiki to see how to communicate with MBeans from Java-based code when running as a part of the application server.

          • 2. Re: How can one find the jboss version that is installed?
            fbiaggi

            Hi,

            try:

             Package mainPkg = Package.getPackage( "org.jboss" );
             String v = mainPkg.getImplementationVersion( );
            
            


            • 3. Re: How can one find the jboss version that is installed?
              starksm64

              Other than the readme.html in the root of the dist, you can get this from the run.jar manifest version headers. The jdk extcheck tool can display this:

              [sstark@sstark bin]$ extcheck -verbose run.jar
              Target file:run.jar
              Specification title:JBoss
              Specification version:4.0.3
              Specification vendor:JBoss (http://www.jboss.org/)
              Implementation version:4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)
              Implementation vendor:JBoss.org
              
              Comparing with file:/C:/usr/java/jdk1.5.0_04/jre/lib/ext/dnsns.jar
              Comparing with file:/C:/usr/java/jdk1.5.0_04/jre/lib/ext/localedata.jar
              Comparing with file:/C:/usr/java/jdk1.5.0_04/jre/lib/ext/sunjce_provider.jar
              Comparing with file:/C:/usr/java/jdk1.5.0_04/jre/lib/ext/sunpkcs11.jar
              No conflicting installed jar found.