How to send notification when too many users connected

Hi all !
I need to send a notification from my web container when there are over 100 users connected, does anybody know how to do it without using vendor's Api but just JEE Api ?
thanks
Luca

mark1970__mtb wrote:
Hello,
If you create an object that implements javax.servlet.http.HttpSessionBindingListener,
you can define valueBound and valueUnbound methods. I usually call it a User class. Also you
can have a static int, counter, in this class, which is accessible by all
classes (make it public or create increment, decrement and getValue methods). In
the valueBound method, get it to increment the static int, in valueUnbound call
decrement).
Now in the JSP pages, at the top, check if the User object exists in the Session
scope. If it doesn't, create one and add it to the Session. This will
automatically call the valueBound on that object and increment the counter. When
a persons session expires, or the User object is removed from the session, the
valueUnbound is automatically called and the counter decrements.
I usually make this check a seperate JSP page which I include on all the other
pages. Then all you need to do is get the User.counter value at any time to see
how many people are on the system.
Hope it helps
Mark
Don't link spam, please.

Similar Messages

  • File sharing reports too many users connected

    SPECS: Mac Mini Core 2 Duo 2 GHz, 2G RAM, Mac OS X 10.6.4. Other users in office also running similar hardware and Mac OS X 10.6.4.
    CLARIFICATION: This Mini is used as a file server in a small law office (4 other workstations). It is running Mac OS X Client, not Server. I refer to the machine as "the server" but wanted to be clear the operating system is the same on all stations.
    HISTORY & CONFIG: This system was setup in November 2009. It provides simple file sharing storage for a 4-user law office and runs Retrospect (version 8.1.626) to do some local and network backup operations. At the time it was setup, it was also running Now Up-to-Date Server but that program is no longer supported, and it has been removed from the computer (May 31, 2010). In late March 2010, I installed Daylite Server as a replacement for Now Up-to-Date. All stations are running Mac OS X 10.6.4, and have always been at the most recent Mac OS X 10.6.x revision within a few days of the release of a major update.
    PROBLEM: Occasionally, clients cannot connect to the server (and I don't have the exact error message -- next time it happens, someone is supposed to get a screenshot). When this happens, if you go to the server and open the file sharing control panel, then click "options", you will see an impossible number of people are connected. The first time this happened was on April 28, 2010, when it reported 41 users were connected. Mac OS X Client has an upper limit of 10 simultaneous user connections, so you can see this number is not possible. Additionally, these are "phantom" logins because you can execute this command in Terminal to see the IP addresses of any connected users:
    netstat -n | grep '.548'
    And when I do this, unless there was someone who had logged in prior to the "phantom explosion", it never shows any connections. On two occasions, I've actually been in the office late one night to do maintenance, checked the server before I left and found 0 connected users, then got a call in the morning that the first person who attempted to connect was blocked and the server showed 10 or more users connected.
    I do not believe this is some kind of security breach. The server is not Internet-accessible, and as is shown by the netstat command, there really isn't anyone logged in anyway. I consulted with Marketcircle (makers of Daylite) because it seemed very coincidental that I installed their software just prior to the beginning of this problem, but they claim Daylite does not make any use of the Mac file sharing system. But, again, since these aren't real users, I suppose it's possible a bug in their software is somehow upping the Mac's connected user count erroneously?
    Restarting the server always fixes the problem -- until it happens again. This Mac Mini is a pretty simple station -- just runs Daylite Server and Retrospect Single Server, plus the basic file sharing. Anyone have any ideas why this keeps happening?

    I would say odds are likely this is correct. On at least two occasions I can think of where I verified everything was okay and later discovered a "phantom explosion", a Retrospect backup would have run. Our backups typically run at 3 AM. Is this a known issue with Retrospect? If so... not sure why it doesn't happen all the time. And in my own office I have a pretty similar setup on an entirely different computer that multiple people connect to, and it never does this. Color me confused.

  • How to send e-mail to many user one time

    I would like to send e-mail BCC to hundred people using one e-mail only
    How to I set the code to BCC? I don't want to make a for loop to send the e-mail hundred times.
    I know the following code can set the mail BCC to ohter person
    msg.setRecipient(Message.RecipientType.BCC,email);
    but if I want to BCC to hundred people, how should I revise the code ?

    javax.mail
    Class Message
    public void addRecipient(Message.RecipientType type, Address address)
         throws MessagingException

  • 13" MBP internet connection gets disconnected when too many wifi connection's available

    I just notice this a couple of nights ago... Im using a 13" MBP I bought last June 9.  At night, when there are plenty of wifi connections being broadcast in our condominium bldg, my internet connection is very slow.  Also, the signal strength is reduced to half.  Sometimes I even get disconnected and the MBP wifi has difficulty reconnecting my wifi.  But when morning comes, signal strength is at full.  I ask my friend who also connects to the same wifi if ever he has difficulty connecting at night, but unfortunately its just me.  He is using windows, by the way.  I'm wondering if this is a known issue and have a fix already? or it's just me?
    Please help... Thanks.

    I use my 15" MBP this way with no problems at all and I have Mountain Lion installed.  So we need to look elsewhere for the problem, it's not possible to link this to the OS without further investigation (but it could be a system setting).
    I  know that other folks are complaining that Mountain Lion broke WIFI.  But if that were the case we would all have problems.  I, along with many others, have no problems at all.  I think there is something else going on.
    What is the signal strength with the lid open vs. closed?
    When you say that Safari does not work, are you getting a timeout message or a message like "You are not connected to the Internet."?  Of course this is the English version of the message, yours will be different.

  • Trying to download a movie on a laptop.  tellls me i can't play it on that computer because my apple account has too many users.  how do i see who is listed as a user so that i can delete one if it's not needed

    trying to download a movie on a laptop.  tellls me i can't play it on that computer because my apple account has too many users.  how do i see who is listed as a user so that i can delete one if it's not needed
    please help
    [email protected]

    The list you saw that shows what drivers are available from Apple Software Update is based on what drivers are supplied by the vendor to Apple. So it would appear that HP has not provided Apple with a scanner driver for 10.9 (known as an ICA driver), or provided an update if one was available for a previous version of OS X, so that you can scan from Image Capture.
    I checked the HP web site for your model and they don't show any scanner driver or scanning software. If there was a scanner driver, you would be able to use Vuescan.
    As for the Scan button not working, the following is documented by HP
    Scanning to the computer from the printer control panel is not available when you scan with Preview, Image Capture, or Printer browser methods. You must use HP Scan software to scan from the printer.
    But there does not appear to be any version of HP Scan software available for 10.9. So unless someone else has some workaround, it seems that you won't be able to scan with this model of HP.

  • How to send notifications to different user groups based on payload value

    Hi Gurus,
    I have a scenario in BPM where i have to send notifications to different user groups based on the payload value.
    ex:
    Payload sample:
    <employees>
    <emp1>
    <state>TX</state>
    </emp1>
    <emp2>
    <state>AZ</state>
    </emp2>
    </employees>
    Requirement: I have to send notification through Humantask to users of TX and AZ as mentioned in payload.
    Can you please help me out in achieving this in BPM?
    Thanks,
    Raju
    Edited by: user0808 on Mar 1, 2013 12:58 PM
    Edited by: user080811 on Mar 4, 2013 11:06 AM
    Edited by: user080811 on Mar 4, 2013 11:07 AM

    Hi Daniel,
    thanks a lot for your quick response.
    I went through your blog and tried implementing the same.
    But in my case i have to send parallel notifications to both the states.
    Please correct me if i am wrong, using if conditions in rules is allowing me to send to only one state.
    I also tried the following approach
    1) setting the organization units in bpm workspace
    2) passing values using human task parametric roles
    3) and looping the subprocess that has the humantask for the count of states.
    I am able to loop the subprocess but i am not able to change the parametric role value for the next iteration of the subprocess.
    Can you please help me in resolving this?
    thanks,
    Raju

  • SMTP Send Mail - too many authenticated connection...

    Using Outlook on a MAC, and within this last week I have started to get this error when sending mail. I have read all the forum posts and help documents on this issue and ensured that my settings are as described and yet I am still having this problem.
    Should I be switching to IMAP to avoid this problem, and if so how do I do that without losing all my SMTP downloaded email?
    Thanks for any insight - it is causing me real issues now as I'm job hunting and can't reply to job emails!!!!

    Yes same problem for me. In the last three days, or so, I will get the random "too many authenticated connections" message. I have just phoned BT twice this afternoon and had great trouble understanding both Indian guys. One suggested he's fixed it by adjusting things at BT to accept "S Client Mail", whatever that means! That however didn't fix it. The second suggested I needed to reset password (easy option that one), until I pointed out that I am having no trouble with password use on the BT webmail page or through my phone. He then said I'd have to reload Outlook to solve the problem. Yeah right, like I'm gonna loose all my emails, settings and calendar to satisfy his theory of "if it doesn't work then reload it". There is clearly a server problem somewhere and OH, how I would love to speak to someone, (anyone), at BT who actually knows what they are talking about from a network/server angle. Anyone worth their salary in networks could trace my activity online and find out what was going on and why it was failing.
    Setting POP3 and all others checked by BT as being correct.

  • Livecache issue LC10 BY0 Too many users (task limit)

    Hi,
    we have 2 application servers with one CI/DB, maxusertasks is 500
    we figured out a livecache pb, with the following error messages
    (db analyzer)
    LC10 BY0 > Too many users (task limit)
    User task 281 blocked in stae 'Prep-End(230)' since 902s, DB procedure : SAPAPO_CLEANUP application pid
    User task 281 blocked in stae 'Prep-End(230)' since 902s, DB procedure : SIM_SIMSESSION_CONTROL, pid 31685
    ...User task 281 blocked in stae 'Prep-End(230)' since 902s, DB procedure : APS_ACT_SCHEDULE, pid 3168
    before  we had the warining:  UTK5 is running 1804s, CPU 50% and CPU 100% (LC)
    we have checked knldiag/knldiagerr files and we are unable to find what is the root cause of the problem?
    How could we analyse this issue and find the treatment which triggers this issue?
    (trace: (SAPAPO/OM01)
    Thanks and Best regards,
    any help would be rewarded.
    Best regards,
    John
    Edited by: DCWE COREADMIN on Feb 11, 2011 6:54 PM

    Hello John,
    We need additional information about the liveCache version, OS of the liveCache server; more details about situation when the issue occurred. Run "x_cons <SID> sh all 10 10 > task_info.txt" when the issue occurred to collect more information.
    Check if the savepoint task is active - "x_cons <SID> show active".
    Is the issue occurred during high loading to te liveCache?
    Please review the SAP note 1391322 where the SPORADIC standstill in high load situation is also described, this issue is already fixed in the new liveCache releases.
    This situation occured sporadically. It will be helpful to login to your system for further analysis of the reported issue to get clear if your system run into this known problem because the savepoint was hanging, because of that you had  big amount of the user tasks which were hours in the state 'Prep-End' until the liveCache restart.
    < It could be the reason for "livecache issue LC10 BY0 > Too many users (task limit)", you reached the MAXUSERTASKS limit,
      the increasing of the liveCache parameter will not help you to solve the issue. >
    You checked/saw the Database Analyzer log :
    "User task 281 blocked in stae 'Prep-End(230)' since 902s, DB procedure : SAPAPO_CLEANUP application pid
    User task 281 blocked in stae 'Prep-End(230)' since 902s, DB procedure : SIM_SIMSESSION_CONTROL, pid 31685
    ...User task 281 blocked in stae 'Prep-End(230)' since 902s, DB procedure : APS_ACT_SCHEDULE, pid 3168
    You are SAP customer. As already recommended by Ivan, create the SAP message to the component "BC-DB-LVC" and get SAP support.
    Thank you and best regards, Natalia Khlopina

  • HOW TO SEND NOTIFICATION THRO. MAIL

    I have installed workflow 2.6.4 on oracle 10.2.
    1) How to send notification thro mail?
    2) what kind of setting I need to do?
    3) Do I need to include all users email address in Microsoft Outlook contact or in WF_LOCAL_ROLES?
    Regards,
    Jitendra

    The Workflow Agent Listener and Workflow Notification Mailer components should be up and running in order for e-mails to be received from Oracle Workflow. These components are managed using batch files located on $ORACLE_HOME/wf/admin. You may verify the status and view the log files of these components using Workflow Manager UI accessible from Enterprise Manager.
    Thanks

  • ORA-30678: too many open connections with UTL_MAIL.send

    I'm have just recently started getting the ORA-30678: too many open connections error while calling the UTL_MAIL.send procedure to send emails via a pl/sql package. The call is made within a loop and there can be a significant number of calls made to this procedure. In fact, I received this error over 1400 times within the last three days. This was previously working until I made a change to the processing which now results in a larger number of emails/calls to this procedure. I don't see any documentation on how (or if) I can close the connection with UTL_MAIL.
    I'm using Oracle 11g. Any insight would be much appreciated.
    Thanks,
    Teri

    Looks like a bug possibly, check out this MOS Note:
    Ora-30678: Too Many Open Connections From UTL_MAIL [ID 788442.1]
    The bug note says it was fixed in 11.2. Not sure which version of 11 you are running.
    Edited by: Centinul on Apr 26, 2010 2:07 PM

  • How do you uninstall lion; too many problems

    how do you uninstall lion; too many problems

    Downgrade Lion to Snow Leopard
    1.  Boot from your Snow Leopard Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Quit DU and return to the installer. Install Snow Leopard.
    This will erase the whole drive so be sure to backup your files if you don't have a backup already. If you have performed a TM backup using Lion be aware that you cannot restore from that backup in Snow Leopard (see below.) I suggest you make a separate backup using Carbon Copy Cloner 3.4.1.
    If you have Snow Leopard Time Machine backups, do a full system restore per #14 in Time Machine - Frequently Asked Questions.  If you have subsequent backups from Lion, you can restore newer items selectively, via the "Star Wars" display, per #15 there, but be careful; some Snow Leopard apps may not work with the Lion files.

  • How to send an  email to external user (offline form) from se38

    Hi all
    how to send an  email to external user (offline form) from se38 and upload the same from recipent.
        we have sent mail using scripts and smartforms but couldnt do here. It will be helpful if you can give us any sample code
    regards
    mohammed

    Hi,
    Have a look at this thread [Re: Sending PDF forms (created using SFP) as Email Attachment]  i explain all the solution with a sample code .
    Hope it's help you
    regards

  • How to send external mails to the user

    Dears,
    How to send external mails to the user who creates the sales document (Quotation)
    Can you please suggest what modification required in the FM
    Thanks,
    pinky

    You can have a partner function like 'Created by' and use an exit to populate the User ID to this partner function(dont have the system right now but i think this can be done with standard partner detr. procedure also)
    Then, create an Output type for that Partner function with transmission medium as 'External Send'. You can use the standard SAP program to trigger the email. To send the actual email after the output is trigerred, the link connection has to be set up be BASIS but if you want to check, then goto SOST and see if the email got trigerred or not.

  • Can't connect to Server - "too many users" after 10.8 install

    After upgrading my Retina MBP, my Air, and my mid-2011 iMac (which acts as a file server) to Mountain Lion, I find I cannot consistently connect to the iMac server. Everything is done over an Airport Extreme wifi network, and there were no issues in 10.7. It usually happens 24-48 hours after a retstart, and a restart will fix it though that is inconvenient. The error given on the machine trying to connect in is "too many users" on the host (the iMac server). Any thoughts?

    Me too... similar setup. MBPr, MBP and an old MB with a Mini/drobo as a file server. A reboot fixes it, but that's a pain if I'm not home.
    I have noticed that I can usually share the screen even if I can't mount a drive, which helps, but still just another hurtle.

  • How to send notifications to multiple person with same role and with result

    How to send notifications to multiple people with resultout as approve/reject?
    We are looping the notification by attaching a cursor query to find the different emp nos to send for approval.
    I cannot associate a role because these emp nos are sub-set of a role which I have created and i am getting thru the cursor query.
    For FYI notification there is no problem, but for approval notification, I am not unable to send approval notifications to all the people.It stops at the first person in the loop.Pls suggest alternate way. Thanks in advance.

    Manju,
    I would use the cursor to populate the API for creating an ad-hoc role within the workflow process as a function. Then set your notification performer as the ad-hoc role.
    Here is an example function:
    create or replace procedure sample_emp_fill(itemtype in varchar2,
    itemkey in varchar2,
    actid in number,
    funcmode in varchar2,
    resultout in out varchar2) as
    cursor get_name is
    select ename from scott.emp where mgr = 7839 and empno != 7566;
    role_name varchar2(50);
    names varchar2(500);
    begin
    if (funcmode = 'RUN') then
    role_name := 'ad_hoc_role_'|| itemkey;
    for row in get_name loop
    names := names || row.ename || ' ';
    end loop;
    WF_DIRECTORY.CreateAdHocRole( role_name=>role_name,
    role_display_name=>role_name,
    language=>'AMERICAN',
    territory=>'AMERICA',
    role_description=>role_name,
    notification_preference=>'QUERY',
    role_users=>names,
    email_address=>' ',
    fax=>'',
    status=>'ACTIVE',
    expiration_date=>'');
    resultout := wf_engine.eng_completed||':'||wf_engine.eng_null;
    return;
    end if;
    end;

Maybe you are looking for

  • Most of my music left un-downloaded after sync

    I have an iPhone 4S 64GB using ios7.0.2.  I am syncing with my old trusty MacBook 10.6.8 running iTunes 11.1.1 The problem is two-fold.  I connect the iPhone to the MacBook via USB and the settings are ticked to update via WiFi, I start the sync and

  • Photoshop CS5 - black/cyan bars are appearing in images?

    This has happened to two files I was editing, and every time I make a new file it does this as well. I'd have the canvas, and there would be bars appearing on it - black if the background is white, and cyan if it's a tan color. I'm sure there's other

  • Lock out from iPhone 5

    I have forgotten my password for my iPhone 5 and I'm on holidays so i can't connect it to my desktop. How to i get into my phone?

  • Can't get the proxy authentication work over SSL from weblogic 8.1

    I'm trying to make a HTTPS connection through proxy server, and I get a 407 proxy authentication exception. I can succesfully connect from a stand-alone program, but I can't do it from a web application deployed on weblogic 8.1. I implemented weblogi

  • How do I encrypt pdf form on Submit by email

    Hi, Is there anyway to encrypt the pdf form after the user clicks on the "Submit by Email" button? I have Acrobat 9.