Results 1 to 2 of 2

Thread: Session Event

  1. #1
    WilsonMartin is offline Senior Member
    Join Date
    Dec 2009
    Posts
    319
    Rep Power
    3

    Default Session Event

    Session Event Listener

    I am searching for the class that will get a spring bean inserted and which is let know when the session is created or destroyed. If anybody is having know about the session event listener then please give me some help on it. Any help would be highly appreciated.

  2. #2
    AndersonDiaz is offline Senior Member
    Join Date
    Dec 2009
    Posts
    311
    Rep Power
    3

    Default

    You may require making use of the listener as below:

    <listener>
    <listener-class> org.springframework.security.ui.session.HttpSessio nEventPublisher </ listener-class>
    </ listener>

    Try another code which is also helpful for you. I think which is resolving your problem.

    import javax.servlet.http.*;
    public class Listener implements HttpSessionBindingListener
    {
    protected int tot = 0;
    public synchronized void Boundvalue(HttpSessionBindingEvent event)
    {
    tot ++;
    }
    public synchronized void UnBoundvalue(HttpSessionBindingEvent event)
    {
    tot --;
    }
    public int getNumSessions()
    {
    return total;
    }
    }

Similar Threads

  1. Using Event Viewer on Vista
    By BakerJones in forum Windows Vista
    Replies: 0
    Last Post: 01-23-2010, 01:42 PM
  2. Event ID 50, 26, or 57 is logged when you use HP SecurePath
    By Kenneth Rasmussen in forum Windows XP
    Replies: 0
    Last Post: 10-12-2009, 10:54 AM
  3. Error with an event id 1543
    By Seerock in forum Everything Else
    Replies: 1
    Last Post: 05-06-2009, 10:42 AM
  4. Found these 2 in security event log
    By alfie57 in forum Windows XP
    Replies: 0
    Last Post: 04-28-2009, 10:59 AM
  5. Event subscriptions
    By owinsh.jafonh in forum Windows Vista
    Replies: 0
    Last Post: 06-25-2008, 02:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48