I have a utility class (not an EJB) that requires the location of a key file which potentially changes per installation. I figured the best way to allow this file location to change was to store it in JNDI. Therefore, my code assumes the existence of a global JNDI name "key_file". If not found, it uses a default key file.
My problem is that I don't know how to map the "key_file" name to an appropriate value after deployment. eg. I don't know how to bind "key_file" to "C:\java.key".
I thought the JMX console would allow this kind of JNDI administration but it doesn't appear to. Can anyone shed some light on this? I have tried looking through various JBoss documentation to find an answer to this to no avail.