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: 67
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: 4875
posted Nov 22, 2011 10:24:48
0
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
subject: Can the properties file be maintained as part of the EAR or WAR, instead of in \conf (ie. seprately)