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, 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