• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Configuration file in EAR

 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic