• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Can the properties file be maintained as part of the EAR or WAR, instead of in \conf (ie. seprately)

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

From where does an application (EAR) deployed in Jboss 5.1 GA, load properties from, during start-up.

We curently maintain properties files used by our applcation (EAR) in the \conf folder inside the appropriate server folder, inside Jboss

Typically this is d:\jboss5.1\server\default\conf
The EAR/WAR is deployed in d:\jboss5.1\server\default\deploy

The jboss auto-deployer expands it in d:\jboss5.1\server\default\tmp

Can the properties file be maintained as part of the EAR or WAR, instead of in a separate folder ?

(our application is a j2ee application, using Struts, Spring and Hibernate .... and the database connection pool provided by jboss)

thank you.

Jeevan

PS:

Folder structure of a jboss installation

D:\jboss5.1.G.A\server\default
.
+---conf
+---data
+---deploy
+---deployers
+---lib
+---log
+---work
\---tmp
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The properties file can be loaded into any JAR file that is in the EAR or WAR (the JAR need not contain any classes, it could contain just the properties file(s)). Or it can be placed in the WAR at WEB-INF/classes.
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic