Re: getting the request that created the session

2013-04-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leon, On 4/29/13 12:55 PM, Leon Rosenberg wrote: However, in my case, I am developing a library that is used by others in their projects (http://moskito.anotheria.net). It comes already with 8 filters and this is a lot. If you want the effect

Re: getting the request that created the session

2013-04-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leon, On 4/27/13 5:08 PM, Leon Rosenberg wrote: is there any possibility to get the first request from a session (or any request from a session) from the HttpSessionListener. Background, I want to count sessions by top level domains. I'm doing

Re: getting the request that created the session

2013-04-29 Thread André Warnier
Leo Donahue - RDSA IT wrote: ___ From: Leon Rosenberg [rosenberg.l...@gmail.com] Subject: Re: getting the request that created the session would ServletRequestListener being notified prior to any Filter execution? According to the docs, yes. A

Re: getting the request that created the session

2013-04-29 Thread Leon Rosenberg
Hello Andre, On Mon, Apr 29, 2013 at 10:13 AM, André Warnier a...@ice-sa.com wrote: Leon, I apologise for insisting, but your initial post said : Background, I want to count sessions by top level domains... Yes, but @Runtime. Means that I want to know how many sessions from each tld are

Re: getting the request that created the session

2013-04-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leon, On 4/29/13 9:05 AM, Leon Rosenberg wrote: Hello Andre, On Mon, Apr 29, 2013 at 10:13 AM, André Warnier a...@ice-sa.com wrote: Leon, I apologise for insisting, but your initial post said : Background, I want to count sessions by

Re: getting the request that created the session

2013-04-29 Thread André Warnier
Leon Rosenberg wrote: Hello Andre, On Mon, Apr 29, 2013 at 10:13 AM, André Warnier a...@ice-sa.com wrote: Leon, I apologise for insisting, but your initial post said : Background, I want to count sessions by top level domains... Yes, but @Runtime. Means that I want to know how many

Re: getting the request that created the session

2013-04-29 Thread Leon Rosenberg
On Mon, Apr 29, 2013 at 3:49 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leon, So your initial implementation was a Filter that marked each HttpSession with the origin IP address (so you could get the TLD of the user) and

Re: getting the request that created the session

2013-04-29 Thread Howard W. Smith, Jr.
On Mon, Apr 29, 2013 at 9:54 AM, André Warnier a...@ice-sa.com wrote: - under Unix/Linux, there is a command tail -f filename, which continuously watches for any lines added to a file and displays them. It doesn't seem to be very intensive in terms of resources used. - and on the other

Re: getting the request that created the session

2013-04-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leon, On 4/29/13 10:36 AM, Leon Rosenberg wrote: On Mon, Apr 29, 2013 at 3:49 PM, Christopher Schultz ch...@christopherschultz.net wrote: Leon, So your initial implementation was a Filter that marked each HttpSession with the origin

Re: getting the request that created the session

2013-04-29 Thread Howard W. Smith, Jr.
On Mon, Apr 29, 2013 at 10:54 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Even, the requests are keepalived they look to me as if they were executed parallel. At least from the chrome timeline. But its hard to tell

Re: getting the request that created the session

2013-04-29 Thread Leon Rosenberg
Hello Howard, the sniffer thing has nothing to do with original topic, I was just wandering that some requests were having session marked as new, which actually shouldn't be the case. Or in other word, the naive understanding of session.isNew method is that it should only return true once. But it

Re: getting the request that created the session

2013-04-29 Thread Leon Rosenberg
On Mon, Apr 29, 2013 at 4:54 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leon, On 4/29/13 10:36 AM, Leon Rosenberg wrote: On Mon, Apr 29, 2013 at 3:49 PM, Christopher Schultz ch...@christopherschultz.net wrote: Leon,

Re: getting the request that created the session

2013-04-29 Thread Howard W. Smith, Jr.
Leon, On Mon, Apr 29, 2013 at 11:02 AM, Leon Rosenberg rosenberg.l...@gmail.comwrote: Hello Howard, the sniffer thing has nothing to do with original topic, I was just wandering that some requests were having session marked as new, which actually shouldn't be the case. Or in other word, the

Re: getting the request that created the session

2013-04-29 Thread Leon Rosenberg
Hello Howard et al, On Mon, Apr 29, 2013 at 5:55 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Leon, On Mon, Apr 29, 2013 at 11:02 AM, Leon Rosenberg rosenberg.l...@gmail.comwrote: Back to your question, filter is ok, too many filters are making stack traces fuller than

Re: getting the request that created the session

2013-04-29 Thread Howard W. Smith, Jr.
On Mon, Apr 29, 2013 at 12:55 PM, Leon Rosenberg rosenberg.l...@gmail.comwrote: Whether you want to have multiple filters or not is a decision based on your coding guidelines, architectural principles and what not. Since you are the only user of your filters, it's free to you to use as many

Re: getting the request that created the session

2013-04-28 Thread André Warnier
Martin Gainty wrote: org.apache.catalina.valves.RemoteIPValve getRemoteIpHeader? Martin ... Date: Sat, 27 Apr 2013 23:08:31 +0200 Subject: getting the request that created the session From: rosenberg.l...@gmail.com To: users@tomcat.apache.org Hi, is there any possibility to get the

Re: getting the request that created the session

2013-04-28 Thread Leon Rosenberg
Hello Konstantin, thank you for your reply. Background, I want to count sessions by top level domains. I'm doing it now in a combination of filter and listener. Filter for new sessions, putting a mark for already counted sessions, and listener for destroyed session. However, I would

Re: getting the request that created the session

2013-04-28 Thread Leon Rosenberg
2013/4/28 Martin Gainty mgai...@hotmail.com org.apache.catalina.valves.RemoteIPValve getRemoteIpHeader? Martin Thanks but I would like to stay container independent here. regards Leon

Re: getting the request that created the session

2013-04-28 Thread Leon Rosenberg
Answering my own email :-) On Sun, Apr 28, 2013 at 6:07 PM, Leon Rosenberg rosenberg.l...@gmail.comwrote: Hello Konstantin, thank you for your reply. Background, I want to count sessions by top level domains. I'm doing it now in a combination of filter and listener. Filter for new

RE: getting the request that created the session

2013-04-28 Thread Leo Donahue - RDSA IT
___ From: Leon Rosenberg [rosenberg.l...@gmail.com] Subject: Re: getting the request that created the session would ServletRequestListener being notified prior to any Filter execution? According to the docs, yes. A ServletRequest is defined as coming into

Re: getting the request that created the session

2013-04-27 Thread Konstantin Kolinko
2013/4/28 Leon Rosenberg rosenberg.l...@gmail.com: Hi, is there any possibility to get the first request from a session (or any request from a session) from the HttpSessionListener. No. It is not possible to get request from within a HttpSessionListener. Background, I want to count sessions

RE: getting the request that created the session

2013-04-27 Thread Martin Gainty
org.apache.catalina.valves.RemoteIPValve getRemoteIpHeader? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich