camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "prathamesh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-9299) Not able to use chunked option for a jetty endpoint.
Date Fri, 13 Nov 2015 11:42:10 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-9299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15003885#comment-15003885
] 

prathamesh commented on CAMEL-9299:
-----------------------------------

Attached some camel logs for different parameters.

The URL shown in the logs below has parameter chunked appended to it. This is not seen for
options like enableJmx or useContinuation.
{code}
Redelivery enabled: false on error handler: DefaultErrorHandler[Producer[http://localhost:18089/mockRest?chunked=false]]
{code}

 For parameters like useContinuation,enableJmx etc the producer endpoint is resolved to the
expected URL where we need to send a POST request i.e in this case {noformat}http://localhost:9001/listen{noformat}

However with chunked , the Producer endpoint resolved to  {noformat}http://localhost:9001/listen?chunked=false
{noformat}

This obviously becomes a GET request and this fails since my server listening for requests
at 9001 is expecting POST requests only.




> Not able to use chunked option for a jetty endpoint.
> ----------------------------------------------------
>
>                 Key: CAMEL-9299
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9299
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jetty
>            Reporter: prathamesh
>
> 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:
> {code}
> <recipientList>
>     <simple>jetty:http://localhost:9001/listen?chunked=false</simple>
> </recipientList>
> {code}
> 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 | https://issues.jboss.org/browse/MR-688] . However in this case the 'chunked' option
is used for a Consumer endpoint. 
> {code}
> <from uri="jetty:http://0.0.0.0:8299/test2?matchOnUriPrefix=true&amp;chunked=false"
/>
> {code}
> It is not mentioned in the [camel-jetty doc | http://camel.apache.org/jetty.html] 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 {noformat}http://localhost:9001/listen{noformat} 
>  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?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message