Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Prop File Location-J2EE Application  RSS feed

 
Ajai
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In my J2EE application I am using some prop files which my EJB uses.

I want the location of these prop files to be portable e.g. I do not want to hard code it.
Is there any way I can specify the location when I deploy my application on app. server say WAS just like we do it for res. references.

Thks.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37234
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajai,
You can update the app server classpath to include the property file directory. Since this can be done at deployment time, it is not hard coded in the application itself.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!