File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes file outside application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark " file outside application" Watch " file outside application" New topic
Author file outside application

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 237
Hi all,

In my EJB 2.0 web application I have used log4j for java files as well as in jsp files of .war.
And most important thing my file is not in the .ear.
It is in another zip file outside application(.ear).
My question is how do my web application(.ear) will recognize the file which is outside .ear?
Where do I need to refer that properties file and how(which is inside a zip)?

Thanks in Advance,
Martijn Verburg

Joined: Jun 24, 2003
Posts: 3275

The needs to be on the CLASSPATH of your application, if the in your other zip file is accesible in a CLASSPATH manner, then you'll be OK. I'm doubting that it will pick up a properties file in a ZIP archive though.

Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
I agree. Here's the link:
subject: file outside application
It's not a secret anymore!