You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Andreas Kaluza <ka...@rhrk.uni-kl.de> on 2009/03/25 20:02:46 UTC
number of active users
Hi @ all,
I'm using Wicket 1.35 with a jetty server. My question is if I can get the
number of the active users, who are logged in the system. Perhaps getting
the number of active sessions or something like that. Is there a solution
for my problem?
Greetings
Re: number of active users
Posted by Johan Compagner <jc...@gmail.com>.
RequestLogger
On Wed, Mar 25, 2009 at 20:02, Andreas Kaluza <ka...@rhrk.uni-kl.de> wrote:
> Hi @ all,
>
>
>
> I'm using Wicket 1.35 with a jetty server. My question is if I can get the
> number of the active users, who are logged in the system. Perhaps getting
> the number of active sessions or something like that. Is there a solution
> for my problem?
>
>
>
> Greetings
>
>
>
>
>
>
Re: number of active users
Posted by nino martinez wael <ni...@gmail.com>.
it's this one:
http://www.nabble.com/Session-end-method-td18020171.html#a18024174
was pretty good hidden
2009/3/26 Jeremy Thomerson <je...@wickettraining.com>:
> "the list" = this mailing list
>
> search it on nabble
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Wed, Mar 25, 2009 at 7:10 PM, Andreas Kaluza <ka...@rhrk.uni-kl.de>wrote:
>
>> Thx for the reply!
>>
>> 1) In which class do I find the list?
>> 2) Has someone another idea, for my problem?
>>
>> Greetz
>>
>>
>> > -----Ursprüngliche Nachricht-----
>> > Von: nino martinez wael [mailto:nino.martinez.wael@gmail.com]
>> > Gesendet: Mittwoch, 25. März 2009 20:18
>> > An: users@wicket.apache.org
>> > Betreff: Re: number of active users
>> >
>> > yeah search the list i did something once but its not a great solution
>> > and it does not work when clustering
>> >
>> > 2009/3/25 Andreas Kaluza <ka...@rhrk.uni-kl.de>:
>> > > Hi @ all,
>> > >
>> > >
>> > >
>> > > I'm using Wicket 1.35 with a jetty server. My question is if I can
>> > get the
>> > > number of the active users, who are logged in the system. Perhaps
>> > getting
>> > > the number of active sessions or something like that. Is there a
>> > solution
>> > > for my problem?
>> > >
>> > >
>> > >
>> > > Greetings
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: number of active users
Posted by Jeremy Thomerson <je...@wickettraining.com>.
"the list" = this mailing list
search it on nabble
--
Jeremy Thomerson
http://www.wickettraining.com
On Wed, Mar 25, 2009 at 7:10 PM, Andreas Kaluza <ka...@rhrk.uni-kl.de>wrote:
> Thx for the reply!
>
> 1) In which class do I find the list?
> 2) Has someone another idea, for my problem?
>
> Greetz
>
>
> > -----Ursprüngliche Nachricht-----
> > Von: nino martinez wael [mailto:nino.martinez.wael@gmail.com]
> > Gesendet: Mittwoch, 25. März 2009 20:18
> > An: users@wicket.apache.org
> > Betreff: Re: number of active users
> >
> > yeah search the list i did something once but its not a great solution
> > and it does not work when clustering
> >
> > 2009/3/25 Andreas Kaluza <ka...@rhrk.uni-kl.de>:
> > > Hi @ all,
> > >
> > >
> > >
> > > I'm using Wicket 1.35 with a jetty server. My question is if I can
> > get the
> > > number of the active users, who are logged in the system. Perhaps
> > getting
> > > the number of active sessions or something like that. Is there a
> > solution
> > > for my problem?
> > >
> > >
> > >
> > > Greetings
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
AW: number of active users
Posted by Andreas Kaluza <ka...@rhrk.uni-kl.de>.
Thx for the reply!
1) In which class do I find the list?
2) Has someone another idea, for my problem?
Greetz
> -----Ursprüngliche Nachricht-----
> Von: nino martinez wael [mailto:nino.martinez.wael@gmail.com]
> Gesendet: Mittwoch, 25. März 2009 20:18
> An: users@wicket.apache.org
> Betreff: Re: number of active users
>
> yeah search the list i did something once but its not a great solution
> and it does not work when clustering
>
> 2009/3/25 Andreas Kaluza <ka...@rhrk.uni-kl.de>:
> > Hi @ all,
> >
> >
> >
> > I'm using Wicket 1.35 with a jetty server. My question is if I can
> get the
> > number of the active users, who are logged in the system. Perhaps
> getting
> > the number of active sessions or something like that. Is there a
> solution
> > for my problem?
> >
> >
> >
> > Greetings
> >
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: number of active users
Posted by Bruno Borges <br...@gmail.com>.
If you use some sort of database, you can easily do that, on any kind of
environment (like clustered).
If not, another way is "syncing" with some rest service between all
instances in a clustered application.
In one instance, of course you can do that in many ways.
Cheers
Bruno Borges
blog.brunoborges.com.br
+55 21 76727099
"The glory of great men should always be
measured by the means they have used to
acquire it."
- Francois de La Rochefoucauld
On Wed, Mar 25, 2009 at 4:18 PM, nino martinez wael <
nino.martinez.wael@gmail.com> wrote:
> yeah search the list i did something once but its not a great solution
> and it does not work when clustering
>
> 2009/3/25 Andreas Kaluza <ka...@rhrk.uni-kl.de>:
> > Hi @ all,
> >
> >
> >
> > I'm using Wicket 1.35 with a jetty server. My question is if I can get
> the
> > number of the active users, who are logged in the system. Perhaps getting
> > the number of active sessions or something like that. Is there a solution
> > for my problem?
> >
> >
> >
> > Greetings
> >
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: number of active users
Posted by nino martinez wael <ni...@gmail.com>.
yeah search the list i did something once but its not a great solution
and it does not work when clustering
2009/3/25 Andreas Kaluza <ka...@rhrk.uni-kl.de>:
> Hi @ all,
>
>
>
> I'm using Wicket 1.35 with a jetty server. My question is if I can get the
> number of the active users, who are logged in the system. Perhaps getting
> the number of active sessions or something like that. Is there a solution
> for my problem?
>
>
>
> Greetings
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: number of active users
Posted by Maarten Bosteels <mb...@gmail.com>.
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpSessionListener.html
Counter implements HttpSessionListener {
private AtomicInteger count ;
sessionCreated: { count.incrementAndGet() }
sessionDestroyed: { count.decrementAndGet() }
}
Or, when users have to login, increment counter there, to make sure
you're only counting users who have signed in.
But remember that the session is already gone when sessionDestroyed is called.
regards,
Maarten
On Wed, Mar 25, 2009 at 8:02 PM, Andreas Kaluza <ka...@rhrk.uni-kl.de> wrote:
>
> Hi @ all,
>
>
>
> I'm using Wicket 1.35 with a jetty server. My question is if I can get the
> number of the active users, who are logged in the system. Perhaps getting
> the number of active sessions or something like that. Is there a solution
> for my problem?
>
>
>
> Greetings
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org