Prashant_Basawa
(stranger)
01/22/07 10:45 AM
Issue loading properties file in an EAR

Hi,

My ear contain several ejb jar files. An EJB is trying load a properties file which outside the jar file which contains the EJB. But its in ear itself.

EAR.ear
|
|-----EJB.jar
|
|-----properties
``````````|-----my.properties

I'm using this.getClassLoader().getResourceAsStream() method. Still its not able to find the properties file.

Please help me.

Rgds
Prashant



Contact us JavaWorld

Powered by UBB.threads™ 6.5.5

Featured White Papers


RESEARCH CENTERS: Java Standard Edition | Java Enterprise Edition | Java Micro Edition | Development Tools
About Us | Advertise | Contact Us | Terms of Service/Privacy
Copyright, 2006-2008 Network World, Inc. All rights reserved.