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

Socket factory not set correctly with singleton transport

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • 3.6.7
    • 3.2.13
    • None
    • Hide

      Configure a stack with a singleton transport.

      JChannel channel = new JChannel ( "jgroups.xml" );
      channel.setSocketFactory ( new CustomSocketFactory() );
      channel.connect ( "test" );

      The transport correctly uses the custom socket factory, but other protocols do not because of TP.ProtocolAdapter.

      Show
      Configure a stack with a singleton transport. JChannel channel = new JChannel ( "jgroups.xml" ); channel.setSocketFactory ( new CustomSocketFactory() ); channel.connect ( "test" ); The transport correctly uses the custom socket factory, but other protocols do not because of TP.ProtocolAdapter.

    Description

      When using a singleton transport, the socket factory is not set correctly on startup.

      JChannel sets the socket factory down the stack on startup, then starts the stack.
      The transport protocol is substituted with a TP.ProtocolAdapter during startup (after the socket factory was set), so it still uses its default socket factory, and provides it to all protocols up the stack.

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            rhn-support-dereed Dennis Reed
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: