ServiceMix
  1. ServiceMix
  2. SM-1302

Make failover:// transport the default protocol used in ServiceMix.

    Details

    • Type: Improvement Improvement
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.4.2
    • Component/s: beanflow
    • Labels:
      None
    • Environment:

      ServiceMix 3

      Description

      Currently servicemix.properties configures the underlying ActiveMQ to use the plain tcp:// transport.
      activemq.url = tcp://$

      {activemq.host}

      :$

      {activemq.port}

      However, in order to have ServiceMix functioning correctly in case of transport problems or simply inactivity timeouts, from which the tcp:// transport cannot recover, we should turn on failover:// by default. Otherwise any transport related problem causes ServiceMix to fail and requires a restart.

      1. using_new_failover.txt
        7 kB
        Lars Heinemann
      2. using_failover.txt
        2 kB
        Lars Heinemann

        Activity

        Hide
        Bruce Snyder added a comment -

        Committed fix to the 3.2 branch and the trunk (3.3).

        Show
        Bruce Snyder added a comment - Committed fix to the 3.2 branch and the trunk (3.3).
        Hide
        Guillaume Nodet added a comment -

        Lars reverted the commit because they were causing problems at startup.
        We need to dive in to these issues a bit more before applying the patch.
        One of the issue seems to be that the url should be:

        failover:(tcp://${activemq.host}:${activemq.port})
        

        rather than the one in the patch, but it seems to still cause problems at shutdown.
        See the thread on the dev list for more infos:
        http://www.nabble.com/can%27t-start-smx-any-longer-to16719399.html#a16719399

        Show
        Guillaume Nodet added a comment - Lars reverted the commit because they were causing problems at startup. We need to dive in to these issues a bit more before applying the patch. One of the issue seems to be that the url should be: failover:(tcp: //${activemq.host}:${activemq.port}) rather than the one in the patch, but it seems to still cause problems at shutdown. See the thread on the dev list for more infos: http://www.nabble.com/can%27t-start-smx-any-longer-to16719399.html#a16719399
        Hide
        Lars Heinemann added a comment -

        I attached two files containing console outputs in DEBUG log level.

        using_failover: this is the output when using bruce patch
        using_new_failover: this is the output on shutdown with guillaumes settings

        I hope this helps somehow.

        Lars

        Show
        Lars Heinemann added a comment - I attached two files containing console outputs in DEBUG log level. using_failover: this is the output when using bruce patch using_new_failover: this is the output on shutdown with guillaumes settings I hope this helps somehow. Lars

          People

          • Assignee:
            Bruce Snyder
            Reporter:
            Torsten Mielke
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development