Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] sharing config across servers in jetty 9

This has now been implemented in [master].
Due for inclusion in Jetty 9.2.0 release.


The implementation uses a --extra-start-dir=<path> logic instead to load the interim directories.
Please give a whirl.

You can find nightly builds of Jetty 9.2.0 in our SNAPSHOT repo

Direct link to 9.2.0-SNAPSHOT tarball artifacts ...

Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts

On Tue, Apr 1, 2014 at 11:29 AM, Hal Deadman <hal.deadman@xxxxxxxxx> wrote:
Maybe you could have a "config.dirs" property with a default value of "jetty.home,jetty.base"

Let users override it to anything they want as long as jetty.home is first and jetty.base is last. (Not sure if that would necessarily be required but it might be easier to just enforce that for the time being. )

To use your example: 

You would need other properties with directories as values for corp.common, devops.common, and project.common. 

If you defined this property on the command-line or in the jetty.base config then you could have different sets of config for different servers (in case some servers didn't want config from a particular shared location). 

On Mon, 31 Mar 2014 15:15:12 -0700, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:

This is an open feature request.
The jetty-9-alpn branch (aka the jetty-9.2 branch), has reworked the file
lookups, and are in a better place to support shim directories (sorry,
don't have a better name for them) in the future.

So that the lookup could logically look like something of the following ...
   ${jetty.base}    = /opt/apps/self-serve
   ${project.common}  = /opt/groups/web-group
   ${devops.common} = /opt/devops/devops-common
   ${corp.common}      = /opt/corp/legal-common
   ${jetty.home}          = /opt/jetty/jetty-distribution

Would welcome some discussion on a good way to accomplish it.
I think having the directories also be associated with a property name is
important (for various lib or xml lookups)

jetty-users mailing list

Back to the top