Setting up system properties to be picked up at JBoss EAP 5 / 4 application server startup

Solution Verified - Updated -

Issue

  • Want to setup variables (system properties) to be available for various services

  • System properties must be available right from JBoss startup as if they were set directly (using -Dsysprop=value)

  • Using properties-service.xml to set the properties in the PropertyEditorManager MBean does not work as properties are only available after the service starts. Is there a workaround for this?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x

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.