Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 84886 invoked from network); 31 Mar 2009 15:55:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Mar 2009 15:55:33 -0000 Received: (qmail 98231 invoked by uid 500); 31 Mar 2009 15:55:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 98207 invoked by uid 500); 31 Mar 2009 15:55:32 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 98197 invoked by uid 99); 31 Mar 2009 15:55:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2009 15:55:32 +0000 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2009 15:55:23 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LogIo-0001nH-5W for users@activemq.apache.org; Tue, 31 Mar 2009 08:55:02 -0700 Message-ID: <22805099.post@talk.nabble.com> Date: Tue, 31 Mar 2009 08:55:02 -0700 (PDT) From: manua To: users@activemq.apache.org Subject: Re: How to integrate Ajax client with ActiveMQ CPP publisher In-Reply-To: <22804937.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: agarwal.manu@gmail.com References: <22789525.post@talk.nabble.com> <1238456161.3151.3.camel@localhost.localdomain> <22803435.post@talk.nabble.com> <1238502239.3151.11.camel@localhost.localdomain> <22804937.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org manua wrote: > > HI Tim, > > I have tried that part. With this publisher, I am able to publish messages > and consume them throgh another Java consumer or cpp consumer. The problem > comes in consuming the data through ajax client. I need your advice on > that part. > > > 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. > > Mu publisher is sending data as I could see the messages in cosole, but > they are not recieved by the client. > > PLease let me know if I am doing any thing wrong or I ahve to use some > other procedure. > > Hope for an early reply. > > Thanks, > Manu > > > > Timothy Bish wrote: >> >> On Tue, 2009-03-31 at 04:45 -0700, manua wrote: >>> 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)""; >>> >>> 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 >>> procedure. >>> >>> Hope for an early reply. >>> >>> Thanks, >>> Manu >> >> My first recommendation would be to take a step back and first try and >> get the CPP client code to produce a message and consume it via a Java >> app or another C++ client, that way you know you've gotten the >> publishing code right, then once you have that right you can move on to >> trying to get the data in the webapp. >> >> Regards >> Tim. >> >> >> -- >> Tim Bish >> http://fusesource.com >> http://timbish.blogspot.com/ >> >> >> >> >> > > -- View this message in context: http://www.nabble.com/How-to-integrate-Ajax-client-with-ActiveMQ-CPP-publisher-tp22789525p22805099.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.