activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: Configuring a topic in Spring with default ActiveMQ
Date Wed, 20 Jan 2010 05:51:44 GMT
Have you read this - http://codedependents.com/2009/10/16/efficient-lightweight-jms-with-spring-and-activemq/

  - it may help

On 20 Jan 2010, at 01:35, go canal wrote:

> I need to use message-driven-channel-adapter.
>
>
>
> ________________________________
> From: go canal <gocanal@yahoo.com>
> To: users@activemq.apache.org
> Sent: Wed, January 20, 2010 8:53:39 AM
> Subject: Re: Configuring a topic in Spring with default ActiveMQ
>
> I think I need to add:
> <bean id="requestTopic"  
> class="org.apache.activemq.command.ActiveMQTopic">
> <!-- wildcard -->
> <constructor-arg value="STOCKS.*"/>
> </bean>
> <jms:inbound-gateway id="jmsIn" request-destination="requestTopic"  
> request-channel="inChannel"/>
> Now I can receive messages but only the first one. I can not get  
> subsequent messages.
>
> This is my service activator:
>
> @ServiceActivator
> public void upperCase(String input) {
> System.out.println ("message received : " + input);
> }
>
>
> Anything I missed out ?rgds,
> canal
>
>
>
>
> ________________________________
> From: go canal <gocanal@yahoo.com>
> To: users@activemq.apache.org
> Sent: Wed, January 20, 2010 7:33:24 AM
> Subject: Configuring a topic in Spring with default ActiveMQ
>
> Hi,
> I am running the default ActiveMQ 5.3.0. Wanted to configure a  
> publish-subscribe-channel in Spring. But I am not able to get any  
> data, this is my Spring configuration, anything wrong :
>
> <integration:publish-subscribe-channel id="STOCKS.BEAS"/>
> <integration:service-activator input-channel="STOCKS.BEAS"  
> ref="gatewayBean"/>
>
> appreciate your help,
> canal
>
>

Rob Davies
http://twitter.com/rajdavies
I work here: http://fusesource.com
My Blog: http://rajdavies.blogspot.com/
I'm writing this: http://www.manning.com/snyder/






Mime
View raw message