Return-Path: X-Original-To: apmail-tuscany-user-archive@www.apache.org Delivered-To: apmail-tuscany-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2EE79D227 for ; Sun, 21 Oct 2012 11:57:57 +0000 (UTC) Received: (qmail 45297 invoked by uid 500); 21 Oct 2012 11:57:57 -0000 Delivered-To: apmail-tuscany-user-archive@tuscany.apache.org Received: (qmail 45115 invoked by uid 500); 21 Oct 2012 11:57:52 -0000 Mailing-List: contact user-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@tuscany.apache.org Delivered-To: mailing list user@tuscany.apache.org Received: (qmail 45101 invoked by uid 99); 21 Oct 2012 11:57:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Oct 2012 11:57:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tomlottermann@gmail.com designates 209.85.216.53 as permitted sender) Received: from [209.85.216.53] (HELO mail-qa0-f53.google.com) (209.85.216.53) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Oct 2012 11:57:44 +0000 Received: by mail-qa0-f53.google.com with SMTP id s11so1022467qaa.5 for ; Sun, 21 Oct 2012 04:57:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=FVq3tFb/OLDRmOZlRALMhDQI7GqUa0OlN2Ly+TbDJfs=; b=luz4M2DbF0ebyUGsL7szHAqQF90KVS/LXj1GXv6Q3t7U7aqAIRv0ETAiHixQMcPc5o kw6/OO4unJWbuBNq/1Bn9E4lpu6qIk0o7dwdnXD3ZuGEP0PydOCduQaj1YixH0+vwb8A S1zYEH/tgGEy6NAgLoaRkFTOeZMWYa2KI45p9hoQm/bqoqAyZCZ5uvJiDiLwhJLcX5jt ZPmP7NrI8b9wiWgbc79ynrj6MDiIbMtkPYIBxlX416ZwdDRRU+F44MPmPG47r/EvU5x5 c2XiTFV5Reb/nYZnDQvjtuxE/sJ6bg21CiBWgSr8Zkl1S/sdnDmoIw45X1Wjj8qmsaE8 SXEA== Received: by 10.224.33.139 with SMTP id h11mr2368236qad.89.1350820644123; Sun, 21 Oct 2012 04:57:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.116.169 with HTTP; Sun, 21 Oct 2012 04:57:04 -0700 (PDT) From: Thomas Lottermann Date: Sun, 21 Oct 2012 13:57:04 +0200 Message-ID: Subject: What is the best way to notify a client? To: user@tuscany.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi! I have a question about the interaction with the client application using tuscany (1.6). I need to push data to the client. There are two different ideas that I came across in order to achieve this: 1) Registering for a callback for every client (by calling a register method which provides a callback). I tried implementing the following post: http://mail-archives.apache.org/mod_mbox/tuscany-user/200906.mbox/%3C11512CD2E0C72C4DB2D6FC2413F40BA102A7BDB7FB@ks1.B2MSoftwareAG.local%3E The problem is, that when I start two clients only one gets notified. It seems like it is only possible to register one callback per composite service. Am I doing something wrong? Is there a way to make this work? 2) Implementing it based on the notification (producer/consumer) example in the samples of tuscany 1.6 (bit with java interfaces instead of wsdl infertaces). The problem here is that whenever i close a client the call to the clients throws an exception. This is ugly (since other exceptions are printed int he console) but it works. Never the less: whenever I restart the client it receives the messages twice and after a second restart it receives the same messages three times and so on. That means that the client is not disconnected from the server. Is there a way to do so? If that is the case I would prefer this solution. cheers, Thomas Lottermann