0 Replies Latest reply on May 5, 2004 2:10 PM by pjrichter

    Best way to establish systemwide properties at startup

    pjrichter

      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