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 C0FF017429 for ; Tue, 28 Oct 2014 12:53:25 +0000 (UTC) Received: (qmail 32804 invoked by uid 500); 28 Oct 2014 12:53:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 32740 invoked by uid 500); 28 Oct 2014 12:53:19 -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 32729 invoked by uid 99); 28 Oct 2014 12:53:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2014 12:53:19 +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 (athena.apache.org: domain of demablogia@gmail.com designates 209.85.218.41 as permitted sender) Received: from [209.85.218.41] (HELO mail-oi0-f41.google.com) (209.85.218.41) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2014 12:53:15 +0000 Received: by mail-oi0-f41.google.com with SMTP id e131so430151oig.14 for ; Tue, 28 Oct 2014 05:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=bttHmbu8L8r8mr/w06I0PMq13yKZp/Qo8Oc+fpSawIM=; b=shUGdy4thrF6fRuycFXDOx8ZaTGeUJZChoDkrakh/qZNS3rmrG+JyPpwf4d0adJlvl 0Jm7R7PlXQpQlSyAdDIvqyxG+J9H4LANMy5ENTkmCT87AtCxYLBGi2o/ZtgxR0CUbA1B iTvUl8yj97IL6ccDBsIsQh279nL4Z2vmTBy7MXJwkaXU2wVJhFUEpCxp0sPYKKHZ7iHP UGkWKkTtcnC8657tT7H/fMI01OBws95L/egLwvR5nGpUgx54ldT9pf0jBP5WdSGd+g7A TE8F+stsc8idqlqGmchysZDTn8nGXnp5rIfd3LVgKCd/L/dVXbTjO4dIh2gjHsrmyuU0 KBPQ== X-Received: by 10.60.48.4 with SMTP id h4mr2766439oen.42.1414500684798; Tue, 28 Oct 2014 05:51:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.160.99 with HTTP; Tue, 28 Oct 2014 05:51:04 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?Q?Jose_Mar=C3=ADa_Zaragoza?= Date: Tue, 28 Oct 2014 13:51:04 +0100 Message-ID: Subject: Re: How to access Sessions outside of class To: Tomcat Users List Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org 2014-10-28 13:44 GMT+01:00 Jason Ricles : > > Martin, > > I can not use hazelcast due to regulations I have to abide by, is where any > other built in way besides sockets that will allow me to share data between > the two processes? You could use an embedded ( or not ) messaging broker ( like ActiveMQ ) . Or any kind of in-memory database > > > On Tue, Oct 28, 2014 at 8:24 AM, Martin Grigorov > wrote: > > > Hi, > > > > In this case you will have to share the data between the processes. > > A simple and easy solution would be to use http://hazelcast.com/, for > > example. > > > > On Tue, Oct 28, 2014 at 2:06 PM, Jason Ricles > > wrote: > > > > > No, > > > > > > it is external as in it is running in a daemon on a linux machine where > > the > > > tomcat server is also running. > > > > > > On Tue, Oct 28, 2014 at 4:35 AM, Johan Compagner > > > wrote: > > > > > > > > > > > > > > > > > > I would like to be able to access my sessions from an external java > > > > class, > > > > > however each time I do sessionList.getsize() it keeps coming back as > > 0, > > > > but > > > > > there is an active sessions. Is there any way I can access the active > > > > > sessions in tomcat from an external java class? > > > > > > > > > > Jason > > > > > > > > > > > > > What is an external java class? Is it in the same class loader? so it > > is > > > > just part of the webapplication? > > > > then the above approach should work fine > > > > > > > > > > > > -- > > > > Johan Compagner > > > > Servoy > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org