Detecting when users connect/disconnect

I have a client application that communicates via EJB and also
subscribes to JMS topics. I need the server to programatically
detect when a client connects and to JMS and when they go away.
We want to keep course grained stats on how long someone is connected.
The WebLogic console shows when a user is connected and it their
name goes away when they disconnect - I don't want
to pay someone to stare at the console window with a stop watch
and time connections.
How can I programmatically detect when clients connects and
disconnects?

That may be a good idea but what are we supposed to do in the meantime.
any work arounds etc??
Gary Keim wrote:
I think that in general the BEA people watching these newsgroups are
developers and developers don't have the authority to issue product-related
announcements. The best way for you to be heard is via a sales
representative.
Now, the way I think this should be done in the future is via JMX. The JMS
service will have a public RuntimeMBean that you could access and to which
you would add yourself as a listener. Then it's standard JavaBean property
change notifications.
Gary
"Larry Presswood" <[email protected]> wrote in message
news:[email protected]..
Yes and no-one from BEA is picking this issue up either.
Mark Steele wrote:
This is the only message I've seen about this.
Odd. I would think that more people would want to know
stats on connections...(?)
Larry Presswood <[email protected]> wrote:
This is a big issue did you get any replys from the BEA
folks or anyone
else.
Used to you could use workspaces or events but those have
been depracated
in
6.0
Mark Steele wrote:
I have a client application that communicates via EJBand also
subscribes to JMS topics. I need the server to programatically
detect when a client connects and to JMS and when theygo away.
We want to keep course grained stats on how long someoneis connected.
The WebLogic console shows when a user is connectedand it their
name goes away when they disconnect - I don't want
to pay someone to stare at the console window with astop watch
and time connections.
How can I programmatically detect when clients connectsand
disconnects?

Similar Messages

  • Detect when User Calc Script is Finished

    We are looking for a way to detect when a user has finished a calc script before defragment. We have a windows batch file which defrags multiple times during the day. Before we defrag we want to make sure all users are done running calc scripts. After this we want our defrag to begin. Likewise if the system is busy we want the defrag to wait until the user is done.

    A simple way is to unload the application UNLOADAPP "SAMPLE"; or ALTER SYSTEM UNLOAD APPLICATION SAMPLE; in Maxl. If a calc is running or the database is busy in any way, then the unload will fail with an error message telling you who is still performing an action on the database. If the action is succesful, then the application is quiet. You then disable connections to the application immediately to prevent anyone logging in, then do your defragment. Unloading the application at the end will automatically re-enable connections.

  • Cannot send email via ActiveSync when user connect from Internet (Exchange 2010 SP3 RU5)

    Hi All. 
    This is the first time I encounter this kind of issue, whenever user connect from the internet they cannot send email from their Phone or Windows Mail App, but they can retrieve email 
    But when they connect from Internal Network they can send email. I already test ActiveSync from internet using www.testexchangeconnectivity.com and it pass all tests. 
    I also check the Firewall and all the necessary ports already opened (we even open all ports) , the default TTL on the firewall 3600 second. 
    From what I read ActiveSync use some kind of HTTP POST or in MS terminology "PING" command, but still have no idea what kind of configuration that should be made to the Firewall so it can pass this "PING" command. Because from what I
    see in Android Logcat the problem always related to this PING command 
    10-07 08:12:38.714 I/Exchange(31971): Interrupt with reason 1
    10-07 08:12:38.714 I/Exchange(31971): Ping task ending with status: -1
    10-07 08:12:38.904 D/Exchange(31971): created outputstream
    10-07 08:12:39.204 W/Exchange(31971): IOException sending mail
    10-07 08:12:39.204 E/Exchange(31971): Generic error for operation SendMail: status 200, result -100
    10-07 08:12:39.204 W/Exchange(31971): Aborting outbox sync for error -99
    10-07 08:12:39.274 I/Exchange(31971): Ping task starting for 3
    10-07 08:12:39.304 D/SyncManager(644): failed sync operation [email protected] u0 (com.android.exchange), com.android.email.provider, USER, latestRunTime 71219435, EXPEDITED, reason: 10040, SyncResult: stats [ numIoExceptions: 1]
    10-07 08:12:39.304 D/SyncManager(644): not retrying sync operation because SYNC_EXTRAS_DO_NOT_RETRY was specified [email protected]  u0 (com.android.exchange), com.android.email.provider, USER, latestRunTime 71220078, EXPEDITED, reason: 10040

    Hi ronaldosy,
    How about the work flow of Outlook or OWA on PC internally/externally?
    If only phone has this issue, I suggest ask ActiveSync Forum for help so that you can get more professional suggestions. For your convenience:
    http://social.technet.microsoft.com/Forums/exchange/en-US/home?forum=exchangesvrmobility
    Best Regards,
    Allen Wang

  • Detect when user stops scrolling

    I have an application where a user scrolls using scrolldrags, but this always ends up in the user clicking where they stopped scrolling, so I need to stop this. My idea was that I have a variable "changeable" on and off depending on whether the user is scrolling or not, so when they stop scrolling, the objects become changeable again, how do I detect when the user stops scrolling with scrolldrag using the ScrollPane object?

    add a mouseup listener when scrolling begins and apply a stopPropagation() or stopImmediatePropagation() method to that event and remove the listener in the mouseup listener function .

  • Detecting when user closes browser or moves to another site

    How can detect when a user has closed the browser or moved to another website

    No, it doesn't automatically fire any request to the server or so. Best what you can do at the server side is intercepting the session destroy using HttpSessionListener. You can also let Javascript fire a (ajaxical) request to the server side notifying that the onunload/onbeforeunload has occurred.
    Difference between onunload and onbeforeunload is by the way that the onbeforeunload can still prevent the page actually being left using a warning message like "are you sure to leave page?" and that it is NOT supported by w3 specification and thus not guaranteed to be supported in all webbrowsers (as far under each Opera -which very strictly follows the standards- doesn't support it).
    Edited by: BalusC on 25-aug-2009 11:04

  • Detecting when user clicks title bar of TitleWindow

    I am just beginning to dabble in Flex and am loving it so
    far. I can't seem to figure out how to detect when a user clicks
    the title bar of a TitleWindow. Could someone please give an
    example of the correct way to detect this? How do you tell the
    application to dispatch an event only when the title bar is clicked
    and not the contents of the TitleWindow.
    Thanks!
    Josh

    Subclass TitleBar and add a mouseDown event handler to the
    protected titleBar property (of type UIComponent). That event
    handler will execute when a person clicks down in the header.
    Stephen

  • No tap/app sounds when bluetooth connects/disconnects

    I've been chasing this for some time now.  What happens is very similar to the posts others shared where the phone is not muted but the apps, notifications, ringer, etc behave silently.  For me, I usually notice the phone vibrating instead of ringing or chiming for a message.  When I unlock, there are no tap sounds as I enter the code and the keyboard is silent.
    Today I noticed the phone went silent as I started my car.  The bluetooth connected to the handsfree in the car and I lost sounds.  I killed the bluetooth on the phone and sounds were restored.  Something is wrong because it also happens when I connect my Jawbone headset, too.  Interestingly, when I use the in-car or headset bluetooth to make a call it operates properly.
    Running 4S 6.1.1

    @SoCalJake
    I've had this problem as well. I bought a Bluetooth keyboard at Christmas and have not had any sounds from my phone other than it vibrating since. I don't know if Apple is aware of the issue or not but disabling the Bluetooth feature when I do not need it seems to have resolved it.

  • Handling user connection disconnect & reconnect in stream

    Hi all,
    I have a problem where I'm streaming a video via RMTP from akamai for a video serving site and an issue has come up during QA where a user starts a video stream and then disconnects their internet connection, which causes the video player to go into the buffer state.  The problem occurs when they reconnect their internet connection and we'd like to pick up the stream again.  Does anyone have any best practices/examples for how to handle this scenario?
    Thanks,
    Jason

    I am guessing you are supporting a school?
    Try these simple steps.
    1:  Make sure that all systems has a sleep timer greater than the class period.  For example, the default 15 minutes can easily be consumed by a teacher's presentation.  Then the system is asleep and you need to rely on AFP reconnect, which doesn't always work.  You can push this out with ARD/JAMF with
    systemsetup -setsleep 45
    Or some other appropriate value.  This ensures that a systems is not sleeping during a student session.
    2:  Try increasing the tickle time of AFP.  This can be done with:
    serveradmin settings afp:tickleTime=60
    The default is 30 and if you are doing a lot of wireless to the devices, this adjustment may improve your performance by reducing the chatter between the client and the server. 
    Hope this helps

  • Edge 540 model : when I connect/disconnect AC power cord, screen goes dark

    For the past few days, everytime I connect the power cord, the screen goes dark for a second. The same thing happens when I disconnect the power cord. Can someone help me find out what is wrong with it? Is it a hardware issue or is it just a momentary glitch (It just started happening yesterday)?
    My laptop is brand new so I can use the warranty if i have to.
    OS: Win 8
    Thank you.

    this is a normal behaviour it happens all the time. It is your refresh rate changing between different power setting. Set the screen refresh rate at 60 hz for both battery and with ac adapter connected this should prevent the momentary blanking of the lcd.
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • Detect when user scrolls text

    Hi guys.
    I have a box wit scrollable text, and i need to know when the user starts to use the scroll bar. any idea in how to detect this?

    Hi,
    You can use 'scrollTop' to detect if the text has been scrolled. A scrolltop of 0 means it has not been scrolled.
    Try the following behavior attached to the scrolling text sprite.
    property pScrollStart
    on beginSprite me
      (sprite(me.spriteNum).member).scrollTop = 0
      pScrollStart = 0
    end
    on exitFrame me
      if pScrollStart = 0 then
        if (sprite(me.spriteNum).member).scrollTop then pScrollStart = 1
      end if
    end
    on mouseup me
      put pScrollStart
    end
    I have 'pScrollStart' as a property variable that changes to 1 as soon as the text member is scrolled down.I added the mouseUp part so you could click the sprite and see the variable value in the Message Window.
    Dean
    Director Lecturer / Consultant / Director Enthusiast
    http://www.deansdirectortutorials.com/
    http://www.multimediacreative.com.au

  • Correct way to cleanup lccs state for Connect/Disconnect functionality

    I am trying to implement connect/disconnect functionality but I got some errors - when user connects to another room after disconnect different objects(for example AudioPublisher) may end up in incorrect state. Currently I perform following sequence of actions on disconnect: call stop method on  AudioPublisher, call close method on AudioPublisher, and then call close method on ConnectionSession. When I reconnect again AudioPublisher object in wrong states and throws different exceptions("Stream not found", "Stream already exists"). Can you recommend some approach to avoid these errors?
    Best Regards, Aleksey

    Hi Aleksey,
    Seems like using multiple connectsession (connecting to different rooms) is messing your app. We handle most of the clean up in the close & stop methods for AudioPublisher. If you are still facing issues can you share your code.
    Thanks
    Arun

  • Tracking VPN user connectivity

    Is there an easy way on the ASA to track user connectivity statistics? I have found that I can get a syslog record when a user connects / disconnects but am looking for an elegant way to track a bit more. On the old Concentrator there used to be a log entry when a user disconnected that gave things like time connected and the amount of data transferred. I would like to figure out a way to duplicate this on the ASA and maybe even add the IP addressed they received from the DHCP pool? I though this might be part of accounting but that appears to be more for radius integration than keeping track of user usage.
    Thoughts or suggestions on how to accomplish this?
    Brent

    Cisco Security Manager product collects and stores such information (along with a lot of other things). It's a pretty hefty product though and probably more than you want to spend for doing just that one thing.
    You can use a general purpose SNMP management tool like PRTG to grab all the data as well. I know it has out of the box sensors for Cisco ASA VPN connections and users. I'm not sure if it also collects the amount of data transferred.

  • I have a 1TB WD external hard disk, which suddenly cannot be detected in my system. When i connect the hardisk to the macbook, the disk appears and immediately disconnects with the message "Disk not properly ejected". Any advice ?

    I have a 1TB WD external hard disk, which suddenly cannot be detected in my system. When i connect the hardisk to the macbook, the disk appears and immediately disconnects with the message "Disk not properly ejected". Any advice ?

    verify on another Mac if the same
    WD is having issues with mavericks as you can see on the WD forum, did you install any WD software (never do that) when you connected the drive for the first time?
    possible issue is a dead SATA bridge card or the new WD firmware w/ Mavericks.
    SATA card issue
    Your dead external hard drive is likely fine! Great hope for your 'faulty' external HD
    http://community.wd.com/t5/External-Drives-for-Mac/bd-p/passport_mac
    verify on another Mac if all possible

  • Another user of your computer is currently using this connection. This user must disconnect before you can log on.

    Hello
    I have a single computer that is going to be shared between 5 people. In an effort to save time. I wanted the users to have a single shared LOCAL login to the computer.
    Then each user could pull up an RDS session through RDWEB on our 2012 r2 RDS farm.
    However, when I attempt to log in more than one user through RDWEB I receive:
    Another user of your computer is currently using this connection. This user must disconnect before you can log on.
    I have done some research on this, and followed this advice, and did the following steps on all my RDS session host and broker servers
    Enable Multiple RDP Sessions
       -  Log into the server using Remote Desktop.
       - Open the start screen (press the Windows key) and type gpedit.msc and open it
       - Go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections.
       - Set Restrict Remote Desktop Services user to a single Remote Desktop Services session to Disabled.
       - Double click Limit number of connections and set the RD Maximum Connections allowed to 999999.
    However, it did not solve the problem. Anyone have suggestions?

    Hi Michael,
    In addition you can try below registry setting for multiple remote session.
    HKEY_Local_Machine\SYSTEM\CurrentControlSet\Control\Terminal Server
    fSingleSessionPerUser     REG_DWORD     0x00000000
    Note: By default the registry value is set to 1, but you need to change to 0.
    Also if you are making connection through gateway then recheck whether the setting is enabled on gateway side for multiple session.
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How do I get Mac Pro with Lion Server to restart at a set time when users are connected?

    I have recently configured a Mac Pro with Lion Server, and have set it to restart automatically every morning at 3am. When I arrive in the morning, I notice that it has not rebooted, usually because it states there are users connected. Is there a way to automatically disconnect users so that the machine will reboot.  No one is ACTIVELY connected at this time of the morning, but may still be logged in somewhere. I did see where I can log out users after a set period of time when using Workgroup Manager to manage a computer or computer group, but I don't use the server to manage all of the computers that have users log in.
    Thanks!

    Well, it doesn't necessarily have to be each and every night, but it was for the sole purpose of preventing sluggishness. We had it set up before, as Snow Leopard Server and it would restart every night. It would occasionally be slow and need rebooting, however a manual reboot was not possible by most people in the store as they did not have credentials to screen share and restart it - which would result in holding down the power button to shut it down.
    The server is used for the sole purpose of logging in about 50 users just so they can customize their experience, as well as saving items to their own home folders.  The store is closed during the night, and there is no reason anyone would be accessing it during the night.

Maybe you are looking for

  • How to define a parallel, deterministic pl/sql function in OWB 11.2?

    Hi, at my customer site, we are starting with the new development work after upgrading from OWB 10.2 to 11.2 and we can't find the configuration parameter to define a parallel and deterministic function within a new package. The "old" function dialog

  • Can/Should we use Party in SOAP based B2B scenarious

    Hi All, We are exposing some SAP standard proxy content via PI. We plan to use a Sender SOAP adapter for the same. We are basically interacting with Suppliers. My question are about the configuration best practices. 1) Do we create one business servi

  • Can We Do???

    Hi All, Can we write Views, functions and Stored Procedure for SBO databases in SQL Server Mangement Studio and access it from SAP B1. Thanks And Regard, Vivek

  • Cisco 9951 and cucme registration problem

    Hi Everybody I am trying to register a cisco 9951 phone to a cucme. The phone was previosly connected and registered to a cucm 9.1, now it must be registered in the cucme. The problem is that the status messages of the phone show that the phone has 9

  • Cannot get white-balance correction to work

    I have some diving video that needs white balance correction.  I am trying out the PE11 trial. I've tried smart-fix as well as the 3-way correction tool.  I've used the dropper to select something that should be white, but it makes little to no diffe