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

Not able to use chunked option for a jetty endpoint.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • camel-jetty
    • None
    • Unknown

    Description

      I have a camel route deployed in Fuse. The route is used to send requests to a endpoint. i am using camel spring DSL as shown below:

      <recipientList>
          <simple>jetty:http://localhost:9001/listen?chunked=false</simple>
      </recipientList>
      

      I have a python script running where i am expecting the requests for endpoint : http://localhost:9001/listen

      I have seen 'chunked' used to disable chunking behavior in one example route listed in MR-688 . However in this case the 'chunked' option is used for a Consumer endpoint.

      <from uri="jetty:http://0.0.0.0:8299/test2?matchOnUriPrefix=true&amp;chunked=false" />
      

      It is not mentioned in the camel-jetty doc that 'chunked' can only be used for consumer endpoint.

      In my route when chunked is used the route tries to send the request to http://localhost:9001/listen?chunked=false and fails with 404 since my endpoint is a POST endpoint. However if option like enableJmx is used then the request is send to

      http://localhost:9001/listen

      Not sure what is happening here. I had expected this to fail with a 404 like with the chunked option.

      Can the 'Chunked' option be used for a Consumer endpoint only?

      Attachments

        1. camelProducerlogs
          3 kB
          prathamesh

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: