Re: Get all sessions and manipulate them

2009-08-14 Thread uud ashr
Okay then. Thanks Jeremy.So now I know Wicket didn't have this feature.

Regards,
uudashr

On Fri, Aug 14, 2009 at 10:23 AM, Jeremy Thomerson 
jer...@wickettraining.com wrote:

 It'd be easy to create this as an addon project.  Wicketstuff?

 --
 Jeremy Thomerson
 http://www.wickettraining.com




 On Thu, Aug 13, 2009 at 10:23 AM, Jing Ge (Besitec IT
 DEHAM)j...@besitec.com wrote:
  Hello,
 
  This is also a very interesting question that I wanna ask.
 
  I've googled and found a single Nabble Mail site about it:
  http://www.nabble.com/Get-all-sessions-users-for-a-web-application-td213
  67229.html
 
  We can only get some session data from the RequestLogger, but not the
  session itself. So if we wanna manipulate all sessions, using the
  RequestLogger ist not the correct way.
 
  Implementing the HttpSessionListener should be work, but the same code
  will repeated by all projects, that wanna manipulate the sessions
 
  any common feature in wicket? Maybe 1.4.x?
 
  Regards!
  Jing
 
  -Original Message-
  From: uud ashr [mailto:uuda...@gmail.com]
  Sent: Dienstag, 11. August 2009 13:25
  To: users@wicket.apache.org
  Subject: Re: Get all sessions and manipulate them
 
  I don't know. Asked many times but maybe not so popular. I can't find it
  easily.
  Do I have to save it
  manually all available session by creating class implementing ISession
  store?
  Or there is another way?
 
  Regards,
  uudashr
 
  On Tue, Aug 11, 2009 at 11:36 AM, Jeremy Thomerson 
  jer...@wickettraining.com wrote:
 
  This question has been asked and answered many times on this mailing
  list.  Please try searching the archives on Nabble.  Then let us know
  if you have questions about one of those implementations.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
 
  On Mon, Aug 10, 2009 at 10:59 PM, uud ashruuda...@gmail.com wrote:
   Hi all,
   How to manipulate all existing sessions on wicket.
   I can get the SessionData trough
  getRequestLogger().getLiveSessions(),
  but I
   can't manipulate the SessionData.
   For examples, I have session class:
  
   public class MyAppSession extends WebSession {
 ...
 public void setLoggedUser(User user) {
 }
  
 public User getLoggedUser() {
  
 }
   }
  
  
   I want to kick all logged users because I want to do something like
   maintenance thing by using theSession.setLoggedUser(null) to all
  available
   sessions.
   Anyone knows?
  
   Regards,
   uudashr
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




RE: Get all sessions and manipulate them

2009-08-13 Thread Jing Ge (Besitec IT DEHAM)
Hello,

This is also a very interesting question that I wanna ask.

I've googled and found a single Nabble Mail site about it:
http://www.nabble.com/Get-all-sessions-users-for-a-web-application-td213
67229.html

We can only get some session data from the RequestLogger, but not the
session itself. So if we wanna manipulate all sessions, using the
RequestLogger ist not the correct way.

Implementing the HttpSessionListener should be work, but the same code
will repeated by all projects, that wanna manipulate the sessions

any common feature in wicket? Maybe 1.4.x?

Regards!
Jing

-Original Message-
From: uud ashr [mailto:uuda...@gmail.com] 
Sent: Dienstag, 11. August 2009 13:25
To: users@wicket.apache.org
Subject: Re: Get all sessions and manipulate them

I don't know. Asked many times but maybe not so popular. I can't find it
easily.
Do I have to save it
manually all available session by creating class implementing ISession
store?
Or there is another way?

Regards,
uudashr

On Tue, Aug 11, 2009 at 11:36 AM, Jeremy Thomerson 
jer...@wickettraining.com wrote:

 This question has been asked and answered many times on this mailing
 list.  Please try searching the archives on Nabble.  Then let us know
 if you have questions about one of those implementations.

 --
 Jeremy Thomerson
 http://www.wickettraining.com




 On Mon, Aug 10, 2009 at 10:59 PM, uud ashruuda...@gmail.com wrote:
  Hi all,
  How to manipulate all existing sessions on wicket.
  I can get the SessionData trough
getRequestLogger().getLiveSessions(),
 but I
  can't manipulate the SessionData.
  For examples, I have session class:
 
  public class MyAppSession extends WebSession {
...
public void setLoggedUser(User user) {
}
 
public User getLoggedUser() {
 
}
  }
 
 
  I want to kick all logged users because I want to do something like
  maintenance thing by using theSession.setLoggedUser(null) to all
 available
  sessions.
  Anyone knows?
 
  Regards,
  uudashr
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get all sessions and manipulate them

2009-08-13 Thread Jeremy Thomerson
It'd be easy to create this as an addon project.  Wicketstuff?

--
Jeremy Thomerson
http://www.wickettraining.com




On Thu, Aug 13, 2009 at 10:23 AM, Jing Ge (Besitec IT
DEHAM)j...@besitec.com wrote:
 Hello,

 This is also a very interesting question that I wanna ask.

 I've googled and found a single Nabble Mail site about it:
 http://www.nabble.com/Get-all-sessions-users-for-a-web-application-td213
 67229.html

 We can only get some session data from the RequestLogger, but not the
 session itself. So if we wanna manipulate all sessions, using the
 RequestLogger ist not the correct way.

 Implementing the HttpSessionListener should be work, but the same code
 will repeated by all projects, that wanna manipulate the sessions

 any common feature in wicket? Maybe 1.4.x?

 Regards!
 Jing

 -Original Message-
 From: uud ashr [mailto:uuda...@gmail.com]
 Sent: Dienstag, 11. August 2009 13:25
 To: users@wicket.apache.org
 Subject: Re: Get all sessions and manipulate them

 I don't know. Asked many times but maybe not so popular. I can't find it
 easily.
 Do I have to save it
 manually all available session by creating class implementing ISession
 store?
 Or there is another way?

 Regards,
 uudashr

 On Tue, Aug 11, 2009 at 11:36 AM, Jeremy Thomerson 
 jer...@wickettraining.com wrote:

 This question has been asked and answered many times on this mailing
 list.  Please try searching the archives on Nabble.  Then let us know
 if you have questions about one of those implementations.

 --
 Jeremy Thomerson
 http://www.wickettraining.com




 On Mon, Aug 10, 2009 at 10:59 PM, uud ashruuda...@gmail.com wrote:
  Hi all,
  How to manipulate all existing sessions on wicket.
  I can get the SessionData trough
 getRequestLogger().getLiveSessions(),
 but I
  can't manipulate the SessionData.
  For examples, I have session class:
 
  public class MyAppSession extends WebSession {
    ...
    public void setLoggedUser(User user) {
    }
 
    public User getLoggedUser() {
 
    }
  }
 
 
  I want to kick all logged users because I want to do something like
  maintenance thing by using theSession.setLoggedUser(null) to all
 available
  sessions.
  Anyone knows?
 
  Regards,
  uudashr
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get all sessions and manipulate them

2009-08-11 Thread uud ashr
I don't know. Asked many times but maybe not so popular. I can't find it
easily.
Do I have to save it
manually all available session by creating class implementing ISession store?
Or there is another way?

Regards,
uudashr

On Tue, Aug 11, 2009 at 11:36 AM, Jeremy Thomerson 
jer...@wickettraining.com wrote:

 This question has been asked and answered many times on this mailing
 list.  Please try searching the archives on Nabble.  Then let us know
 if you have questions about one of those implementations.

 --
 Jeremy Thomerson
 http://www.wickettraining.com




 On Mon, Aug 10, 2009 at 10:59 PM, uud ashruuda...@gmail.com wrote:
  Hi all,
  How to manipulate all existing sessions on wicket.
  I can get the SessionData trough getRequestLogger().getLiveSessions(),
 but I
  can't manipulate the SessionData.
  For examples, I have session class:
 
  public class MyAppSession extends WebSession {
...
public void setLoggedUser(User user) {
}
 
public User getLoggedUser() {
 
}
  }
 
 
  I want to kick all logged users because I want to do something like
  maintenance thing by using theSession.setLoggedUser(null) to all
 available
  sessions.
  Anyone knows?
 
  Regards,
  uudashr
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Get all sessions and manipulate them

2009-08-10 Thread uud ashr
Hi all,
How to manipulate all existing sessions on wicket.
I can get the SessionData trough getRequestLogger().getLiveSessions(), but I
can't manipulate the SessionData.
For examples, I have session class:

public class MyAppSession extends WebSession {
   ...
   public void setLoggedUser(User user) {
   }

   public User getLoggedUser() {

   }
}


I want to kick all logged users because I want to do something like
maintenance thing by using theSession.setLoggedUser(null) to all available
sessions.
Anyone knows?

Regards,
uudashr


Re: Get all sessions and manipulate them

2009-08-10 Thread Jeremy Thomerson
This question has been asked and answered many times on this mailing
list.  Please try searching the archives on Nabble.  Then let us know
if you have questions about one of those implementations.

--
Jeremy Thomerson
http://www.wickettraining.com




On Mon, Aug 10, 2009 at 10:59 PM, uud ashruuda...@gmail.com wrote:
 Hi all,
 How to manipulate all existing sessions on wicket.
 I can get the SessionData trough getRequestLogger().getLiveSessions(), but I
 can't manipulate the SessionData.
 For examples, I have session class:

 public class MyAppSession extends WebSession {
   ...
   public void setLoggedUser(User user) {
   }

   public User getLoggedUser() {

   }
 }


 I want to kick all logged users because I want to do something like
 maintenance thing by using theSession.setLoggedUser(null) to all available
 sessions.
 Anyone knows?

 Regards,
 uudashr


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get all sessions

2009-01-11 Thread Eunice

Hi Jonathan and Peter, thanks alot for your reply, i tried to get the
sessions by using the

IRequestLogger as suggest by Jonathan . It do really helps.

IRequestLogger requestLogger = Application.get().getRequestLogger();
SessionData[] sessions= requestLogger.getLiveSessions();
System.out.println(The number of Live Sessions in my application is
[+sessions.length+]);





Here is my second question, let say there are 2 sessions is currently log in
into my application.


session.getSessionId()  == [bm1pgdr1y9hf]
session.getSessionId()  == [198y9m0etdvpj]


When the first user  [bm1pgdr1y9hf] login, i want to update the page to show
'Logged on users:1'
in [bm1pgdr1y9hf] 's homepage.

When the second user   [198y9m0etdvpj] login, i want to update the page to
show 'Logged on users:2'
in both [bm1pgdr1y9hf]  and [198y9m0etdvpj] 's homepage.

How can I update [bm1pgdr1y9hf] 's homepage after the second user 
[198y9m0etdvpj]  login?

Thanks alot again for your replies 

 


Peter Ertl-3 wrote:
 
 implement javax.servlet.http.HttpSessionListener
 
 Am 09.01.2009 um 08:07 schrieb Eunice:
 

 Hi,

 Is there any methods or functions in wicket that can give me

 numbers of users/sessions that is currently active and viewing/ 
 opening a
 page?

 I've been googling and read on the API, still cannot get any clues and
 unable to work it out..

 Can i get number of sessions from my application by using  
 ISessionStore or

 HttpSessions, since the session will be keep in HttpSessions..

 I do really appreciate your reply..

 Eunice
 -- 
 View this message in context:
 http://www.nabble.com/Get-all-sessions-tp21367229p21367229.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Get-all-sessions-users-for-a-web-application-tp21367229p21407641.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get all sessions

2009-01-09 Thread Peter Ertl

implement javax.servlet.http.HttpSessionListener

Am 09.01.2009 um 08:07 schrieb Eunice:



Hi,

Is there any methods or functions in wicket that can give me

numbers of users/sessions that is currently active and viewing/ 
opening a

page?

I've been googling and read on the API, still cannot get any clues and
unable to work it out..

Can i get number of sessions from my application by using  
ISessionStore or


HttpSessions, since the session will be keep in HttpSessions..

I do really appreciate your reply..

Eunice
--
View this message in context: 
http://www.nabble.com/Get-all-sessions-tp21367229p21367229.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get all sessions/users for a web application

2009-01-09 Thread Jonathan Locke


Take a look at RequestLogger and the InspectorBug


Eunice wrote:
 
 Hi,
 
 Is there any methods or functions in wicket that can give me
 
 numbers of users/sessions that is currently active and viewing/opening a
 page?
 
 I've been googling and read on the API, still cannot get any clues and
 unable to work it out..
 
 Can i get number of sessions from my application by using ISessionStore or
 
 HttpSessions, since the session will be keep in HttpSessions..
 
 I do really appreciate your reply..
 
 Eunice
 

-- 
View this message in context: 
http://www.nabble.com/Get-all-sessions-users-for-a-web-application-tp21367229p21372161.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Get all sessions

2009-01-08 Thread Eunice

Hi,

Is there any methods or functions in wicket that can give me

numbers of users/sessions that is currently active and viewing/opening a
page?

I've been googling and read on the API, still cannot get any clues and
unable to work it out..

Can i get number of sessions from my application by using ISessionStore or

HttpSessions, since the session will be keep in HttpSessions..

I do really appreciate your reply..

Eunice
-- 
View this message in context: 
http://www.nabble.com/Get-all-sessions-tp21367229p21367229.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org