Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 958382

Pages: 1
Prashant_Basawa
stranger


Reged: 04/24/05
Posts: 1
Issue loading properties file in an EAR
      #42832 - 01/22/07 10:45 AM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 11436

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5