Forums Register Login

Reading external properties file from EJB

+Pie Number of slices to send: Send
Hi all,

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!
+Pie Number of slices to send: Send
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.

Mark
Ruth Stout was famous for gardening naked. Just like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2362 times.
Similar Threads
Overriding ejb-properties in a webservice (possibly with ejb-jar.xml)
Ant Query
copy a property file to the dir where the runme.jar runs
Detect if a .properties file is in a jar
Servlet properties file
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 04:22:05.