Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 11620200CBA for ; Mon, 3 Jul 2017 08:47:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0FA2E160BEC; Mon, 3 Jul 2017 06:47:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 54E7C160BE4 for ; Mon, 3 Jul 2017 08:47:05 +0200 (CEST) Received: (qmail 77314 invoked by uid 500); 3 Jul 2017 06:47:03 -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 77302 invoked by uid 99); 3 Jul 2017 06:47:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2017 06:47:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id ECB8DC7DC9 for ; Mon, 3 Jul 2017 06:47:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.503 X-Spam-Level: ** X-Spam-Status: No, score=2.503 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URI_HEX=1.313, URI_TRY_3LD=1] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=me.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id S0OtQqY1qMHv for ; Mon, 3 Jul 2017 06:47:02 +0000 (UTC) Received: from pv33p33im-asmtp001.me.com (pv33p33im-asmtp001.me.com [17.142.241.8]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DE02960DAF for ; Mon, 3 Jul 2017 06:47:01 +0000 (UTC) Received: from process-dkim-sign-daemon.pv33p33im-asmtp001.me.com by pv33p33im-asmtp001.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) id <0OSI00C0053F1700@pv33p33im-asmtp001.me.com> for users@activemq.apache.org; Mon, 03 Jul 2017 06:46:55 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=04042017; t=1499064415; bh=Z5gAnq+d5ooghhgPJgj1gnqWI4WMdQJrTAvRY9yP9z4=; h=From:Content-type:MIME-version:Date:Subject:Message-id:To; b=Ei1Nw0UHYB5bOSQDuiJetNJR/lM5B69RHVkTneDuMgC06d/R1Vv43GdiT1mNOX8Il BcOQhz1DXDm7IQ+QmZ4vLq7Ur5TTOLsZzSoZE3kaF4fz8QqR+ziKOPcMqh/QWWPzqb uaTttYak5rcFGJ82oQb7+vWLwe7uNHImadAdzCbfdW9sSg5Ls4LHM51ieRFTOdg/sS UV6PPmiJpKtFDlYNdLxS3Y9Kp66EVwQe67pJWUiwM/MjPE8/QCaWNdDYJ6DeD93VQG nraG+i9e7E70JICpA1S7u8I1+kPmyWYS4QV6dqqKAVZmqlAKYmSlouqL/h1bpVZOYG mbptjLaxx0QUw== Received: from icloud.com ([127.0.0.1]) by pv33p33im-asmtp001.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) with ESMTPSA id <0OSI007TS5I20N20@pv33p33im-asmtp001.me.com> for users@activemq.apache.org; Mon, 03 Jul 2017 06:46:53 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-07-03_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1034 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1701120000 definitions=main-1707030112 From: =?utf-8?Q?Michael_Andr=C3=A9_Pearce?= Content-type: multipart/alternative; boundary=Apple-Mail-7471E460-4535-47F8-A219-6197898D8FA6 Content-transfer-encoding: 7bit MIME-version: 1.0 (1.0) Date: Mon, 03 Jul 2017 07:46:49 +0100 Subject: Re: PooledConnectionFactory: createConnection results in log entry "Successfully connected to ..." Message-id: <9CB07C53-52B6-4C83-B3A0-DA8B68AD769E@me.com> References: <1499062649835-4728188.post@n4.nabble.com> In-reply-to: <1499062649835-4728188.post@n4.nabble.com> To: users@activemq.apache.org X-Mailer: iPhone Mail (14F89) archived-at: Mon, 03 Jul 2017 06:47:06 -0000 --Apple-Mail-7471E460-4535-47F8-A219-6197898D8FA6 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable The PooledConnectionFactory just pools created connections so that they can b= e reused. The connections are created as you've noted on createConnection.=20= A really good description of its behaviour is written in doc see here: http://activemq.apache.org/maven/5.15.0/apidocs/org/apache/activemq/jms/pool= /PooledConnectionFactory.html Cheers, Mike. Sent from my iPhone > On 3 Jul 2017, at 07:17, jochenw wrote: >=20 > Hello, >=20 > I'm just starting using the PooledConnectionFactory. Before calling the > start() method, the idleTimeout (30000 ms), the maxConnections (10) and th= e > maximumActiveSessionPerConnection (500) are set. >=20 > I would have expected that on startup, 10 connections are opened to the > broker (tcp://0.0.0.0:61616), and these 10 connections are used when I sta= rt > sending messages. However, on each > pooledConnectionFactory.createConnection(), there is another entry in the > log "Successfully connected to tcp://0.0.0.0:61616". >=20 > It this log entry also appearing when creating a connection to a connectio= n > pool although no new broker connection is opened? Or does this mean that a= > new connection is set up to the broker - indicating that I did something > wrong when using the connection pool? >=20 > Regards, > Jochen >=20 >=20 >=20 > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Pooled= ConnectionFactory-createConnection-results-in-log-entry-Successfully-connect= ed-to-tp4728188.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. --Apple-Mail-7471E460-4535-47F8-A219-6197898D8FA6--