How to use java.util.Properties so that things like provider_URL,initial_context_factory are not required to be hard coded. The class should work for both JBoss and oc4j deployment.
Generally I just use something like
private static final String PROPERTIES_FILE = "/usr/local/foo/foo.properties";
Is this not working? Sorry if I missed your problem