camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Babak Vahdat (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (CAMEL-4145) pollEnrich DSL behaves differently depending on a possibly explicitly given timeout
Date Fri, 24 Jun 2011 15:49:47 GMT

    [ 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

        

Mime
View raw message