I am working on a J2EE project. We need to store some configuration information for our J2EE applications. We use EJB, JMS, and Databases.
The question is WHERE to put and How to get application or server configuration information? We store the application configuration information into an XML file. We put this XML file into jboss\bin\input and use a plain java class to read configuration parameter. All other EJB will access the plain Java class to get configuration parameters.
However, access to the filesystem from EJBs is not allowed in J2EE specification despite that our method is indirect access XML file by EJB. I know that I can put configuration in a database *sounds* like a good idea - but I think there will be a performance hit - and the relational model is not necessarily good for properties with a hierarchy.
I would like to get some informed opinions - some feedback on how other people have tackled this problem.
Thanks!!!!
The question is WHERE to put and How to get application or server configuration information? We store the application configuration information into an XML file. We put this XML file into jboss\bin\input and use a plain java class to read configuration parameter. All other EJB will access the plain Java class to get configuration parameters.
However, access to the filesystem from EJBs is not allowed in J2EE specification despite that our method is indirect access XML file by EJB. I know that I can put configuration in a database *sounds* like a good idea - but I think there will be a performance hit - and the relational model is not necessarily good for properties with a hierarchy.
I would like to get some informed opinions - some feedback on how other people have tackled this problem.
Thanks!!!!