File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jeevan Sunkersett
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic