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

Babak Vahdat commented on CAMEL-4145:
-------------------------------------

For the sake of clarity, following the change I made on 
EventDrivenPollingConsumer to make my submitted test case pass:

{code}
        protected void doStart() throws Exception {
                // lets add ourselves as a consumer
                consumer = getEndpoint().createConsumer(this);
                ServiceHelper.startService(consumer);

                // in the case our consumer is a (asynchronous) polling one, 
wait a bit
                // on this thread until the consumer comes up and starts 
consuming
                // properly before go further on this thread
                if (PollingConsumer.class.isInstance(consumer)) {
                        Thread.sleep(2000);
                }
        }
{code}

> pollEnrich DSL behaves differently depending on a possibly explicitly given 
> timeout
> -----------------------------------------------------------------------------------
>
>                 Key: CAMEL-4145
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4145
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.7.2
>            Reporter: Babak Vahdat
>            Priority: Minor
>
> For details see the user forum:
> http://camel.465427.n5.nabble.com/Is-this-pollEnrich-s-expected-behaviour-td4517089.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to