activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Co <...@exist.com>
Subject Re: start message listener
Date Mon, 30 Oct 2006 22:08:13 GMT
One option is to use the JMS API.

http://java.sun.com/javaee/5/docs/api/javax/jms/MessageConsumer.html#setMessageListener(javax.jms.MessageListener)

jxie wrote:
> So I have to register the message listener. I don't know how to do it. Would
> you please give me some examples including configuration files.
>
>
> Adrian Co wrote:
>   
>> After you set the message listener, starting the connection should 
>> register your listener to the broker.
>>
>> jxie wrote:
>>     
>>> How do I make activemq to start a message listener (onMessage)
>>> automatically
>>> afte it is started? Now I embedded ActiveMQ with Tomcat, I want to
>>> seperate
>>> ActiveMQ from Tomcat so I can run one Tomcat instance and one ActiveMQ
>>> instance in a multiple CPU machine.
>>>
>>>
>>>
>>> James
>>>   
>>>       
>>
>>     
>
>   


Mime
View raw message