Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20589

camel-jbang - Make it easy to run activemq with vm transport

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.5.0
    • camel-jbang
    • None
    • Unknown

    Description

      camel-activemq uses tcp:localhost:61616 by default, but we should make it possible to run via vm embedded instead

      camel run https://github.com/apache/camel/blob/camel-1.0.0/examples/camel-example-spring/src/main/java/org/apache/camel/example/spring/MyRouteBuilder.java --prop=camel.component.activemq.brokerUrl=vm://localhost

      However I get an error

      2024-03-20 22:20:33.743 ERROR 11245 — [r[test.MyQueue]] .DefaultJmsMessageListenerContainer : Could not refresh JMS Connection for destination 'test.MyQueue' - retrying using FixedBackOff

      {interval=5000, currentAttempts=1, maxAttempts=unlimited}

      . Cause: Could not create Transport. Reason: java.io.IOException: Transport scheme NOT recognized: [vm]

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: