This content has been marked as final.
Show 2 replies
-
1. Re: New jboss version info attributes
thomas.diesler Jan 3, 2007 11:38 AM (in response to dimitris)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 Jan 4, 2007 7:26 AM (in response to 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.