Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1540E18095 for ; Sun, 6 Mar 2016 11:35:41 +0000 (UTC) Received: (qmail 62586 invoked by uid 500); 6 Mar 2016 11:35:41 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 62547 invoked by uid 500); 6 Mar 2016 11:35:40 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 62536 invoked by uid 99); 6 Mar 2016 11:35:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Mar 2016 11:35:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B14862C1F58 for ; Sun, 6 Mar 2016 11:35:40 +0000 (UTC) Date: Sun, 6 Mar 2016 11:35:40 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-9665) camel-ahc-ws Consumer does not connect MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-9665?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-9665: ------------------------------- Fix Version/s: 2.17.0 2.16.3 > camel-ahc-ws Consumer does not connect > -------------------------------------- > > Key: CAMEL-9665 > URL: https://issues.apache.org/jira/browse/CAMEL-9665 > Project: Camel > Issue Type: Bug > Components: camel-ahc-ws > Affects Versions: 2.16.1 > Reporter: Thomas G=C3=BCnter > Assignee: Claus Ibsen > Fix For: 2.16.3, 2.17.0 > > > WsEndpoint.connect(WsConsumer) should connect to the WebSocket server in = case this is not already done.=20 > The test case (WsProducerConsumerTest.java) only works, since the produce= r is connecting first and the consumer is using the same connection. If no = producer is used, then no connection is created and the consumer will not r= eceive any messages. > Suggestion: > {code} > void connect(final WsConsumer wsConsumer) > { > this.consumers.add(wsConsumer); > if (this.websocket =3D=3D null || !this.websocket.isOpen()) > { > this.connect(); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)