You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Babak Vahdat (JIRA)" <ji...@apache.org> on 2011/06/24 17:49:47 UTC

[jira] [Issue Comment Edited] (CAMEL-4145) pollEnrich DSL behaves differently depending on a possibly explicitly given timeout

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

Babak Vahdat edited comment on CAMEL-4145 at 6/24/11 3:49 PM:
--------------------------------------------------------------

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 scheduled polling one, wait a bit
		// on this thread until the consumer comes up and starts consuming
		// properly before go further on this thread
		if (ScheduledPollConsumer.class.isInstance(consumer)) {
			Thread.sleep(2000);
		}
	}

{code}

      was (Author: bvahdat):
    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