[jboss-user] [Installation, Configuration & DEPLOYMENT] - JBoss 4.2 multiple instances - properties file location

dheerya do-not-reply at jboss.com
Mon Mar 23 13:05:28 EDT 2009


Hi,

I have configured multiple instances of JBoss 4.2 on a single machine. I am able to start them simultaneously. No issues till here.

Now our application has some properties files which need to be external i.e. out of the ear file.

So my question is where should I place it so that the application can find it at runtime?

I am running the instances from <JBOSS_HOME>/bin directory. Below is my folder structure.


<JBOSS_HOME> -> bin
                         -> client
                         -> docs
                         -> lib
                         -> Server -> all
                                        -> default 
                                        -> minimal
                                        -> production -> conf
                                                             -> data 
                                                             -> deploy
                                                             -> lib
                                         -> hsbc  -> conf
                                                      -> data 
                                                      -> deploy
                                                      -> lib

production and hsbc are the 2 instances that I'm running simultaneously. I tried placing the properties files in production/lib directory but the application is not able to find it. It throws FileNotFoundException.

Properties files have different properties for 2 instances. So can't keep it in a common location like <JBOSS_HOME>/bin.

Can anyone tell me where should I place my properties files so that application can find it?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220338#4220338

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220338



More information about the jboss-user mailing list