Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-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 7DFCD17ED8 for ; Wed, 4 Mar 2015 18:17:17 +0000 (UTC) Received: (qmail 14880 invoked by uid 500); 4 Mar 2015 18:17:11 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 14814 invoked by uid 500); 4 Mar 2015 18:17:11 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 14803 invoked by uid 99); 4 Mar 2015 18:17:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2015 18:17:11 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [80.154.98.23] (HELO mail1.wincor-nixdorf.com) (80.154.98.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2015 18:16:45 +0000 Received: from deexcs03.wincor-nixdorf.com ([172.18.244.18]) by mail1.wincor-nixdorf.com (8.14.5/8.14.5) with ESMTP id t24IFbUh017159 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 4 Mar 2015 18:15:37 GMT Received: from DEEXVS61.wincor-nixdorf.com ([fe80::91b5:b63b:6cf5:f0e5]) by deexcs03.wincor-nixdorf.com ([::1]) with mapi; Wed, 4 Mar 2015 19:15:36 +0100 From: "Enke, Dr., Michael" To: "users@tomcat.apache.org" Date: Wed, 4 Mar 2015 19:15:34 +0100 Subject: embedded tomcat: Call ChatAnnotation.broadcast(String) from application? Thread-Topic: embedded tomcat: Call ChatAnnotation.broadcast(String) from application? Thread-Index: AdBWpV2ku5mYLXdGS1+zmMMWjgsLww== Message-ID: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE, en-US Content-Type: multipart/alternative; boundary="_000_D0705BB737A20D4EA166124FF1BA8C6301ED0426D750DEEXVS61win_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_D0705BB737A20D4EA166124FF1BA8C6301ED0426D750DEEXVS61win_ Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, I start a tomcat from my application and call the static ChatAnnotation.bro= adcast(String) (from examples) out of my application. This is possible but anyhow my application seems to access a "different" br= oadcast(String) method: If there are connections to the chat (private static final Set connections)= , my application sees an empty Set. How this is possible for a static method / Set? There should be only one st= atic function / static variable in the JVM!? What is the correct way to achieve the call of broadcast() method? Thank you, Michael WINCOR NIXDORF International GmbH Sitz der Gesellschaft: Paderborn Registergericht Paderborn HRB 3507 Gesch=E4ftsf=FChrer: Eckard Heidloff (Vorsitzender), Dr. J=FCrgen Wunram (s= tellv. Vors.), Jens Bohlen, Olaf Heyden Vorsitzender des Aufsichtsrats: Dr. Alexander Dibelius Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. DE444= 77193 Diese E-Mail enth=E4lt vertrauliche Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt=FCmlich er= halten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist ni= cht gestattet. This e-mail may contain confidential information. If you are not the intended recipient (or have received this e-mail in erro= r) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in thi= s e-mail is strictly forbidden. --_000_D0705BB737A20D4EA166124FF1BA8C6301ED0426D750DEEXVS61win_--