• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

retrieve JBOSS version programmatically from any JBOSS release

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I found some matches for this subject, but no suitable and working answer.
Does somebody know a way to get the running JBoss version (for ex. "7.1.3") string using Java, independently of the JBoss version. (working on JBoss 4 and 7 for ex.)
Thanks in advance,
David
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
David, welcome to CodeRanch!

I don't there's a version independent way of doing that. Is there a reason you want that version programatically?
 
David Clesse
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Jaikira,
Thank you for your answer.
Actually it's to get the environment properties for bugtracking purpose.
Our apps are installed on different JBoss versions, across several customers.
David
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In newer versions of JBoss you can use jboss-cli. It comes as an executable (jboss-cli.bat / jboss-cli.sh), but I know it also has an API.

After connecting there are two things I can query:
You may want to experiment with the API, and see if it's available on older versions as well.

And I just tried JBoss AS 7.1.1 as well, and it contains no product-version, only a release-version.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic