This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

how to display list of war versions deployed under Jboss?

Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I have deployed many different war files in the JBoss server and as a business requirement people from the other team need to see the list of wars deployed under Jboss along with versions of war files like

ABC.war (Maven version) 1.0.0
PQR.war (Maven version) 1.0.0

I am not sure how to read the versions of deployed war files for this requirement.

Please let me know if you have any solution.
Posts: 5856
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are several MBeans that you can query to determine what WARs have been deployed. Some of them go by the context name, others by the WAR file name. Here are some examples (you can find others in the JMX console):

jboss.web.deployment:war=/XXX (where XXX is the context),J2EEServer=Local,j2eeType=WebModule,name=XXX.war (where XXX is the WAR file name)

As far a version number go, you will have to handle that on your own. If you let Maven add the version number as part of the WAR file name, then you can extract it from there. Otherwise you will have to write some script/code to extract the version number from within the WAR file (assuming that you or Maven placed it in there somewhere).
    Bookmark Topic Watch Topic
  • New Topic