Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8544FF3C2 for ; Tue, 14 May 2013 00:53:08 +0000 (UTC) Received: (qmail 35985 invoked by uid 500); 14 May 2013 00:26:27 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 35949 invoked by uid 500); 14 May 2013 00:26:27 -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 35940 invoked by uid 99); 14 May 2013 00:26:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 May 2013 00:26:27 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.posta@gmail.com designates 209.85.215.53 as permitted sender) Received: from [209.85.215.53] (HELO mail-la0-f53.google.com) (209.85.215.53) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 May 2013 00:26:22 +0000 Received: by mail-la0-f53.google.com with SMTP id eo20so6649721lab.26 for ; Mon, 13 May 2013 17:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=C3stKtP/xPNIkuXpIRAvQ7MurwryqhGNwe57lUgYoVU=; b=ct7fg7JPwKaVGshn01Ds8HwNNaaBBuAb2Z9roGfnsbtFKlpLBCgHTaqjw6KhzMzC/v L9rulOOY1ENKUqiYtWISwo78SaScywGnqbr4BXPOTe9wKTUjJyRI0kR2fWV1J9nORWXk WMncQL6ZMRU+EjFT+1cExqm/yirzAfBzOOgqadhNEouMS0ilPnAqE/71JugLQ7jiDPzh tDpZsfEAr4BDWvon5eL6OMfddq9GQ+zkIR9qz04KWo9rCaM3gOWwGCGFB4T5ie5D9FOE NXI/4vceXDCiEDi9SZ+SKzld/3cnsSgn3b/IT3bvEo9G7UdNZLVtr9IyaB+iR0LubLvC pwiQ== MIME-Version: 1.0 X-Received: by 10.152.3.103 with SMTP id b7mr4852251lab.8.1368491161423; Mon, 13 May 2013 17:26:01 -0700 (PDT) Received: by 10.114.83.134 with HTTP; Mon, 13 May 2013 17:26:01 -0700 (PDT) In-Reply-To: <51917D86.2030105@noaa.gov> References: <1368467410527-4666972.post@n4.nabble.com> <519135B4.2000901@noaa.gov> <519164F3.9080303@noaa.gov> <51917D86.2030105@noaa.gov> Date: Mon, 13 May 2013 17:26:01 -0700 Message-ID: Subject: Re: Wire Format Negotiation Timeout -- Say what?? From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=089e01493d4e8e140304dca2ada4 X-Virus-Checked: Checked by ClamAV on apache.org --089e01493d4e8e140304dca2ada4 Content-Type: text/plain; charset=ISO-8859-1 No, it's probably the same cost. But the cost is in establishing the underlying connection, not in creating the session. It just happens that if you haven't started the connection by the time you try to create the session, creating the session will set up the underlying connection data structures before creating a session. Which would explain what you were seeing. I would also be curious to understand why starting the connection before creating the session would get messages delivered. What version are you using? On Mon, May 13, 2013 at 4:57 PM, fenbers wrote: > > > > > > > Well, what happens when you "create a connection" but > don't start it, it > > will open the transport and start wire format negotiation... when > you do > > connection.start().. or when you try to open a session, it will > ensure that > > the connection is properly constructed, which is the expensive > part. So > > sessions by themselves are cheap enough as long as the >  connection > is up. > > > > I typically: > > create connection > create session > create producer/consumer > set producer/consumer options > start connection, which is the last thing before returning > from the run() method > > I find that if I start the connection right after Step 1, then I > occasionally see errors complaining that a message was received > before a consumer was created.  Starting my connection last > seems > to resolve that problem.  Are you saying that it is more > expensive > to do this in my order (above) than it would be if I started my > connection right after Step 1?? > > Mark > > > > > > > mark_fenbers.vcf (360 bytes) < > http://activemq.2283324.n4.nabble.com/attachment/4666998/0/mark_fenbers.vcf > > > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Wire-Format-Negotiation-Timeout-Say-what-tp4666972p4666998.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --089e01493d4e8e140304dca2ada4--