0 Replies Latest reply on Dec 21, 2006 8:57 AM by Andrew Shuttlewood

    Global environment entries

    Andrew Shuttlewood Newbie

      I'm trying to get some form of global environment entry so that it can be seen in JNDI by everybody.

      We want a series of bits of information to be stored that will be different depending on whether the server is in a dev/test environment and a live environment. In Tomcat we used server.xml Environment tags, but this doesn't seem to work in JBoss.

      I found the JNDI Binding Manager, but this causes me problems too, as it produces the cryptic error message

      ObjectName: jboss.tests:name=example1
      State: FAILED
      Reason: org.jboss.deployment.DeploymentException: No property editor for attribute: BindingsConfig; type=class org.jboss.naming.JNDIBindings

      This is for the example that's in the documentation!

      We're using jboss4.0.5 with the EJB3 extensions.

      The only other way I can see to attack this problem is something like a custom bit of Java code that does the necessary work, or alternatively storing the properties in a database, but both of them seem like a bit of a waste.