What is the best way of load properties that will be available to any ejb? Specifically, I need an easy way to switch between our test and production databases. I'm not using connection pooling and need know the correct connection string.
One thought was to use jndi-properties.xml, but I'm unsure of the correct syntax.
Another was a class that runs at startup and loads the string into a System.property, but I don't know how to do a load-on-startup in JBoss.
Thank you
Peg