Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 2512 invoked from network); 26 Feb 2007 09:15:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2007 09:15:25 -0000 Received: (qmail 69975 invoked by uid 500); 26 Feb 2007 09:15:33 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 69951 invoked by uid 500); 26 Feb 2007 09:15:33 -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 69942 invoked by uid 99); 26 Feb 2007 09:15:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 01:15:33 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of james.strachan@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 01:15:22 -0800 Received: by ug-out-1314.google.com with SMTP id m3so721703ugc for ; Mon, 26 Feb 2007 01:15:00 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BKHoG5jlD8ftrArlx6O8c7mP7Mdlvc8/y3REmVODjZ2jD+x95JIuJMOjCR4bmDwkK6xlD7IAD1wnKhOarlb9XVzYqkKhUKdzkmHGTH0EuwnB/9fqLIC/Swsg4YQ4n7FRSgU+cLOBnqODNbM+qIB8m0dqbKnLoPLR0mI8J/5FuGw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=b3nvCf0zQRP620HecObQtZn24FCbDWubyySvNjUCR5H+5wEgg1EJgCmqw4Yy64QcXKvoo8OJma4FbNn6laD6Z3ctv2mTr/A/AI0Wey2GkMJ6487MLA5eUU2dEdHacyMeKIMSYgT5uGS6delqUg33A7b0pDe5+LUHo+nxBYXcn2U= Received: by 10.78.138.6 with SMTP id l6mr427442hud.1172481300771; Mon, 26 Feb 2007 01:15:00 -0800 (PST) Received: by 10.78.155.7 with HTTP; Mon, 26 Feb 2007 01:15:00 -0800 (PST) Message-ID: Date: Mon, 26 Feb 2007 09:15:00 +0000 From: "James Strachan" To: users@activemq.apache.org Subject: Re: java client program for Web Demo In-Reply-To: <9154222.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9154222.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org On 2/26/07, pandi79 wrote: > > Using ActiveMQ 4.0.2 Web demo sample. Able to send & browse the message via > internet explorer as per the instruction provided by Apache. > > But my requirement to receive the message by using JMS stand alone program.. > > The following steps I have done. > > 1. Sent the xml message via Html form (queue name is 'myqueue' > 2. Able to browse the same in IE > 3. Written jms program and connection details are > > ActiveMQConnectionFactory factory = new > ActiveMQConnectionFactory("vm://localhost"); > ActiveMQQueue subQueue = new ActiveMQQueue("myqueue"); > > and then tried to receive the message, but not got the posive result. > > Then changed the connection detaisl as follows > > ActiveMQConnectionFactory factory = new > ActiveMQConnectionFactory("tcp://localhost:61616"); > ActiveMQQueue subQueue = new ActiveMQQueue("myqueue"); > > Still there is no result. > > Does anyone have an idea about how to receive the message through my > standalone jms program (but messaes are sending through html form given by > Web-demo example) The latter should work. When you look at the web console do you see a number of messages on the queue "myqueue" ready to be consumed? Are you running any other consumers at the time? You might want to look at the JMX console. This might help... http://activemq.apache.org/i-am-not-receiving-any-messages-what-is-wrong.html -- James ------- http://radio.weblogs.com/0112098/