You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by jgunz <sl...@twcny.rr.com> on 2007/09/25 19:33:29 UTC
How do you register a ActiveMQ TransportListener?
I'm having trouble figuring out how to register an
http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/transport/TransportListener.html
ActiveMQ TransportListener when working with Camel. Normally when using
ActiveMQ I'd register it directly on the connection but in Camel I only have
access to the ActiveMQConnectionFactory which I pass to the CamelContext:
ConnectionFactory connectionFactory = new
ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
context.addComponent("test-jms",
JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
Thanks for the help.
--
View this message in context: http://www.nabble.com/How-do-you-register-a-ActiveMQ-TransportListener--tf4517033s22882.html#a12884549
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How do you register a ActiveMQ TransportListener?
Posted by Hiram Chirino <hi...@hiramchirino.com>.
Right now that's not supported.. and since the Spring containers and
jms templates are being used, it might be a little tricky to support.
On 9/25/07, jgunz <sl...@twcny.rr.com> wrote:
>
> I'm having trouble figuring out how to register an
> http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/transport/TransportListener.html
> ActiveMQ TransportListener when working with Camel. Normally when using
> ActiveMQ I'd register it directly on the connection but in Camel I only have
> access to the ActiveMQConnectionFactory which I pass to the CamelContext:
>
> ConnectionFactory connectionFactory = new
> ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
> context.addComponent("test-jms",
> JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
>
>
> Thanks for the help.
> --
> View this message in context: http://www.nabble.com/How-do-you-register-a-ActiveMQ-TransportListener--tf4517033s22882.html#a12884549
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Regards,
Hiram
Blog: http://hiramchirino.com
Re: How do you register a ActiveMQ TransportListener?
Posted by jgunz <sl...@twcny.rr.com>.
Awesome, thank you.
James.Strachan wrote:
>
> FWIW I've just patched trunk of ActiveMQ to support this...
>
> https://issues.apache.org/activemq/browse/AMQ-1434
>
> so you can now register a TransportListener on the
> ActiveMQConnectionFactory so that things work nicely with Camel /
> Spring JmsTemplate / MessageListenerContainer etc
>
> On 25/09/2007, jgunz <sl...@twcny.rr.com> wrote:
>>
>> I'm having trouble figuring out how to register an
>> http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/transport/TransportListener.html
>> ActiveMQ TransportListener when working with Camel. Normally when using
>> ActiveMQ I'd register it directly on the connection but in Camel I only
>> have
>> access to the ActiveMQConnectionFactory which I pass to the CamelContext:
>>
>> ConnectionFactory connectionFactory = new
>> ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
>> context.addComponent("test-jms",
>> JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
>>
>>
>> Thanks for the help.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-do-you-register-a-ActiveMQ-TransportListener--tf4517033s22882.html#a12884549
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source SOA
> http://open.iona.com
>
>
--
View this message in context: http://www.nabble.com/How-do-you-register-a-ActiveMQ-TransportListener--tf4517033s22882.html#a12904286
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How do you register a ActiveMQ TransportListener?
Posted by James Strachan <ja...@gmail.com>.
FWIW I've just patched trunk of ActiveMQ to support this...
https://issues.apache.org/activemq/browse/AMQ-1434
so you can now register a TransportListener on the
ActiveMQConnectionFactory so that things work nicely with Camel /
Spring JmsTemplate / MessageListenerContainer etc
On 25/09/2007, jgunz <sl...@twcny.rr.com> wrote:
>
> I'm having trouble figuring out how to register an
> http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/transport/TransportListener.html
> ActiveMQ TransportListener when working with Camel. Normally when using
> ActiveMQ I'd register it directly on the connection but in Camel I only have
> access to the ActiveMQConnectionFactory which I pass to the CamelContext:
>
> ConnectionFactory connectionFactory = new
> ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
> context.addComponent("test-jms",
> JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
>
>
> Thanks for the help.
>
> --
> View this message in context: http://www.nabble.com/How-do-you-register-a-ActiveMQ-TransportListener--tf4517033s22882.html#a12884549
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
James
-------
http://macstrac.blogspot.com/
Open Source SOA
http://open.iona.com