Does anyone know how to programmatically obtain the server version number under JBossAS 5.1?
JBossAS 4.2 had org.jboss.Version, with getMajor() and getMinor() methods, but this doesn’t seem to exist in 5.1.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In the end I chose to decompile the
Versionclass from JBoss 4.2 to see what it was doing, and see if the result could be retrofitted into JBoss 5. The end result was to load the resource/org/jboss/version.propertiesinto aPropertiesobject, and then read out theversion.majorandversion.minorproperties from that. Beats me why they couldn’t just leave theVersionclass in there, but there you go.