2 Replies Latest reply on Jan 4, 2007 7:26 AM by dimitris

    New jboss version info attributes

    dimitris

      Just saw 4 new attributed added to jboss.system:type=ServerConfig mbean (I'm posting here 'cause Thomas added them)

      SpecificationTitle
      (JBoss)
      ImplementationTitle
      (JBoss [Trinity]) and
      ImplementationVersion
      (4.2.0.CR1 (build: SVNTag=JBoss_4_2_0_CR1 date=200701021921))

      are either obvious or exist already in a jboss.system:type=Server mbean:

      Version
      (4.2.0CR1(build: CVSTag=JBoss_4_2_0_CR1 date=200701021921))
      VersionName
      (Trinity)

      The only useful addition seems to be the
      SpecificationVersion (4.2.0.CR1)

      which again looks more appropriate to appear in jboss.system:type=Server mbean as, e.g., VersionNumber, VersionId, or similar.

      Are those new attributes used somewhere?



        • 1. Re: New jboss version info attributes
          thomas.diesler

          I use

           ObjectName oname = ObjectNameFactory.create("jboss.system:type=ServerConfig");
           jbossVersion = (String)getServer().getAttribute(oname, "SpecificationVersion");
          


          to enable/disable parts of our testsuite dependeing on the target environment. I only added the others for completeness.

          • 2. Re: New jboss version info attributes
            dimitris

            Can you switch (4.2/HEAD) to use a new attribute VersionNumber I added on Server mbean:

            ObjectName oname = ObjectNameFactory.create("jboss.system:type=Server");
            jbossVersion = (String)getServer().getAttribute(oname, "VersionNumber");
            

            I can then revert the ServerConfig changes to avoid attribute bloat.