You can put in in your webapp's classes directory, i.e.
$TOMCAT_HOME/webapps/myapp/WEB-INF/classes, and use
getClass().getClassLoader().getResource() or
getClass().getClassLoader().getResourceAsStream() to load it from inside the
servlet.

Cheers, Matt

----- Original Message -----
From: Joachim Schaaf <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 6:59 AM
Subject: [JBoss-user] Where to put property files for an application?


> Hi,
>
> I'm new to JBoss and want to port an existing Java application to JBoss. I
> wrote a simple EJB, taglib and JSP page and hey!  - it works ;)
> Currently the configuration is stored in a property file (database user
> name/passwd/jdbc and lots of app. specific things). Where should it put
the
> property file in JBoss? Or is there a smarter solution than property
files?
>
> Thanks in advance,
> Joachim
>
> --
> Dipl.-Ing. Joachim Schaaf | Projektleiter | mailto:[EMAIL PROTECTED]
> cataloom AG | Eupener Str. 148 | 50933 K.ln | http://cataloom.com/
> Tel: +49 221 4851807 | Fax: +49 221 4851907 | Mobil-Tel: +49 170 7667807
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to