Re: pollEnrich consumer with selector

2013-04-12 Thread nikagra
Is this an answer to my problem described on  stackoverflow
<http://stackoverflow.com/questions/15947523/apache-camel-enrich-message-with-file-content-on-request>
  



--
View this message in context: 
http://camel.465427.n5.nabble.com/pollEnrich-consumer-with-selector-tp4939908p5730759.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: pollEnrich consumer with selector

2011-10-31 Thread Claus Ibsen
On Mon, Oct 31, 2011 at 4:58 AM, rspeter  wrote:
> Good day Claus,
>
> I did get this dynamic URI working by following the consumer template java
> bean example.
> Thank you very much for your prompt replies.
>

Glad you got it working.

I created a ticket so we can support this in the future. But targeted
it for 3.0 as it would be an API breaker
https://issues.apache.org/jira/browse/CAMEL-4596


> Camel components are really powerful and you are a genius indeed.
>
>
> Regards
> Peter
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/pollEnrich-consumer-with-selector-tp4939908p4951412.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/


Re: pollEnrich consumer with selector

2011-10-30 Thread rspeter
Good day Claus,

I did get this dynamic URI working by following the consumer template java
bean example.
Thank you very much for your prompt replies.

Camel components are really powerful and you are a genius indeed.


Regards
Peter


--
View this message in context: 
http://camel.465427.n5.nabble.com/pollEnrich-consumer-with-selector-tp4939908p4951412.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: pollEnrich consumer with selector

2011-10-26 Thread Claus Ibsen
On Thu, Oct 27, 2011 at 2:04 AM, rspeter  wrote:
> Thanks for your reply.
>
> I tried sort of this again, but I received a bean exception
>  uri="restlet:http://localhost:8077/poc/reply/{id}?restletMethods=post,get"/>
> 
> activemq:test.www?selector=JMSCorrelationID %3D
> ${header.id}
> 
> 
>        test
> 
>
>
> Do you have a any other workaround or working example to consume message by
> id and send response to client?
>

Hi

I probably didn't explain it well, but pollEnrich current does *not*
support what you want.

You can use a java bean and then use a consumer template to poll from
an uri, which you can construct from the java code in the bean.


> Thanks
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/pollEnrich-consumer-with-selector-tp4939908p4941669.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/


Re: pollEnrich consumer with selector

2011-10-26 Thread rspeter
Thanks for your reply.

I tried sort of this again, but I received a bean exception
http://localhost:8077/poc/reply/{id}?restletMethods=post,get"/>

activemq:test.www?selector=JMSCorrelationID %3D
${header.id}

 
test 
 


Do you have a any other workaround or working example to consume message by
id and send response to client?  

Thanks

--
View this message in context: 
http://camel.465427.n5.nabble.com/pollEnrich-consumer-with-selector-tp4939908p4941669.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: pollEnrich consumer with selector

2011-10-26 Thread Claus Ibsen
On Wed, Oct 26, 2011 at 4:21 PM, rspeter  wrote:
> Good day,
>
> I am trying to use only spring config routes to consume message by
> JMSCorrelationID.
> I tried the following option, but it only works when I hardcode the param.
> Is there any workaround to consume and send response to the client by only
> using spring config without injecting a bean?
>
> Hardcoded working sample:
>  uri="restlet:http://localhost:8077/poc/reply/{id}?restletMethods=post,get"/>
> 
>
> NOT Working:
>  uri="restlet:http://localhost:8077/poc/reply/{id}?restletMethods=post,get"/>
> ${header.id}
> 
>

Yes this is not supported. The uri attribute is sort of static.

What is needed is something like what recipient list can do, where it
accepts an expression for the endpoints.
A bit like that for pollEnrich / enrich is needed.

Something alike:

  activemq:test.www?selector=JMSCorrelationID %3D ${header.id}




> Thanks
> Peter
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/pollEnrich-consumer-with-selector-tp4939908p4939908.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/


pollEnrich consumer with selector

2011-10-26 Thread rspeter
Good day,

I am trying to use only spring config routes to consume message by
JMSCorrelationID.
I tried the following option, but it only works when I hardcode the param. 
Is there any workaround to consume and send response to the client by only
using spring config without injecting a bean?

Hardcoded working sample:
http://localhost:8077/poc/reply/{id}?restletMethods=post,get"/>


NOT Working:
http://localhost:8077/poc/reply/{id}?restletMethods=post,get"/>
${header.id}


Thanks 
Peter

--
View this message in context: 
http://camel.465427.n5.nabble.com/pollEnrich-consumer-with-selector-tp4939908p4939908.html
Sent from the Camel - Users mailing list archive at Nabble.com.