Options in Basex 7.5

Thursday, 15 November 2012 · 4 messages
AB
Andy Bunce15 Nov 2012 12:14 #
There are many ways to set options [1] but it is not clear to me which one wins in the case where different values are specified for the same option by the different ways. I guess it is the 1st one to be set. So SystemProperty, then command line, then .basex? I am often getting caught out by the fact that in recent 7.5 builds the http properties are ignored unless they are set by editing jetty.xml. I wonder if the supplied jetty.xml could use <SystemProperty>. Something like:
  <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
   <!-- host sometimes needed in PaaS envronment -->
    <Set name="host"><SystemProperty name="org.basex.serverhost"
default=""/></Set>
        <Set name="port"><SystemProperty name="org.basex.serverport"
default="8984"/></Set>
        <Set name="confidentialPort"><SystemProperty name="org.basex.??"
default="??"/></Set>
        <Set name="maxIdleTime">60000</Set>
        <Set name="reuseAddress">false</Set>
        <Set name="Acceptors">2</Set>
      </New>
/Andy
CG
Christian Grün15 Nov 2012 14:46 #
Hi Andy,
Quoted text · Andy Bunce · 1 line
> I wonder if the supplied jetty.xml could use <SystemProperty>.
sounds like a good idea! I'll test it and, most probably, include it if I don’t encounter any surprises. Thanks, Christian
CG
Christian Grünin reply to Andy Bunce, 15 Nov 2012, 12:1415 Nov 2012 15:04 #
..added. There is no option yet for the confidential port, as it required a number of additional options. Anyway, if you think that would be useful, we could easily add such an option.
Quoted text · Andy Bunce · 27 lines
> I am often getting caught out by the fact that in recent 7.5 builds the http > properties are ignored unless they are set by editing jetty.xml. > I wonder if the supplied jetty.xml could use <SystemProperty>. Something > like: > > <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> > <!-- host sometimes needed in PaaS envronment --> > <Set name="host"><SystemProperty name="org.basex.serverhost" > default=""/></Set> > <Set name="port"><SystemProperty name="org.basex.serverport" > default="8984"/></Set> > <Set name="confidentialPort"><SystemProperty name="org.basex.??" > default="??"/></Set> > <Set name="maxIdleTime">60000</Set> > <Set name="reuseAddress">false</Set> > <Set name="Acceptors">2</Set> > </New> > /Andy > > > [1] http://docs.basex.org/wiki/Options > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
AB
Andy Bunce15 Nov 2012 15:46 #
The confidential port is not too important to me. I have been playing with the PaaS Openshift [1]. which needs to listen on a IP address that is runtime determined With confidential port I am just doing a one-off change to say 15000 to get it in the openshift allowed range. I can do that as part of the platform setup. /Andy [1] https://openshift.redhat.com/app/ [2] https://openshift.redhat.com/community/kb/kb-e1038-i-cant-bind-to-a-port On Thu, Nov 15, 2012 at 2:04 PM, Christian Grün <christian.gruen at gmail.com>wrote:
Quoted text · Christian Grün · 34 lines
> ..added. There is no option yet for the confidential port, as it > required a number of additional options. Anyway, if you think that > would be useful, we could easily add such an option. > ___________________________ > > > I am often getting caught out by the fact that in recent 7.5 builds the > http > > properties are ignored unless they are set by editing jetty.xml. > > I wonder if the supplied jetty.xml could use <SystemProperty>. Something > > like: > > > > <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> > > <!-- host sometimes needed in PaaS envronment --> > > <Set name="host"><SystemProperty name="org.basex.serverhost" > > default=""/></Set> > > <Set name="port"><SystemProperty name="org.basex.serverport" > > default="8984"/></Set> > > <Set name="confidentialPort"><SystemProperty name="org.basex.??" > > default="??"/></Set> > > <Set name="maxIdleTime">60000</Set> > > <Set name="reuseAddress">false</Set> > > <Set name="Acceptors">2</Set> > > </New> > > /Andy > > > > > > [1] http://docs.basex.org/wiki/Options > > > > _______________________________________________ > > BaseX-Talk mailing list > > BaseX-Talk at mailman.uni-konstanz.de > > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > >

⚡Generated with XQuery