Hi,
What is the best way to implement properties/variables for a
Java EE application?
I have an
EJB which needs a list of variables whose values are needed for processing in EJB (say for example the JMS servers it needs to publish and various other application specific properties(there are around 50 properties)).
At present, we have a xxx.cfg file which has all the values of these variables put in the server. We hard code this file's path in the EJB and the EJB parses this file to hash the key value pairs and it is used in the application.
I want to remove the code which hard codes the files' path.
Is it better to put this xxx.cfg in the ear of the application or is there any other better/standard way of implementing this?
Your help is greatly appreciated
Thanks
Mani Natarajan