activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chago <nab...@visualxs.com>
Subject Re: Able to send message to ActiveMQ but Not getting reply to Client
Date Fri, 28 Sep 2007 14:02:56 GMT

You have created two channels, sorta; the first is topic://doChat and the
second is '/topic/ChatTopic', which does not conform to the url notation
that you should be using. That might be your problem.

I assume that you have your own server-side Java classes that listen for
incoming messages on topic://doChat and send replies on topic://ChatTopic?

-- jim




JigarP wrote:
> 
> Hi Chago,
> 
>      you have explain each scenario clearly. just want to know that at
> server side/client side what sort of confuguration should i do so that
> atleast it will not destroy my consumer. i am attaching my client side
> code let me know if you get some clue.
> 
> Below three methods i am calling in below sequence.
> 
> 1) When page is loaded register listener topic using onStartListen()
> method.
> 2) When user enter message and click on send message then it will call
> onSendMessage() method.
> 3) call handleNewMessage() if we get any message.
> 
> /**
> below are the topic which we are using to send chat to server and get
> reply from server.
> **/
> function setTopicName(){
> 	sendTopicName = 'topic://doChat' ;
> 	receiveTopicName = '/topic/ChatTopic';
>  
> }
> /**
> This method register topic to MQ.
> **/
> function onStartListen(){
>     setTopicName();
>     amq.addListener('chat', receiveTopicName, handleNewMessage);
> 
> }
> 
> /**
> This method will chat message to MQ 
> **/
> function onSendMessage(msgStr){
>     amq.sendMessage(sendTopicName, msgStr);
> }
> function handleNewMessage(){
> //process the received message.
> }
> 
> I have found that if i click on send button continuosly then messages are
> coming to servr as well as it also resides at activemq but i am not able
> to get messages at client side back.
> 
> I hope u are able to understand this.
> 

-- 
View this message in context: http://www.nabble.com/Able-to-send-message-to-ActiveMQ-but-Not-getting-reply-to-Client-tf4400842s2354.html#a12941187
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message