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 0E1E2C610 for ; Wed, 3 Jul 2013 02:45:24 +0000 (UTC) Received: (qmail 26453 invoked by uid 500); 3 Jul 2013 02:45:20 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 26036 invoked by uid 500); 3 Jul 2013 02:45:20 -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 26026 invoked by uid 99); 3 Jul 2013 02:45:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 02:45:19 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stewart.vince@gmail.com designates 209.85.216.182 as permitted sender) Received: from [209.85.216.182] (HELO mail-qc0-f182.google.com) (209.85.216.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 02:45:15 +0000 Received: by mail-qc0-f182.google.com with SMTP id e10so4237604qcy.27 for ; Tue, 02 Jul 2013 19:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1GxBnmrQQxjZloAsCR3kjOMqLhgIzN9AF+OrHoQhNhg=; b=PtVC115CoQaQtCHJd7FYUQxE/AG7sQUv2WnYHQIQQEp8n82d/4SaA38C99ZOTm4Acu xHFNjDFM+MkFKKklygdyIEOS6qFqCmHtlAutFq+lZrXnlrUFhbj9+wdanFew4tDrkk/0 4AviiBUTliRU/dDEsY98u0pIqIUqmTwJGd4lVm4jr8gVN2sYUeRJurFi0Jx8s8+A/Z9i pSwrvKdoEDdrAFDucAlYXxTtItZ/Ur4JmHkXZ410eQhAqGd+PGbBQ8ycY8e83pdS6zxd vmoYykSS+kR6At9OcjZ91hGiuFK0myuXn4/n53sPYVfr/iylII0Nalvsumw8VCUXDzl8 NsCg== MIME-Version: 1.0 X-Received: by 10.224.78.11 with SMTP id i11mr970479qak.29.1372819494544; Tue, 02 Jul 2013 19:44:54 -0700 (PDT) Received: by 10.49.106.8 with HTTP; Tue, 2 Jul 2013 19:44:54 -0700 (PDT) In-Reply-To: References: <42B9B997-E1EF-4C24-A3A1-48A4D704ABB5@j-b-s.de> <51D3270F.8090906@christopherschultz.net> Date: Wed, 3 Jul 2013 14:44:54 +1200 Message-ID: Subject: Re: Share info across different sessions & servers From: Vince Stewart To: Tomcat Users List Content-Type: multipart/alternative; boundary=20cf3074d22a502c8d04e092722e X-Virus-Checked: Checked by ClamAV on apache.org --20cf3074d22a502c8d04e092722e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I have am using "tribes" messaging to send messages between remote applications which include tomcat embedded. You construct your message and submit to a "sendMessage" process. All running apps are always listening for messages. They receive the message and then may or may not reply or broadcast as a result. On Wed, Jul 3, 2013 at 7:43 AM, Jose Mar=EDa Zaragoza wrote: > Thanks Christopher : > > Maybe I explained myself badly > I really need to send messages to a specific web session , not share data > > I need to pass some data ( message ) to a specific session from a remote > system ( a remote process from a remote system). > Finally, this data is passed to client's browser by AJAX Reverse > > My idea is the session creates a dynamic Queue and it configures itself a= s > Consumer > If I pass the Queue to remote process ( in message.replyTo() ) , the remo= te > process can send data to that specific session > > I could use a RDBS but , in this case, session needs to create a thread t= o > polling on a share table. And I don't like this idea, sorry. > > memcached sounds good but I don't know anything about it and I don't know > is is based on a event-driven architecture > > > > I need > > 1) send data/message from a remote process to a specific web session > 2) execute some code in this session > 3) consume ( a.k.a, delete ) that message > > Persistence is not a requirement but ActiveMQ allows it > > I'l try it with ActiveMQ > > Thanks again and regards > > > > > > 2013/7/2 Christopher Schultz > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA256 > > > > Jose, > > > > On 7/2/13 3:22 AM, Jose Mar=EDa Zaragoza wrote: > > > Thanks I need to share formatted text data ( XML, key/value, > > > ...I'm not sure yet ) > > > > > > I don't understand your comment about JMS . I will use a JMS broker > > > as ActiveMQ . Probably it will be embebbed into the same JVM than > > > Tomcat server. ActiveMQ supports persistent messages > > > > While JMS may work, it's really not the right solution. JMS is a > > messaging service, and you want a data-storage service. > > > > > I could use a database but I don't want to be making polling every > > > X seconds by a session > > > > You don't have to pull any data that the user doesn't need, do you? > > > > If you don't want to use a RDBMS, how about something like memcached? > > I asked about using memcached a while back on this list and got some > > other suggestions as well (as memcached doesn't make a great fail-safe > > shared-data storage system... it's really meant to be more of a cache > > of data available elsewhere). > > > > - -chris > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > > Comment: GPGTools - http://gpgtools.org > > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > > > iQIcBAEBCAAGBQJR0ycOAAoJEBzwKT+lPKRYaAsP+wfhqoLQWwJoYLpur0Z5VOeJ > > GUmylaW+kllpcbdFdVG81691rjUW1Ph5yQ2MQzPFKv0bCp2cyHMWQuJgAp1rq/Lo > > T6Bpba6IHeyucxEAk0XZfGu4efS+wc39ncq9C3GPamEvrN+locYGtM/lqSpkSxKz > > 5ADXD9o2//U5Nk00N0KHPH4xsp/wtx0NJgT1p9f1VUKgU9pVvGFhHvrozvdAEcnv > > 9U7IQroNO7uR3RnKL/rq9CH3MsxL/gbWCWEZ21WkaguLFysc67naaSQvimIoLok9 > > eUfCK6Z5Bll4VeefK6YlA6E49sj01NZD1zuj0J/DGUiwBuFiNSZc1Z2NOZlue7Oo > > efpaRkjINouIfyk3RONa8/ZuNWf80ImX5vvJKEYK7ujc2LB7G8+ID95Toeej0eyg > > cZWHZo3N67nYgker4Kp4xn4VXBs4QfDzY/uOfsUyp8voNcCz6lBo38w8T3jvVJzV > > ci18cbWdRXQ3NrlaBkI8qJeEzMWAegM7C1IqJUspmlDHvsUIiamGA+ZF6nBNPr16 > > w3lx8X8xWjGM63OQaoYMbTc2ZXFCkP0zkXXEcx49zyGMSEDSk2NySw2HkAOh9iVx > > tr7YCDChtFg8mBQPY6CiiasEtn8j9JMK/XawdDI34LTsO1molB5OvJDGo558BqMm > > 3hK/JZGxPkEPapvOfWRM > > =3DtOMh > > -----END PGP SIGNATURE----- > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: users-help@tomcat.apache.org > > > > > --=20 Vince Stewart --20cf3074d22a502c8d04e092722e--