Tracking number of users online

Hi all,
I'm building a small application where I want to track and display number
of users logged in to the system. I'm developing the system using form-based authentication
on Tomcat.
My initial idea was to create a user object for every user successfully logged in and then add a user object
to a static array. I'm not sure but I guess there are better ways of tracking number of online users in the
system.
I've seen plenty of threads about sessions but failed to find something that helps me with this.
If anyone can point me in the right direction or point me to articles discussing this, it would be much
appreciated.
Cheers
Erik

Hi ,
Thank's for the posting of the code "a_sun". I haven't been able to make any posting until now (been occupied with other tasks).
I've been implementing a HttpSessionListener just for testing (at the moment this class is counting number of users). This implementation works successfully.
I still haven't been able to figure out how to pass the username from j_username FORM Authentication to my listener implementation.
How can I get my SessionListener implementation to get hold on the username of the logged in person?
When I was not able to solve this, I was thinking of an alternative solution and use the session application scope to store an array or map and then add the user there.
I would be more comfortable with, if I could solve this using any of the event Listeners from the API.
I've also been looking at HttpSessionAttributeListener and from my understanding this implementation should be triggered when an attribute is added to the session.
I tried the following
HttpSession session = req.getSession()
session.setAttribute(("test", myName);My HttpSessionAttributeListener is never triggered when I do this. Any suggestions why?
Thanks
Erik

Similar Messages

  • Upgraded Online - Can't track without a tracking number

    Hi there. I upgraded my phone online yesterday. I received a confirmation email from Verizon and was able to check on the status of my order by following the link in my email.  The link said that my new phone has shipped and that I can track my order through the Fedex website.  The problem is that the tracking number field is blank.  How can I find out when my phone will arrive?  Seems I have to sign for it, I want to make sure I'm home.

    I'm kind of frustrated about that too.  When I ordered my phone through the store, the man specifically told me that the credit card would not be charged until the phone had been shipped.  Well the date the phone was expected to ship was 12/27/2011.  The money was charged onto the card on Monday, 12/26/2011 which means my phone should have shipped yesterday like it was supposed to and be here today.  I have no received my phone and I already saw the FedEx man drive through my business area.  I'm not a very happy camper!  I never did receive an email with a tracking number though telling me the phone had been shipped.  But I'm still very angry!

  • Report the number of users who provisioned a My-site on sharepoint online?

    I have a Office 365 SharePoint instance that we have activated a large number of user accounts on, I am trying to find a way to run a report that will show me the total count of users who have logged into SharePoint and provisioned a my-site. essentially
    a list of the total number of my-sites and the name or ID of the user they belong to. We are trying to gauge adoption across the organization, a report like this would be really valuable. Any chance someone knows an easy solution for this?
    yaddaimean

    My Sites are typically located within a common location, like http://sharepoint/my/* or http://my.sharepoint.com/*
    Assuming this is the case in your tenant, I would try the
    Get-SPOSite cmdlet to get a list of sites that match a particular filter or pipe the results through a where clause. I've never done this myself and don't have a tenant to test against but I imagine it would look something like this:
    $mysites = Get-SPOSite -Limit All | where {$_.Url -Like "http://sharepoint/my/*"}
    $mysites.Count
    I can't find any information about the SPOSite object. I'm assuming it has an Owner property like the SPSite object. If it does, you should be able to get a list of users who have created a My Site:
    foreach ($mysite in $mysites) {
    $mysite.Owner
    I honestly hope this works :)
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Limiting the number of users/connections

    We currently have a very large user community (120000)who will be accessing the portal for ESS/MSS functionality.
    We would like to limit the number of users to around 20000. Any more connections should get a nice error message (rather than a standard IE no more connections or a time out message).
    We can obviously throttle the number of connections via the load balancer or via max connections in unix. Is there any method in the Portal itself, that will automatically direct the users to a seperate web page in the event of pre determined number of users/connections being reached.
    I have search high and low but can't find a solution.
    Thanks in advance
    Fenton

    Hi Tim,
    No, there is nothing like this as a standard functionality within the portal. Similar requests are regulary asked on SDN (like: restrict the number of users logging in as you ask, restrict the number of parallel logins of one user, and things like this).
    A possibility would be to implement your own login module which tries to check how many users are online. All techniques - independent if on portal or on WAS side - that try to count this have the problem that they cannot be sure who is "online" as you have no definite information if a user is online or not; one can only use more or less heuristic methods.
    Hope it helps
    Detlev

  • How do i get a tracking number for my shipment

    i sent my phone in a week ago to get a new one or they were going to repair it but i dont have a tracking number to shipment and my account is saying i dont have a shipment out how do i fix this problem

    Apple always sends a pre-paid shipping box. The tracking number is on the label. If you were not dealing with Apple, then you can contact whomever you shipped the phone to.
    These are user forums. You are not speaking to Apple here. If you shipped to Apple then you can call them directly or you can contact the shipper for help, but we can't really help you.

  • How can i get a tracking number?, How can i get a tracking number?

    Last Friday my mbp was sent out for repair by the apple store. And now I know that I can look at the repair status but it says return pending. It's getting shipped here to my house how do I get a tracking number so i know where it is?

    Call AppleCare with your case number, and ask when it will actually be sent out for shipping, and when you can get a tracking number.  This is just a user to user forum.

  • Finding Number of users using OBI in Oracle 10g

    Hi,
    Is there a way to find the number of users using OBI in OBI10g.
    Is there a single view or screen from where we can find the same??
    thanks in advn.

    Hi.
    You can go to administrator -> sessions.
    You will get the list of user logd in.
    Oracle recomends to set up Usage Tracking which gives many information.
    Link.
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/bi/biee/r1013/usage_tracking/usage_tracking.htm
    You will find lot of information on net on the same topic.
    mark if helpful/Correct
    fiaz

  • Requirement Tracking Number Not Transferring to Backend

    SRM 5.0 SP 7 - ECS
    We've configured our system to allow users to enter the tracking number withing the Basic Data section of the cart, however when the PO is created in the backend the tracking number details are not transferred.
    I assumed that this would be standard functionality but obvisouly it's not.
    Any ideas / sample code would be gratefully received.
    Keith

    Hi,
    Please check here :
    https://forums.sdn.sap.com/click.jspa?searchID=5007432&messageID=3851280
    Kind regards,
    Yann

  • Authorization object for requirement tracking number

    I want authorization object for requirement tracking number in PR ME51N.
    I have to make control over User against requirement tracking number that particular user can use this tracking number only while using ME51N.

    Check the t code su21 whether your requirement is fullfill or  not.
    If not make a authorization object with the help of abaper and assign this object to the particular user in their profile.
    Hope this is help.

  • Save tracking number when pur req created in me51n

    Hi All ,
    when i create purchasre req in me51n then it should be save respective tracking number (Tracking number in sales order number from plaf )  when pur req created .
    plz tell me which user exit will help me .
    Thanks
    regards
    Bhavesh

    Hi,
    Try EXIT_SAPLMEREQ_006
    Cheers,
    Surinder

  • I am trying to track my order but cannot find the tracking number?

    I am trying to look for my tracking number where can i find it?

    Were you sent an email or confirmation that your order has been shipped? That should have the tracking number. If there isn't one, contact the store - we are just other users here unfortunately.

  • Why does refreshing my web browser page increment the number of users connected to my Remote Front Panel?

    Hi,
    I'm using LabVIEW 2010 and a cRIO-9118 to broadcast my RT Front Panel on the web with a Web Server.
    I successfully configured the web server to be able to control my Front Panel remotely. However, I have an issue with "Refreshing" the browser.
    When I press "Enter" to search the adress of the web server, the number of users connected seems to increment by one and then tells me that "Too many users are connected to the front panel". Once this has been done, the only way to "unlock" the web server is to reboot the cRIO.
    Is there any solution to avoid this behavior?
    My current web browser is Internet Explorer 8.
    Thank you
    Mathieu Veillette, Ing Jr.
    Solved!
    Go to Solution.

    Hi Mathieu,
    Unfortunately, there currently isn't a very good solution for the problem you are facing. It seems like this is a known issue that R&D is working on. It so happens that in addition to simply refreshing, this issue also occurs if you try to access the Remote Front Panel using a second tab in a tabbed browser. One "fix" would be to invest in a higher count Remote Front Panel license. If that's not feasible, then the current recommendation would be to avoid connecting to the Remote Front Panel from a second tab or refreshing the view in your browser. Once you exceed the number of connections to the Remote Front Panel, you will have to restart the RT controller -- there isn't a way to change this default behavior. You can track any fixes by R&D by keeping note of the CAR (corrective action request) ID for this issue, which is #202702.
    Sanjay C.
    Embedded Software Product Manager| National Instruments

  • I has a shipment tracking and the tracking number is not working

    Hello, i just received a shipment notification.But i tried to track the item and it seem the tracking number is not correct.
    Shipping Address
    Yvonne McFadden
    **** NW
    Atlanta GA 30318-4703
    Carrier Name
    UPS
    Tracking Number
    <Personal Information Edited By Host>

    These are user forums. You aren't speaking to Apple here. We cannot help with your problem. Furthermore, you should never post personal information in an open forum. You have provided your address and phone number and full name to any of the millions of users who are on these forums every day.

  • QA33 Change by adding Requisitioner, purchasing group and tracking number

    Hi All
    I have a requirement for the Standard report like QA33. The requirement is that, in the output of QA33,
    The Requisitioner, Purchasing group and Tracking Number should be displayed
    Please give me suggestions to do this
    I searched for User Exits and I found QEVA0004, QEVA0005, QEVA0006, QEVA0007, QEVA0008, QEVA0009, QEVA0010, QLCO0001, QSS10001.
    In the Above which exits I can use and how to implement them
    Pls reply
    Thnx in Advance
    Regards
    P KAMAL

    GSK,
    But for stock components you don't need a Purch.Group...
    Have a look at the following user-exits:
    COZF0001: Change purchase req. for externally processed operation
    COZF0002: Change purchase req. for externally procured component
    PeteA

  • F4 help for "Tracking Number" field at Item Overview level in ME51n

    Dear Experts,
    I want add F4 help in tracking number filed (i.e. BEDNR) at item overview.
    Scenario -
    While creating material Purchase requisition, I have to give the related Service PO number in tracking number filed.
    Client requirement is, drop down list (like F4 functionality) should be there to selct PO number. No manual copy & paste option.
    Can anybody tell me any user exit OR process how I can do this.
    Thanks & Regards,
    MilindK

    This can be achieved by adding a Search help to the Data element BEDNR
    Go  to SE11
    Give data element as BEDNR
    Find is there any Search help or not.
    Example:  Do the same thing for MATNR  .. you will find some search help is associated.
    Same way, ask your abaper to create one elementary help and associate to the BEDNR
    Then  automatically F4 will be available
    Regards.
    Venkat

Maybe you are looking for

  • Messages arrive on iPhone - no notification

    My iPhone 4  is set to play a classic sound - glass - when messages arrive, but under iOS7 it doesn't make a sound. All the required options have been checked, to no avail. Message after message arrives and I hear nothing. I've tried restarting, chan

  • Shared Svcs Security to "Submit" data via Excel

    Hello all, What are the security provisions necessary for the user to use the Submit data function through SmartView in Excel? I've set up Enable write back to Excel, but that didn't seem to do the trick. I'm just looking for the bare minimum. Thanks

  • Could anyone suggest me for Month end closing!!!!!!!!!!

    What does closing subledger and other ledgers mean in month end closing. I am new , I would appreciate if anyone helps with monthend closing .I will assign you points.Thanks in advance.

  • Regarding  Business Connector Exercises

    Hi all I need some excrcises on Business Connector .. specially on BC to XI migration Strategy .... Any link apperciated.... Thankx

  • Motion menu to Dvd studio por

    Hi ! A few months ago I found tutorial how to create dvd menu in motion and then export it to dvd studio pro (i found this on kenstone.net but I cant find it today) So i create full dvd menu with loop point and drop zones in motion..how do I import a