activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manua <>
Subject Re: How to integrate Ajax client with ActiveMQ CPP publisher
Date Tue, 31 Mar 2009 11:45:41 GMT

Hi Tim,

I am using the sample webapps/demo. I am running the ajax
client(portfolio.html) without modification. Instead of running publisher
from demo, i am running SimpleProducer.cpp to send the messages to the
broker and wants client to pick data from there. For testing purpose, I have
specified the topic as STOCKS.SUNW and modified the text message as,

string text = (string)"<price stock=SUNW" + (string)"bid=" +
Integer::toString(bid) + (string)"offer=" + Integer::toString(offer) +
(string)" movement=" + movement +  "/>";

My intention is to publish data to the broker from a cpp publisher and that
data should be fetched by ajax client, eg. I want my CPP code to send data
tothe broker, which portfolio.html should display in real tiem.

PLease let me know if I am doing any thing wrong or I ahve to use some other

Hope for an early reply.


Timothy Bish wrote:
> On Mon, 2009-03-30 at 11:21 -0700, manua wrote:
>> Hi All,
>> I am trying to run the Market data example of webapps/demo. I am able to
>> run
>> the example with portfolio in one window and publisher in another window. 
>> I wan to run the same portfolio client, but instead of getting data from
>> publisher class I want portfolio to pick data sent by a CPP publisher. I
>> was
>> trying to send the XML messages from CPP publisher/producer and recieved
>> them by the portfolio client. I modified the publisher code and hard
>> codded
>> it to send data to one of the broker as STOCKS.SUNW, but it didn't work.
>> Kindly help me with this.
>> Any help in this regard will be highly appreciated.
> Without seeing code its hard to know why your AJAX client didn't receive
> messages sent by the C++ producer.  If you want to pass along any code
> snippets that demonstrate what you are doing I can try and help out.
> Regards
> Tim.
> -- 
> Tim Bish

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message