• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
What's gotten into you? Could it be this tiny ad?
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic