File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
Properties file in EJB Ear
Joined: Aug 13, 2004
Aug 14, 2008 19:18:00
I have a simple question to all. I am developing a MDB. I have some configuration things and application related properties in a file
Normally in web application war, to make
class file to read this we can keep in web-inf classes
, where to keep such properties file to be read by ejb in ear.
I Kept in a folder called resources/ in ear root itself
and gave the path in manifest.mf of ejb.jar as
But i am not able to pick it up. May i know the right approach for the same
SCJP 1.4 SCWCD 1.4 SCDJWS 1.4
Joined: Oct 23, 2005
Aug 15, 2008 09:24:00
Take a look at the method
, it's useful for reading property files from within JARs.
Down Home Country Coding with Scott Selikoff
I agree. Here's the link:
subject: Properties file in EJB Ear
property files in ejb tier
EAR deployment problem Weblogic Migration... additional resources needed on classpath
Reading external properties file from EJB
resources in multi war or ear application
Is it wrong to place EJB jars in a WAR file?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013