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 2009/01/21 13:51:00 UTC
[jira] Created: (CAMEL-1281) ConsumerTemplate
ConsumerTemplate
----------------
Key: CAMEL-1281
URL: https://issues.apache.org/activemq/browse/CAMEL-1281
Project: Apache Camel
Issue Type: New Feature
Components: camel-core
Reporter: Claus Ibsen
Fix For: Future
We could use a nice consumer template for nice one liners consume endpoints.
Suppose I want to consume a file based on a dynamic filename I get from a Exchange message passed on to my from a JMS Queue or the like
Then I do some custom coding in a processor to read the file.
Helping me would be a consumerTemplate where I can consume the file endpoint in one liner
Something like this:
{code}
String context = consumerTemplate.receive("file://inbox/foo.txt?directory=false", String.class);
{code}
Beware if we want to receive/poll an entire directory etc, it will generate several Exchanges. For that we might wanna group them in a GroupedExchange or support a List<Exchange> as return type or whatnot.
Just adding it here as in idea
Any thoughts?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1281) ConsumerTemplate
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50881#action_50881 ]
Claus Ibsen commented on CAMEL-1281:
------------------------------------
Add here:
http://camel.apache.org/polling-consumer.html
> ConsumerTemplate
> ----------------
>
> Key: CAMEL-1281
> URL: https://issues.apache.org/activemq/browse/CAMEL-1281
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: Future
>
>
> We could use a nice consumer template for nice one liners consume endpoints.
> Suppose I want to consume a file based on a dynamic filename I get from a Exchange message passed on to my from a JMS Queue or the like
> Then I do some custom coding in a processor to read the file.
> Helping me would be a consumerTemplate where I can consume the file endpoint in one liner
> Something like this:
> {code}
> String context = consumerTemplate.receive("file://inbox/foo.txt?directory=false", String.class);
> {code}
> Beware if we want to receive/poll an entire directory etc, it will generate several Exchanges. For that we might wanna group them in a GroupedExchange or support a List<Exchange> as return type or whatnot.
> Just adding it here as in idea
> Any thoughts?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1281) ConsumerTemplate
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1281.
--------------------------------
Resolution: Fixed
Fix Version/s: (was: Future)
2.0.0
Wiki updated at Polling Consumer EIP
> ConsumerTemplate
> ----------------
>
> Key: CAMEL-1281
> URL: https://issues.apache.org/activemq/browse/CAMEL-1281
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.0.0
>
>
> We could use a nice consumer template for nice one liners consume endpoints.
> Suppose I want to consume a file based on a dynamic filename I get from a Exchange message passed on to my from a JMS Queue or the like
> Then I do some custom coding in a processor to read the file.
> Helping me would be a consumerTemplate where I can consume the file endpoint in one liner
> Something like this:
> {code}
> String context = consumerTemplate.receive("file://inbox/foo.txt?directory=false", String.class);
> {code}
> Beware if we want to receive/poll an entire directory etc, it will generate several Exchanges. For that we might wanna group them in a GroupedExchange or support a List<Exchange> as return type or whatnot.
> Just adding it here as in idea
> Any thoughts?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-1281) ConsumerTemplate
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-1281:
----------------------------------
Assignee: Claus Ibsen
> ConsumerTemplate
> ----------------
>
> Key: CAMEL-1281
> URL: https://issues.apache.org/activemq/browse/CAMEL-1281
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: Future
>
>
> We could use a nice consumer template for nice one liners consume endpoints.
> Suppose I want to consume a file based on a dynamic filename I get from a Exchange message passed on to my from a JMS Queue or the like
> Then I do some custom coding in a processor to read the file.
> Helping me would be a consumerTemplate where I can consume the file endpoint in one liner
> Something like this:
> {code}
> String context = consumerTemplate.receive("file://inbox/foo.txt?directory=false", String.class);
> {code}
> Beware if we want to receive/poll an entire directory etc, it will generate several Exchanges. For that we might wanna group them in a GroupedExchange or support a List<Exchange> as return type or whatnot.
> Just adding it here as in idea
> Any thoughts?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1281) ConsumerTemplate
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50880#action_50880 ]
Claus Ibsen commented on CAMEL-1281:
------------------------------------
trunk: 759657
Need to add example and how to use it as wiki documentation
> ConsumerTemplate
> ----------------
>
> Key: CAMEL-1281
> URL: https://issues.apache.org/activemq/browse/CAMEL-1281
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: Future
>
>
> We could use a nice consumer template for nice one liners consume endpoints.
> Suppose I want to consume a file based on a dynamic filename I get from a Exchange message passed on to my from a JMS Queue or the like
> Then I do some custom coding in a processor to read the file.
> Helping me would be a consumerTemplate where I can consume the file endpoint in one liner
> Something like this:
> {code}
> String context = consumerTemplate.receive("file://inbox/foo.txt?directory=false", String.class);
> {code}
> Beware if we want to receive/poll an entire directory etc, it will generate several Exchanges. For that we might wanna group them in a GroupedExchange or support a List<Exchange> as return type or whatnot.
> Just adding it here as in idea
> Any thoughts?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.