Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Access properties in context configuration files


We are trying to use the properties that are passed to start.jar in our context.xml files, but these are not available unless we explicitly put each property into the PropertiesConfigurationManager. Is there any way to pass all properties through configuration?

This is our current setup (I removed some lines when they weren't important):
Jetty commandline:
... start.jar ...

jetty-deploy.xml file:
<Call id="webappprovider" name="addAppProvider">
    <New class="org.eclipse.jetty.deploy.providers.WebAppProvider">
      <Set name="monitoredDirName"><Property name="jetty.base" default="." />/contexts</Set>
      <Set name="defaultsDescriptor"><Property name="jetty.home" default="." />/etc/webdefault.xml</Set>
      <Set name="scanInterval">0</Set>
      <Set name="extractWars">true</Set>
      <Set name="configurationManager">
        <New class="org.eclipse.jetty.deploy.PropertiesConfigurationManager">
          <--! This is our current solution --->
          <Call name="put"><Arg></Arg><Arg><Property name=""/></Arg></Call>

  <Property name=""/>

This works, but we have to keep the jetty-deploy.xml file up to date whenever we add a new property. 

I have noticed that the properties are stored in a file in the temporary folder and if we could get a reference to this file, we could pass it into the PropertiesConfigurationManager.

Any ideas? Thanks in advance!

Software Developer
T +32 56 43 42 45 • mathias.decrock@xxxxxxx

Brabantstraat 15 • BE-8790 WAREGEM
T +32 56 43 42 11 • F +32 56 43 44 88 •
Watch our company movies on

**** DISCLAIMER ****

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this

Back to the top