A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
Reading external properties file from EJB
Joined: Jan 09, 2005
May 03, 2006 04:03:00
I have a requirement in which I am supposed to read Properties file from my EJB. The EJB is deployed on Web Logic server 8.1.
The problem is that I don't want to bundle my Properties file within the EJB JAR. I want to keep it outside of JAR so that we can modify it without again repackaging my EJB jar.
Where should I keep my Properties file and how should I read it from inside my EJB.
Thanks in advance!
Joined: Feb 05, 2001
May 03, 2006 08:04:00
What is wrong with repackaging your ejb jar. It is on the server and replacing it shouldn't require a restart of the server. And it is on the serverside- so the clients wouldn't notice.
Perfect World Programming, LLC
Two Laptop Bag
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Reading external properties file from EJB
Overriding ejb-properties in a webservice (possibly with ejb-jar.xml)
copy a property file to the dir where the runme.jar runs
Detect if a .properties file is in a jar
Servlet properties file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015