You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/08/09 10:14:27 UTC

[jira] [Created] (CAMEL-4318) Scheduled poll consumer from pollEnrich should not be polling when route starts, but on demand

Scheduled poll consumer from pollEnrich should not be polling when route starts, but on demand
----------------------------------------------------------------------------------------------

                 Key: CAMEL-4318
                 URL: https://issues.apache.org/jira/browse/CAMEL-4318
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.8.0
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.9.0


See nabble
http://camel.465427.n5.nabble.com/Overriding-ScheduledPollConsumer-tp4676752p4676752.html

The problem is that the file consumer is started when the route starts
{code}
2011-08-09 10:11:05,648 [main           ] INFO  DefaultCamelContext            - Apache Camel  (CamelContext: camel-1) started in 0.284 seconds
2011-08-09 10:11:06,628 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
2011-08-09 10:11:07,130 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
2011-08-09 10:11:07,632 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
2011-08-09 10:11:08,133 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
2011-08-09 10:11:08,634 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
2011-08-09 10:11:09,135 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
2011-08-09 10:11:09,637 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
{code}

Instead it should only be polling on demand

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

        

[jira] [Commented] (CAMEL-4318) Scheduled poll consumer from pollEnrich should not be polling when route starts, but on demand

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081549#comment-13081549 ] 

Claus Ibsen commented on CAMEL-4318:
------------------------------------

If using 0 as timeout on pollEnrich with a scheduled polling consumer (using EventDrivenPollingConsumer to poll) then Camel now ensures there is given time for at least one scheduled poll run. Otherwise the scheduler would not be able to poll within a 0 timeout

> Scheduled poll consumer from pollEnrich should not be polling when route starts, but on demand
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4318
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4318
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.9.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Overriding-ScheduledPollConsumer-tp4676752p4676752.html
> The problem is that the file consumer is started when the route starts
> {code}
> 2011-08-09 10:11:05,648 [main           ] INFO  DefaultCamelContext            - Apache Camel  (CamelContext: camel-1) started in 0.284 seconds
> 2011-08-09 10:11:06,628 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:07,130 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:07,632 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:08,133 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:08,634 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:09,135 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:09,637 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> {code}
> Instead it should only be polling on demand

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

        

[jira] [Resolved] (CAMEL-4318) Scheduled poll consumer from pollEnrich should not be polling when route starts, but on demand

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-4318.
--------------------------------

    Resolution: Fixed

> Scheduled poll consumer from pollEnrich should not be polling when route starts, but on demand
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4318
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4318
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.9.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Overriding-ScheduledPollConsumer-tp4676752p4676752.html
> The problem is that the file consumer is started when the route starts
> {code}
> 2011-08-09 10:11:05,648 [main           ] INFO  DefaultCamelContext            - Apache Camel  (CamelContext: camel-1) started in 0.284 seconds
> 2011-08-09 10:11:06,628 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:07,130 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:07,632 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:08,133 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:08,634 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:09,135 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:09,637 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> {code}
> Instead it should only be polling on demand

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

        

[jira] [Commented] (CAMEL-4318) Scheduled poll consumer from pollEnrich should not be polling when route starts, but on demand

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095886#comment-13095886 ] 

Claus Ibsen commented on CAMEL-4318:
------------------------------------

Cannot backport to 2.8.1 as it has API changes.

> Scheduled poll consumer from pollEnrich should not be polling when route starts, but on demand
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4318
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4318
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.9.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Overriding-ScheduledPollConsumer-tp4676752p4676752.html
> The problem is that the file consumer is started when the route starts
> {code}
> 2011-08-09 10:11:05,648 [main           ] INFO  DefaultCamelContext            - Apache Camel  (CamelContext: camel-1) started in 0.284 seconds
> 2011-08-09 10:11:06,628 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:07,130 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:07,632 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:08,133 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:08,634 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:09,135 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:09,637 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> {code}
> Instead it should only be polling on demand

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

        

[jira] [Updated] (CAMEL-4318) Scheduled poll consumer from pollEnrich should not be polling when route starts, but on demand

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CAMEL-4318:
-------------------------------

    Fix Version/s: 2.8.2

> Scheduled poll consumer from pollEnrich should not be polling when route starts, but on demand
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4318
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4318
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.8.2, 2.9.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Overriding-ScheduledPollConsumer-tp4676752p4676752.html
> The problem is that the file consumer is started when the route starts
> {code}
> 2011-08-09 10:11:05,648 [main           ] INFO  DefaultCamelContext            - Apache Camel  (CamelContext: camel-1) started in 0.284 seconds
> 2011-08-09 10:11:06,628 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:07,130 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:07,632 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:08,133 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:08,634 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:09,135 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> 2011-08-09 10:11:09,637 [rget/pollenrich] DEBUG FileConsumer                   - Took 0.000 seconds to poll: target/pollenrich
> {code}
> Instead it should only be polling on demand

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