Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 8443 invoked from network); 2 Apr 2007 17:08:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2007 17:08:23 -0000 Received: (qmail 9114 invoked by uid 500); 2 Apr 2007 17:08:30 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 8921 invoked by uid 500); 2 Apr 2007 17:08:29 -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 8912 invoked by uid 99); 2 Apr 2007 17:08:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 10:08:29 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of james.strachan@gmail.com designates 66.249.82.238 as permitted sender) Received: from [66.249.82.238] (HELO wx-out-0506.google.com) (66.249.82.238) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 10:08:21 -0700 Received: by wx-out-0506.google.com with SMTP id h29so1333812wxd for ; Mon, 02 Apr 2007 10:08:01 -0700 (PDT) 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=F5pBQnvUvE7vMDLKosA95Vnd6VF/sefNDgp4+9QvCtAmGrI7XCtTJ57rylw1l2KwVCuEQaPNlLtgdYCxacFLx561BUQjveDnN9xYeVlNzV5k/T+PzKSZdGJY+si3/QYktCF6tf29wEGmIjBfQD+iRiyGAyeGHBTCScudDlySDq4= 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=CWKDU4aNwonex+l8FoY7S+yYoSgextnLBn/h4hIX+j0WDJM7jCJm3toyiCOTlFG9ZwYrgA+cI5ORdwAI8Jd2dvgw751sfzGlAeP0EXvzkCd6MUzxOFPBmiloREI2eQ2nko4MtiL3bQP83vQHrLeS5Gex3GtCz3cj9qKFOvBcmjI= Received: by 10.90.84.17 with SMTP id h17mr3553880agb.1175533681123; Mon, 02 Apr 2007 10:08:01 -0700 (PDT) Received: by 10.90.51.6 with HTTP; Mon, 2 Apr 2007 10:08:01 -0700 (PDT) Message-ID: Date: Mon, 2 Apr 2007 18:08:01 +0100 From: "James Strachan" To: users@activemq.apache.org Subject: Re: Can't figure out why send to my temporary queue doesn't work but Listener seems OK In-Reply-To: <9794710.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: <9794710.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org On 4/2/07, sparky2708 wrote: > > I create a temporary queue using: > > String user = ActiveMQConnection.DEFAULT_USER; > String password = ActiveMQConnection.DEFAULT_PASSWORD; > ActiveMQConnectionFactory connectionFactory = new > ActiveMQConnectionFactory(user, password, jms_url); > _connection = connectionFactory.createConnection(); > _connection.setExceptionListener(this); > _connection.start(); > _session = _connection.createSession(false, Session.AUTO_ACKNOWLEDGE); > Queue queue = _session.createTemporaryQueue(); You should be sending messages to this queue object (which is an instanceof ActiveMQTempQueue. You should not be extracting the queue name then using that name to send to. -- James ------- http://radio.weblogs.com/0112098/