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

Ability to add stacks to JChannelFactory

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • 2.6.1, 2.7
    • None
    • None

      It would be nice to be able to add additional stacks to an existing JChannelFactory.

      Example: an AS deployment that wants to use a specialized channel. The deployment could package an "added-stacks.xml" file and a -beans.xml file that declares something like this:

      <bean>
      <!-- Add our stacks to the app server's standard JChannelFactory -->
      <install bean="JChannelFactory" method="addMultiplexerConfig">
      <parameter>added-stacks.xml</parameter>
      </install>
      </bean>

      Other services in the deployment would then be able to use some custom stack declared in added-stacks.xml.

      The nice thing about this is it allows packaging of custom stacks with the deployment that uses them, rather than forcing an edit of a global stacks.xml file.

      A quick look at JChannelFactory tells me this should be pretty simple to do. The existing setMultiplexerConfig methods seem to work like "add" methods, i.e. they could be invoked multiple times with different passed in values. A minor exception is setMultiplexerConfig(String) which also caches the passed String in an instance field. So, it should be simple to add addMultiplexerConfig methods that basically invoke the same logic.

      They should probably be added to the jmx.JChannelFactory as well.

              rhn-engineering-bban Bela Ban
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: