From users-return-8925-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Thu May 03 02:35:55 2007 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 56224 invoked from network); 3 May 2007 02:35:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 May 2007 02:35:54 -0000 Received: (qmail 70388 invoked by uid 500); 3 May 2007 02:36:00 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 70361 invoked by uid 500); 3 May 2007 02:36:00 -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 70348 invoked by uid 99); 3 May 2007 02:36:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2007 19:36:00 -0700 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 jlim@exist.com designates 209.235.254.11 as permitted sender) Received: from [209.235.254.11] (HELO exodus.exist.com) (209.235.254.11) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2007 19:35:53 -0700 Received: from [192.168.241.97] (tequilla.exist.com [58.71.13.205]) (authenticated bits=0) by exodus.exist.com (8.13.1/8.13.1) with ESMTP id l432ZCcf031762 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 2 May 2007 22:35:24 -0400 Message-ID: <46394A65.3060504@exist.com> Date: Thu, 03 May 2007 10:35:17 +0800 From: Jonas Lim User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: Creating simple producer and consumer References: <10294868.post@talk.nabble.com> In-Reply-To: <10294868.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Can you check if you're calling the connection's start method (connection.start()) before starting your consumers. You could also try running the example consumer that is included in the distribution to check if the problem is with your consumer. Regards, Jonas Bai Shen wrote: > Okay, so I used the code on the JNDI page to create a simple producer, and it > seems to work fine. Then I modified it to be a consumer. However, it never > consumes anything. I've even tried setting the messages to be durable, > which I thought would allow me to run the producer, then the consumer. > > What am I missing? >