How to programatically get the name and version of the JBoss server ?
Issue
- Need to identify the JBoss as Application Server and it's version.
- How to use ServerConfigLocator.locate() while migrating applications to the new JBoss EAP 6.1 to get ServerName as following:
ServerConfig serverConfig = ServerConfigLocator.locate();
return serverConfig.getServerName();
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
