Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading external properties file from EJB

 
Lokesh Pahadi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a requirement in which I am supposed to read Properties file from my EJB. The EJB is deployed on Web Logic server 8.1.

The problem is that I don't want to bundle my Properties file within the EJB JAR. I want to keep it outside of JAR so that we can modify it without again repackaging my EJB jar.

Where should I keep my Properties file and how should I read it from inside my EJB.

Thanks in advance!
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is wrong with repackaging your ejb jar. It is on the server and replacing it shouldn't require a restart of the server. And it is on the serverside- so the clients wouldn't notice.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic