camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-6729) camel-jt400 - no longer able to configure a pollStrategy on Jt400DataQueueEndpoint
Date Mon, 16 Sep 2013 10:25:51 GMT

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

Claus Ibsen commented on CAMEL-6729:
------------------------------------

The pollStrategy is not in use when you create a PollingConsumer. And thus you should not
provide it on the endpoint.
                
> camel-jt400 - no longer able to configure a pollStrategy on Jt400DataQueueEndpoint
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-6729
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6729
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.12.0
>            Reporter: Fried Hoeben
>              Labels: camel-jt400
>             Fix For: 2.12.1
>
>
> With camel 2.11.0 we were able to configure a pollStrategy in the URL of an endpoint
consuming information from a data queue.
> After upgrading to 2.12.0 we get an exception during camel startup stating 'Unknown consumer
parameters=[{pollStrategy=#jt400PollStrategy}]'. The application no longer starts.
> Downgrading to 2.11.0 allows the application to be started normally.
> The problem seems to originate from the fact that Camel (in DefaultPollingEndpoint.createConsumer())
creates a new DefaultScheduledPollConsumer, which gets the poll strategy (no problem). Then
afterwards in Jt400DataQueueEndpoint.createPollingConsumer() a Jt400DataQueueConsumer is created
and inside configureConsumer() normal flow is stopped because there is no pollStrategy property
in a Jt400DataQueueConsumer, and there is an entry for this property in the endpoint's consumerProperties
map.
> I suspect that the consumerProperty pollStrategy should be removed from the endpoint's
consumerProperties after it has been set on the DefaultScheduledPollConsumer...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message