[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Props file and classpath question



You can use Classloader.getResourceAsStream().
 
-chris
-----Original Message-----
From: Alain Nicolet [mailto:anicolet@spiredex.com]
Sent: Thursday, February 21, 2002 1:22 PM
To: ajug-members@www.ajug.org
Subject: Props file and classpath question

How do I get a properties file out of my classpath from within java code.  Is this possible?
I need to access multiple properties files from within an ejb(Stateless session).
I read the link put up a post ago (http://java.sun.com/j2se/1.4/docs/guide/lang/preferences.html) but it's not really what I need. 
 
 
Thanks,
 
Alain