Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 5F56CDB75 for ; Sat, 5 Jan 2013 06:57:23 +0000 (UTC) Received: (qmail 48927 invoked by uid 500); 5 Jan 2013 06:57:23 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 48777 invoked by uid 500); 5 Jan 2013 06:57:22 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 48753 invoked by uid 99); 5 Jan 2013 06:57:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jan 2013 06:57:21 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of willem.jiang@gmail.com designates 209.85.160.50 as permitted sender) Received: from [209.85.160.50] (HELO mail-pb0-f50.google.com) (209.85.160.50) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jan 2013 06:57:16 +0000 Received: by mail-pb0-f50.google.com with SMTP id wz7so9569039pbc.37 for ; Fri, 04 Jan 2013 22:56:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:message-id:in-reply-to:references:subject :x-mailer:mime-version:content-type:content-transfer-encoding :content-disposition; bh=S4Ymf3j4+k+12mokivuCPJvuIbAVVrwFx52Ldf9huT4=; b=kyL1BEO/UKTGUkIk405DrtsEufY72Am2WF3PX52a0xyaSApo0SXidDVtJnA94Rg+px jPQ6b/EhydK22m1q2UtjOZ2Thldm/zXPS95fF0mY2Daif49bTIE6n9q4iqR3eqLUYcEc c4wyFkLSeu6Bp75JXz4lXPP4cQW11RfTOEEUgBRSCBZGMSmPNIhc0nlhTAu6vtx6vuji 8MpJqpS4CYpw0NNx2lh81XZyehEbPlVlRcUiSO2JiW1Fm6b+uDU7rtiP4cVbzMhfzRiK J7RPcAlxkjHoShqj6q7mFbVqkOkKbeTLZRKLMu+jxLwIt/N9uNbbdgaZ8k6cwyPVQqmS KPdw== X-Received: by 10.66.73.165 with SMTP id m5mr160834420pav.78.1357369016386; Fri, 04 Jan 2013 22:56:56 -0800 (PST) Received: from [192.168.1.135] ([125.33.123.24]) by mx.google.com with ESMTPS id oi3sm33609613pbb.1.2013.01.04.22.56.53 (version=SSLv3 cipher=OTHER); Fri, 04 Jan 2013 22:56:55 -0800 (PST) Date: Sat, 5 Jan 2013 14:56:48 +0800 From: Willem jiang To: users@camel.apache.org Message-ID: <1EC1D33EDC19475299B226BAD866C2DB@gmail.com> In-Reply-To: <1357354473748-5724934.post@n5.nabble.com> References: <1357354473748-5724934.post@n5.nabble.com> Subject: Re: Camel websocket disconnect trigger X-Mailer: sparrow 1.6.4 (build 1176) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi, Current Camel websocket manage the web socket connection itself with the = MemoryWebsocketStore. I'm not sure what kind of resource you need to mana= ge yourself. You should be able to know if the client web socket disconnect if you can= pass the customer NodeSynchronization into the WebSocketEndpoint. As cur= rent Camel WebSocket doesn't expose the API, you need to hack the code to= pass the reference. -- =20 Willem Jiang Red Hat, Inc. =46useSource is now part of Red Hat Web: http://www.fusesource.com =7C http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) = (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang =20 Weibo: =E5=A7=9C=E5=AE=81willem On Saturday, January 5, 2013 at 10:54 AM, aoisagi wrote: > Hi, I just started playing around with camel-websocket, however, there > doesn't seem to be a trigger when the client quit the browser. Is there= some > kind of mechanism to detect disconnected socket so I can recycle some > resources that's dedicated to that socket previously=3F Thanks. > =20 > =20 > =20 > -- > View this message in context: http://camel.465427.n5.nabble.com/Camel-w= ebsocket-disconnect-trigger-tp5724934.html > Sent from the Camel - Users mailing list archive at Nabble.com (http://= Nabble.com).