• Post Reply Bookmark Topic Watch Topic
  • New Topic

Configuration file in EAR

 
David Follow
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have an EAR file that holds a WAR and a bunch of JAR files.
Now the thing is that I would like to have an application-wide
(EAR-wide so to speak) configuration file say myApp.properties.
Where do I have to but the myApp.properties in the EAR file so that
ALL of my components (WAR and all of the JARs) can access and therefore
read the properties file?
I was thinking about the META-INF/Manifest.mf but I don't know where
to put it in there. Or do I have to put it in the APP-INF of my EAR?
Any comments are welcome!
 
Nagendra Prasad
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this was on WebSPhere, I would have said in the root directory of the enterprise application. ie. if enterprise appl is myApp, then in this folder.
 
David Follow
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, sometimes in production systems you cannot just copy files
to the root directory of your application server. The people running
and administer those servers would go green after a while.
Besindes, this doesn't work on Weblogic so I assume there must be
a better rule that is part of the J2EE spec.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Misos",
As our naming policy states, a display name must include a last name. Please, change your display name to comply.
Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!