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

RELAY does not use protocol stack supplied programmatically

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 4.2.5
    • 4.2.4
    • None
    • Hide

      Changed to 4.2.5: 5.0.0 has no RELAY any longer (deprecated)

      Show
      Changed to 4.2.5: 5.0.0 has no RELAY any longer (deprecated)

    Description

      RELAY does not use protocol stack supplied programmatically (i.e. stack which was set by using relay.setProtocolStack(protocolStack). Even though the stack is used in init(), the function below only relies on bridge_props file. Even though using an XML file is mostly possible, it becomes problematic when a custom SSLContext needs to be used in SSL_KEY_EXCHANGE, which can now only be set programmatically.

       

      protected void createBridge() {
      try {
      if(log.isTraceEnabled())
      log.trace("I'm the coordinator, creating a channel (props=" + bridge_props + ", cluster_name=" + bridge_name + ")");
      bridge=new JChannel(bridge_props);
      bridge.setDiscardOwnMessages(true); // don't receive my own messages
      bridge.setReceiver(new Receiver());
      bridge.connect(bridge_name);
      }
      catch(Exception e)

      { log.error(Util.getMessage("FailedCreatingBridgeChannelProps") + bridge_props + ")", e); }

      }

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            serhiy.pokutniy S Pokutniy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: