Programmatically getting the application name and module in JBoss EAP

Solution Verified - Updated -

Issue

  • I can get the application name and module name that my bean is in when running in JBoss EAP 6?
  • How to get the deployment name at runtime in JBoss EAP 6?
  • How get the AppName / ModuleName from an application running in JBoss EAP 6?
  • How to get the application name and module name when running in JBoss EAP 7.2
  • How to get the applicationName and moduleName in JBoss EAP 8
  • How to look up the application-name and module-name in JBoss EAP using JNDI?
  • How to @Resource inject the application-name and module-name in JBoss EAP using JNDI?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 8.x
    • 7.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content