Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2908

XML configuration: allow for inclusion of other files

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 5.5.0
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Most configurations are similar: oftentimes only the transport (TCP or UDP) and the discovery protocol are different. It would therefore be nice to configure the 2 default transports in separate files, and include them from other configurations.

      This way, changes / optimizations to transports would not have to be copied to all configurations, but would be done only in a single file.

      Example:

        <include
              file="${transport-config:tcp-default.xml}"
        />  
         <MPING />
         ...
      

      This includes tcp-default as transport in a configuration. Note that if system property transport-config was set, this would allow for dynamic inclusion of different transports.

      See how this works in practice, and possibly add more functionality, e.g. (inspired by Infinispan)

      • Add protocols at a given location
      • Remove a protocol
      • Add/remove/replace attributes

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: