aspose file tools*
The moose likes JBoss/WildFly and the fly likes Can the properties file be maintained as part of the EAR or WAR, instead of in \conf (ie. seprately) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Can the properties file be maintained as part of the EAR or WAR, instead of in \conf (ie. seprately)" Watch "Can the properties file be maintained as part of the EAR or WAR, instead of in \conf (ie. seprately)" New topic
Author

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

Jeevan Sunkersett
Ranch Hand

Joined: Jul 03, 2007
Posts: 77
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
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

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.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can the properties file be maintained as part of the EAR or WAR, instead of in \conf (ie. seprately)