System Property Substitution in JBoss EAP 4.x

Solution Verified - Updated -

Issue

  • Is there a way to place a value in a variable and then reference it when creating JNDI bindings?
  • Can system property substitution be used in jndi:value elements of the JNDIBindingServiceMgr MBean?
    ...
    <jndi:binding name="some/service/url">
      <jndi:value type="java.lang.String">http://${somevar}</jndi:value>
    </jndi:binding>
    ...
    
  • Is system property substitution supported within a service descriptor?
  • How can place changing values in my SAR so that I don't have to repackage it (or any deployment) for each change?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 4.2
    • 4.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.