This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi , I have many session beans.I have a properties file which has the app. specific information.I am using the values from the properties file in all my beans. My question is "Is there any way to load the properties file only once, that is, when the first ejb's method (Any ejb method can be invoked first.) gets invoked"? I can put the code in ejbCreate() to load the properties file. But, I don't want to repeat the same code in all ejb's ejbCreate() methods .
I want to know whether a simple and better solution is there other than the above.