Hi, I'm relatively new to
JBoss AS and I'm doing a migration from WAS to JBoss. One thing we need to do is keep our datasource usernames/passwords in a properties file outside of the deployed EAR. I can currently get it to work with the following code in jboss-service.xml:
<classpath codebase="file:///C:/props/"/>
What I'd like to do is make this path relative instead of absolute. I guess I'm unclear as to the best practice for configuring external property files in JBoss.
If someone else is doing this, can you please post an example of what you did, along with the
java code to access it?
I should mention that we have other property files inside the project and I want to use the same code to access all properties. Here is what that code looks like:
URL url = Thread.currentThread().getContextClassLoader().getResource(property);
Properties p = createPropertyObject(url);
Thanks in advance.