[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Maintaining properties between deployments of WAR file

jaikiran do-not-reply at jboss.com
Tue Aug 18 00:18:40 EDT 2009


"tmcdeploy" wrote : My sys admin is insistent that it should go there ... however when I do so I get the following error:
  | 
That's because the deploy directory does not allow any files which it doesn't recognize. What is the reason they give you for not allowing the files in the conf folder (which is the right place) but forcing you to use the deploy folder?


"tmcdeploy" wrote : 
  | Can you point me to any official documentation that says I can't put it there? 

The documentation is here https://www.jboss.org/community/wiki/jbossapplicationserverofficialdocumentationpage but i don't think it will have a section for which files are not allowed in the deploy folder. 

If your admins are adamant on using the deploy folder, then you can use the properties-service.xml (which is already available in the deploy folder) to add your properties as System properties. See this guide http://docs.jboss.org/jbossas/jboss4guide/r1/html/ch10.html#ch10.props.sect:

  |  <attribute name="Properties">
  | 
  |       xyz=some value
  |       
  | 
  |     </attribute>

 In your code, you can then access it as:

System.getProperty("xyz");

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

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



More information about the jboss-user mailing list