Hi,

  i'm able to send the text message to activemq and able to recieve text
message from activemq, but when i'm sending xml data to activemq, i'm unable
to recieve the data in xml format.

i'm Using the following code to recieve the message from activemq using ajax


  var feedHandler =
   {
     _feed: function(message)
     {
                         alert("received : " +message.value);
                 
           var evtdata = message.childNode[0].value;
            alert("received msg : " +evtdata);
            document.location.href = "index.jsp?evt="+evtdata;
            
       }
   };
  


   function chartPoll(first)
   {
    
 if (first)
      {
      
      alert("poll");
      amq.addListener('chat','topic://Topic12.Post',feedHandler._feed);
      alert("listen");
        
      }
   }
   
      
   amq.addPollHandler(chartPoll);
  
   
 
   i'm sending the following message from java client

String data="<message><![CDATA[\"<Event>        <EventID>12</EventID>
<Date>1922-03-22</Date> <Source>sour</Source>   <Time>9:12:00</Time>
<Category>cat</Category>        <Type>appli</Type>      <User>admin</User>
<Computer>com</Computer>        <Description>sample
desc</Description></Event>\"]]></message>";


Thanks,
Sridhar


-- 
View this message in context: 
http://www.nabble.com/Recieving-xml-data-from-activemq-tp15976465s2354p15976465.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to