Show message or alert when server closed

hi,
i am developing a simple rmi system.i have 2 pc ,one as a server and one as a client.So,how can the client know that the server was closed (example ,give a message or show a alert at client pc said that server was closed)?
any hits are welcome.Thanks in advanced.

Do you mean when the server stops listening at the port, or when the server closes his network connection to a specific client?
If the former, there is no way except what bschauwejava said.
If the latter, there is no way at all as it isn't what really happens. What really happens is that the client discards the connection when it has been idle for 15 seconds, then the server closes its end. So all in all there isn't much point. And you can't discover the client close either.
You need to stop thinking about connections with RMI altogether. They are carefully abstracted away and you can't tell whether there is one right now or not; in any case it doesn't matter as a connection will be attempted as soon as necessary (and no sooner).
What you do have with RMI is a remote interface on which you can try to call methods. As bschauwejava said, just try it and see. If the server isn't there you'll get a RemoteException of one kind or another.

Similar Messages

  • It isnt show message in alert AFTTER RELEASE UPGRADE

    Hello,
    it isnt show custom message in alert.
    The realease Have Been Recently upgraded from 12.0.3 to version 12.1.2.
    The alert is shown from the custom.pll code.

    950427 wrote:
    Hello,
    it isnt show custom message in alert.
    The realease Have Been Recently upgraded from 12.0.3 to version 12.1.2.
    The alert is shown from the custom.pll code.Have you restored/copied all your customizations in CUSTOM.pll after the upgrade?
    Step 2: Prepare an upgrade plan for customizations (conditional)
    http://docs.oracle.com/cd/E18727_01/doc.121/e16342/T527285T527359.htm#d0e2207
    Step 5: Migrate the CUSTOM library (conditional)
    http://docs.oracle.com/cd/E18727_01/doc.121/e16342/T527285T527429.htm#d0e5847
    Thanks,
    Hussein

  • Send an alert when Server Admin Tool has logged in?

    Is there a way to determine if someone remotely logged in via "Server Admin.app"? The application has no own log file.
    I've managed to setup a launchd task that sends an email whenever someone establishes a vpn connection by watching the pppd log file. Can this also be done for that servermgrd process?

    The basic idea was to watch the log file of the vpnd daemon and fire a shell script that sends a mail to me, if the most recent line of the log file contains the word "progress". (That word is a unique indicator for a successful connection. Otherwise you will get mails for each status change, too.)
    To watch a file change i used Lingon: I logged in via Remote Desktop, launched "Lingon" (freeware - http://sourceforge.net/projects/lingon/) and created a user daemon named "com.myserver.vpnd_watch". Then i've chosen my shell script as the application to be called. In my case it was "/usr/sbin/vpnd_watch.sh". And finally i set the only option "Run it if this file is modified:" as "/var/log/ppp/vpnd.log".
    The shell script is quiet simple. To prevent multiple alerts for the same event, it reads a file that contains the date & time of the last login/alert, reads out the date & time of the most recent log file entry containing the word "progress" and compares both. In case of being different, it sends a mail with the log file entries of the last three connections via email and creates a new date file.
    #!/bin/bash
    *date_old=$(cat /Users/myaccount/watch_date.txt)*
    *date_new=$(cat /var/log/ppp/vpnd.log | grep progress | tail -n1 | grep -o -E "[a-zA-Z]{3} [0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}")*
    *if [ "$date_old" != "$date_new" ]; then*
    *cat /var/log/ppp/vpnd.log | grep progress | tail -n3 | mail -s "VPN Connection" [email protected]*
    *echo $date_new > /Users/myaccount/watch_date.txt*
    fi
    *exit 0*
    (You might have to set permissions accordingly.) The log file entry which matters is something like:
    Fri Nov 19 22:23:43 2010 : L2TP incoming call in progress from 'xxx.xxx.xx.xx'...
    This is also the message text of the email, so you can see what the connecting client's IP address is. My mobile phone provider offers a mail to SMS service. So i get an SMS on my iPhone, too. Useful when i don't have an internet connection or no time to check mails.
    Binding all administrative traffic to that vpn connection (ssh, ARD and Server Admin Tools) makes sure that you're always informed if some tries to take control and by the IP address if it's your client.

  • Unable to join environment message  and hanging when opening / closing db

    HI ,
    I got the above error message when trying to open the environment.
    Note that before opening I tried closing the db process but it hanged so I killed the process.
    Another phenomenon I got with another database that was about 20 Gigas is that opening hanged, without any error message, for a long time (about 4 hours ) and only then was successfully open.
    So my question is twofold -
    1. What might be the reason for the hang in closing / opening - note that there was no reading/ writing activity on the database.
    2. How should "unable to join the environment message be handled ?
    Maybe this could help diagnose the issue of low opening - the environment folder is filled with many log files created by berkeley db when adding data. Can these files be removed ?
    thanks !!
    Edited by: user10762341 on Feb 3, 2009 5:26 AM
    Edited by: user10762341 on Feb 3, 2009 6:43 AM
    Edited by: user10762341 on Feb 3, 2009 7:54 AM
    Edited by: user10762341 on Feb 3, 2009 9:05 AM
    Edited by: user10762341 on Feb 4, 2009 6:12 AM

    Hello,
    any updates for this case? I'm asking because I have encountered the same issue, and I would like to know what is wrong with my database and how to repair this problem.
    I have 3mln of records in database ( primary database + 3 secondary databases) - start and close take about 5min.
    Thenks for any info,
    pawel

  • Messages only alert when received 1/4 of the time and do not appear in lock screen even though the ability to see them is turned on

    I'm not notified at all 3/4 of the time that I have received a text message. How do I fix this?

    Hey M0904,
    I found the following information regarding troubleshooting notifications, I'd run through them and see if they resolve the issue:
    iOS: Understanding Notifications
    http://support.apple.com/kb/ht3576
    Troubleshooting notifications
    Push notifications require an active Wi-Fi or cellular connection. If you are not receiving notifications for a specific app, try these steps:
    Verify that the app supports notifications.
    After installing an app or restoring a backup to a different iOS device, open the app at least once to begin receiving notifications.
    If the app requires entering or logging in to an account, you will need to do this before receiving notifications.
    Check Settings > Notifications to ensure that the app is configured for notifications.
    If notifications do not appear only in the Notification Center, verify that the Notification Center setting for the app is enabled.
    If you are still unable to receive notifications and you are using a Wi-Fi connection, verify that the network or firewall is not blocking access to port 5223.
    Have a good one,
    David

  • How to make use of notify-send to get alerted when a chat-message arrives?

    I would like to get notified, if a chat-message arrives. I tried two add-ons, both will play a sound, but not show a notification-window, as promised, so I'd like to do it myself, using `notify-send`. I suppose, that'll take to listen to a fitting event and execute notify-send, can someone please give me a hint, how to do that? Docs are rare.
    Using Thunderbird 24.4.0 on Ubuntu 12.04
    TIA, ida

    Hi Matt and sfhowes,
    I have tried several-addons with no success and suspect a problem with my Ubuntu, as they don't show any problem-reports of other users.
    Writing a Thunderbird-add-on is a little bit challenging and not as well supported than writing a Firefox-Add-on. Also the used JS-func for alerting, when messages arrive, shows a lot of bug reports.
    So I decided to go for a shell-script-solution now, listening to a fitting child-process and sent notificia. I will post it , when it's finished.
    Thanks for your replies
    Ida

  • SCCM 2012 -OS images not transfering to DP ERROR Detail will be available when server finishes processing the message

    I am having issue with some application, packages, and images pushing from my Primary SCCM server to the secondary servers and DPs.
    I am thinking that the issues are all related so I am going to just talk about the image that I am having a problem with push.
    The image has successfully transfered to the Primary site, and secondary sites, but it is having a problem with a DP. The error that shows up in "Content Status" says "Detail will be available when server finishes processing the
    messages". All the servers are 2008 R2 server, with SCCM 2012 SP1.
    I would take a look at logs for this, but I am pretty new to SCCM, and I'm not sure which log to look at for additional information.
    Thank you for any help that can be provided.

    The logs pointed me to an error about the Pull DP settings. I think the issue is that I have the images stored on the Primary site, and the DP does not have the Primary site in its Pull DP settings tab. I unchecked the option, and it appears to be working
    now. Thank you

  • Show Messages when DB is Down

    Hi Experts,
    Actually obiee is integrated with siebel, we have some reports to fetch the data from siebel, if in case the siebel server is down , we just want to show that message something like 'Siebel Server is Down' . Is this possible in OBIEE. How to capture the information when server is down. Can any one help me out on this.,
    Appreciate your help.
    Thanks,
    Malli

    Yes, rite. Capturing of Siebel Health should be done by Siebel Admin person or you can check for some scripts which will auto-change the flag value based on the status. This is out of OBIEE functionality. What I'm saying is that you need to get these things done with some scripts or something. Once the flag value is autmated, then it can be utilized in OBIEE, else you have no option.

  • TS1307 "The email server didn't recognize your username/password combination". This message pops up when trying to mail photos from iPhoto. How do I fix it?

    "The email server didn’t recognize your username/password combination." This message pops up when trying to send photos from iPhoto via Mail. I have tried reseting passowrds in both gmail and me.com

    Thanks for helping Christeneau.  You helped me too...eventually.  I say eventually because I was puzzled by your 'What does it say behind "email photo's using"'?
    I realised the problem was your incorrect use of the apostrophe 's', as in 'photo's using'.
    I just could not make any sense of this sentence at all, until I realised that you meant to write, "What does it say behind "email photos using".  What you employed was the possesive use of the apostrophe - a mistake that seems to have become endemic in english speaking nations during the last 10 years or so, brought on by the lack of understanding basic english grammar.  This has come about because of sloppy teaching methods the world over - it's not really your fault.
    It's quite simple: The apostrophe 's' should be used as the following examples show:
    James's apple, the car's horn, the world's atmosphere. The one exception is 'its shape,' where there is no apostrophe showing posession because that construction has been used as an abbreviation to 'it is', as in 'it's'.
    Plurals (more then one) NEVER have an apostrophe!  E.g. CDs, eggs, biscuits, vehicles, UNLESS to show possesion - a CD's label, the biscuit's taste, a vehicle's colour.
    Thanks again for you help.

  • When window closed shows qms$trans_errors window

    Hello,
    I want to report the following problem, regarding qmslib65.pll, revision 6.5.1.12.
    To show the problem, I do the following actions:
    1. In my form I delete a record (which has details record, that are not shown in the form)
    2. I try to close the window and I see an popup window, asking me if I want to save the changes
    3. I answer Yes and due to the restricted relation between this record and its details I see a popup window, telling me that this delete action is not allowed.
    4. The next thing that happens is that the form is showing me the qms$trans_errors window with no information at all.
    My guess is that this is due to the qms$window.when_window_closed procedure, present in the qmslib65.pll, especially the follwing code:
    if l_last_window
    then
    if qms$errors.show_message('QMS-00158')
    then
    commit_form;
    if name_in('system.form_status') <> 'QUERY'
    then
    go_block('QMS$TRANS_ERRORS');
    raise form_trigger_failure;
    end if;
    else
    exit_form(no_validate,full_rollback);
    end if; -- show message
    end if; -- last window
    Notice the go_block('QMS$TRANS_ERRORS') line. In my opinion the violation of the FK restricted constraint is not handled by any business rule (qms$transaction) and therefore the go_block('QMS$TRANS_ERRORS'); statement is obsolete in this case.
    What I want to do know is create a workaround to avoid showing the qms$trans_errors window if no business rule is violated, when closing the window. Any ideas?
    With regards,
    William de Ronde

    This is known bug #2283122. It was fixed in Headstart patch 6.5.2.2, which is available via the supplement option.
    Basically, we added a bit of code to check the number of messages on the cg$errors message stack just before going to the QMS$TRANS_ERRORS block. We now only go to the block if the number of messages is > 0.
    Regards,
    Lauri

  • I get a 404 error when accessing my website which is supported by Apple.  The message says that the server can't find my page.  My browser is Safari.  How can I fix this when it just stopped working today?

    I get a 404 error when accessing my website which is supported by Apple.  The message says that the server can't find my page.  My browser is Safari.  How can I fix the problem when it failed just today?

    If you uploaded to MobileMe, it's no longer available. Apple's closed MobileMe and stopped offering web hosting.
    (116252)

  • I get a 404 error when accessing my website which is supported by Apple.  The message says that the server can't find my page.  My browser is Safari.  How can I fix this?

    I get a 404 error when accessing my website which is supported by Apple.  The message says that the server can't find my page.  My browser is Safari.  How can I fix this?

    If you uploaded to MobileMe, it's no longer available. Apple's closed MobileMe and stopped offering web hosting.
    (116252)

  • Mavericks Messages - iMessage offline when Messages closed

    Hi there,
    when i have Messages closed on my Mac, I cannot receive iMessages. Other iPhone Users cannot send me any iMessages. This just works when I have Messages up an running on my Mac. Is that normal? Shouldn't I be able to receive iMessages on Mavericks even if Messages isn't actually running?
    Thank you very much in advance!
    Cheers

    How about this -- it seems like it should work though I've never personally tried it:
    Do what I suggested above, which will make Notification Center not responsible for alerting you about messages.
    Make the Messages app responsible for notifying you instead.  Do this by opening Messages > Preferences > Alerts and making sure the event "Message Received" has the "Play a Sound" box checked with something like "Received Message" as the sound.

  • HT4623 My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message. 

    My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message.  How an I get rid of that

    Try this...
    have a text convo with the person you want to delete. Go to the top contact in the text convo, hit edit contact, and delete that contact.
    That resolution came from another thread on this issue, and this did solve to poster's issue.

  • My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message.  How an

    My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message. How an I get rid of that

    Try this...
    have a text convo with the person you want to delete. Go to the top contact in the text convo, hit edit contact, and delete that contact.
    That resolution came from another thread on this issue, and this did solve to poster's issue.

Maybe you are looking for