Unable to access properties files in a custom directory in JBoss 4.3.x and 5.x

Solution Verified - Updated -

Issue

  • We want a company data folder where we can put custom properties files for global access.  We created one and added it to conf/jboss-service.xml but cannot load the properties file with this.getClass().getClassLoader().getResourceAsStream("<property_file_name>");"

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.x
    • 4.3.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.