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