How to not run a gateway instance if the target server is down

I have a DirectoryWatcher gateway instance that runs every 10
min looking to do a series of actions when a file is added to a
directory on another server. This other server is down periodically
and my gateway instance fails. Then when the server comes back up,
I have to restart the gateway because it has failed. How do I tell
the gateway instance to not run if the server it is looking at is
down or the directory in this case is unavailable?

listeners have a timeout period.  if the target computer is going through a reboot cycle, the downtime should be short enough that you can setup a timeout.  Set one that is long enough so that you do not trigger a failure event, and the timepsan allows for the target server to come back online before the timeout expiration.
Another way that is more robust is to create a seperate application, perhaps one built on Visual Studio or even a scripthost that does a simple ping of the destination server every 10 seconds or so.  When the server is not found, you can do a shutdown of your CF.    (you can shutdown any application from another application).   Once you can re-ping the server, relaunch your gateway listener.  If the listener cannot support what you want to do, just write another program that will perform your logic for you.
People have it within them to change
Proud user of Adobe products, and webmaster of the Theravive counselor network , built on Dreamweaver, and Photoshop.  Toss in a little Visual Studio, but who's keeping score!

Similar Messages

  • Firefox will not run for mulitple instances of the SAME user account on Windows Multipoint Server 2011

    We have an HP MS6200 MulitSeat PC
    It is running Microsoft Windows MultiPoint Server 2011 (which appears to be a tweaked version of Windows 7)
    It is set up in a computer lab, and students log in using their shared room account - ie multiple instances of the same user accounts are running on the PC at the same time.
    The first student to run Firefox can work with it without problem.
    However when another student tries to start firefox they get the following message:
    Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

    Thanks for the quick reply.
    I managed to get this to work by using:
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -profile "%temp%\ffprof" -no-remote
    This works because Windows assigns a different temp location for each instance of a user
    Thanks for your help

  • Two instances on the same server

    I've already created one instance on 11g R2 database, but I was told to create another instance on the same server. Can I use the same listener for both instance? Will it cause any problem?
    Thanks!
    - Johnny

    tanww888 wrote:
    Thanks for all your responses. I have not dealt with two instances on the same server before. I'll take your advice to start with the same listener for both instances and see if it is causing any issue. My database server is a Oracle Sparc 5120 with plenty of memory and disk space. The second instance that I'm going to create will be much smaller than the first one.
    Single or multiple listeners aren't really a factor for performance. Notice that even in Dan's remarks, none of his reasons for multiple listeners had anything to do with performance.
    Question, is it easy to create/configure the second listener to point to the second instance? Just in case there is an issue using the same instance.
    The listener doesn't "point to" the database - not in the sense you seem to think. It simply watches the ports it is configured to use (1521 by default) for connection requests from clients. When it gets a request it evaluates whether or not it knows about the service (instance) requested, and if it does it spawns a separate server processes to communicate between the client and the db instance, then is out of the way. The listener creates the connection but does not sustain it. You can stop a listener and all existing connection will continue because the listener has no part in maintaining them.
    Multiple listeners would be configured by adding LISTENER sections to the listener.ora file. You might find it instructive to realize that if there is no listener.ora, a 'lsnrctl start' will cause a default named listener to start on the default port of 1521. By default, any db instances on that server will register themselves with the default listener on the default port. After this self-registration, the listener will know about the instance if/when it receives any connection requests for it. Let's switch from the telephone analogy to that of a desk clerk at a hotel. He comes to work and is handed a piece of paper that says "We have Tom, Dick, and Harry registered as guests" This would be analogous to the listener learning of instances via the SID_LIST section of the listener.ora file. Then Fred walks up and says "I'm Fred and I'm in room 238", so the clerk makes a note of that. This would be analogous to the instance registering itself to the listener. Either way, then someone walks up and says "Where would I find Tom (or Fred)". The clerks checks his lists and directs the person to the correct room. He doesn't escort the person around to Tom and act as a go-between for their conversation. And hotel management doesn't want to have to pay a separate clerk for each guest.
    You might want to read my articles about TNS in general at edstevensdba.wordpress.com. I think they will help you get a clearer understanding.
    Thanks,
    - Johnny

  • How to run 2 weblogic instance in the same machine

    is it possible to run 2 weblogic instance in the same machine ?
    I have created 2 domains ...domain-1 and domain-2 in my hard disk and both of them have startWeblogic.cmd in them..
    but i cant run them simultaneously though individually they run.
    they differ by HTTP port and Debug port but still they dont run simultaneously
    can you please comment ?

    yea...i thought about it .
    but as both of them are same application and they are using the same DB connection pool , JMS queue ....i just dont want to mix all these.
    so i have created two seperate domian . and i run them individually and they work fine.
    However , they are having different ports though .
    But when i run the second one while the first one is running ....the second one does not starts up
    here is the error when i click on startsWeblogic.cmd when the other is already running.
    java version "1.4.2_08"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
    BEA WebLogic JRockit(TM) 1.4.2_08 JVM R24.5.0-61 (build ari-49095-20050826-1856-win-ia32, Native Threads, GC strategy: pa
    Starting WLS with line:
    d:\bea\JROCKI~1\bin\java -jrockit -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.
    === Debugging ===
    This window is necessary for debugging code using WebLogic Workshop
    ERROR: Proxy already running...
    weblogic.debugging.comm.TransportException
    at weblogic.debugging.comm.ServerConnectInfo.createTransport()Lweblogic/debugging/comm/CommTransport;(ServerConne
    at weblogic.debugging.engine.ProxyThread.run()V(ProxyThread.java:77)
    at java.lang.Thread.run()V(Unknown Source)
    at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)
    Caused by: java.net.BindException: Address in use
    at jrockit.net.SocketNativeIO.bind(ILjava/net/InetAddress;I)I(Unknown Source)
    at jrockit.net.SocketNativeIO.bind(Ljava/io/FileDescriptor;Ljava/net/InetAddress;I)I(Unknown Source)
    at java.net.AbstractSocketImpl.bind(Ljava/net/InetAddress;I)V(Unknown Source)
    at java.net.PlainSocketImpl.bind(Ljava/net/InetAddress;I)V(Unknown Source)
    at java.net.ServerSocket.bind(Ljava/net/SocketAddress;I)V(ServerSocket.java:318)
    at java.net.ServerSocket.<init>(IILjava/net/InetAddress;)V(ServerSocket.java:185)
    at java.net.ServerSocket.<init>(I)V(ServerSocket.java:97)
    at weblogic.debugging.comm.ServerConnectInfo.createTransport()Lweblogic/debugging/comm/CommTransport;(ServerConne
    ... 3 more
    Could not bind to Weblogic server (Error attaching to Weblogic Server.).
    Message was edited by:
    Unknown_Citizen

  • How can I correlate an Java instance number with a server id?

    I have 6 Web App Server running ABAP and the JAVA stacks. I can log into the Central Instance server and run /usr/sap/<SID>DVEBMSG00/j2ee/configtool/configtool.sh and bring up the GUI interface to "see" all the instances and their variables. I don't see an easy way to trace back the Java INSTANCE to the physical server's hostname.
    Is there a central repository to correlate a Web App Server Java instance number to the actual hostid/hostname of the target server? I realize I can log into each Web App Server and look at the /usr/sap/<SID>D00/j2ee/cluster/instance.properties and find the Instance number, but I was wondering if this information was held in the SAP Central instance or SAP Database somewhere.

    Hi Timothy,
    The instance ID used for the JAVA cluster is generated at installation time, and -amongst other things- takes into account the time it was generated. We installed two instances in parallel (on different hosts) and ended up with almost the same instance ID.
    Because this can be very confusing, we asked SAP if this was changable - in theory it is only an ID which could be changed as long as it is updated on all places the identifier is stored - but SAP indicated that that is not possible, nor supported. We ended up with a diagram of the system architecture with all the identifiers on our desk.
    Note that in the config tool - all instances are displayed with their system instance number. If you were to install a new system it might be usefull to install all instances with different instance numbers so you and distinguish more easily between them.
    Hope this helps,
    Cheers,
    Walter

  • Can you run multiple APEX listeners for different instances on the same server

    Please confirm that we can run multiple APEX listeners for different instances on the same server?  Is it an xml setup configuration or do we need to do more??
    Thank You,
    Tony Miller
    SmartDog Services
    Austin, TX

    Yes.. Just exactly what I was looking for...
    Thanks Jari!!
    Thank You,
    Tony Miller
    SmartDog Services
    Austin, TX

  • How can I run 2 Dreamweaver windows at the same time?

    How can I run 2 Dreamweaver windows at the same time on my
    PC?
    basically I have 2 monitors and I want to edit CSS on one
    monitor and have the html page open on the other so I can quickly
    look from one to another with in a split second instead of taking
    that extra time to switch back and forth using the tabs at the top,
    I know I should probably invest into a mac so i can work out side
    of the Dreamweaver application window and I will in the future but
    is there any way i can do this on my windows XP pro PC?
    Thank you
    Maurice

    Open the CSS in DW, and use F10 to open the Code Inspector.
    Place the
    latter as needed.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Random_Yggdrasil" <[email protected]> wrote
    in message
    news:gi2htb$j4j$[email protected]..
    > How can I run 2 Dreamweaver windows at the same time on
    my PC?
    > basically I have 2 monitors and I want to edit CSS on
    one monitor and have
    > the
    > html page open on the other so I can quickly look from
    one to another with
    > in a
    > split second instead of taking that extra time to switch
    back and forth
    > using
    > the tabs at the top, I know I should probably invest
    into a mac so i can
    > work
    > out side of the Dreamweaver application window and I
    will in the future
    > but is
    > there any way i can do this on my windows XP pro PC?
    >
    > Thank you
    > Maurice
    >
    >
    >

  • HT3771 I Have a Kyocera FS-C2026MFP printer/scanner. How can I only pint the document in Black. I cannot work out how to not print in colour to save the inks!!

    I Have a Kyocera FS-C2026MFP printer/scanner. How can I only pint the document in Black. I cannot work out how to not print in colour to save the inks!!

    Welcome to Apple Support Communities. We're users here and do not speak for "Apple Inc." or "Kyocera Inc."
    http://usa.kyoceradocumentsolutions.com/americas/jsp/upload/resource/25359/0/Mac Driver3SoftwareGuide1.1.pdf
    On the printer driver documentation, Page 5, in the Imaging setting, although the options are not specifically shown, there should be an option on that screen of the print driver to click and select "B/W" or 'black and white' or 'grayscale' or 'monochrome' as Print Mode rather than the "Full Color" option shown in the illustration below.
    You access these settings once you have selected 'Print' from an app.
    If necessary, you might need to click on the 'Down arrow' button next to the printer name (OS X 10.6), or 'Show Details' button at the bottom of the print dialog box (OS X 10.8) to see additional settings.

  • How can i run external application without specifying the full path?

    for example, ms word executable file is winword.exe, but in java i am using the following command:
    Runtime.getRuntime().exec("\"C:\\Program Files\\Microsoft Office\\Office10\\winword.exe\");
    the thing is, i dont know where ms word is installed on every machine, so rather than making an assumption, do you know how i can run ms word without specifying the full path?
    thanks

    1) You could ask the user to tell you where it's at (and remember for next time)
    2) You could do a file search for it (and remember it for next time)

  • When synching the iPhone i get the following message: iTunes could not sync contacts to iPhone because the sync server failed to sync the phone. any idea how to correct this

    Header 1
    Header 2
    when synching iPhone i get the following message: iTunes could not sync contacts to iPhone because the sync server failed to sync the phone. any idea how to fix this problem?

    Did you try the solutions mentioned in this article? iTunes for Windows: "Unable to load data class information from sync services" alert

  • How to preven JButton of generated actions when the user keep pressing down

    How to preven JButton of generated actions when the user keep pressing down the key or the short cut
    The code below to show the issue when the user keep pressing Alt+ O
    We want to prevent the JButton from generating multi actions just one action only
    A sample of code shows the behaviour which has to be prevented. Continue pressing "Alt +O" and you will see the standard ouptput will print time stamps
    Please notice, I am NOT interested in Mouse press which has a solution by adding a threshold ( setMultiClickThreshhold(long threshhold) on the JButton  as an attribute.
    public class TestPanel extends JPanel
       private JButton btn;
       public TestPanel()
          btn = new JButton("Open");
          this.add(btn);
          registerCommand(new MyAction(), InputEvent.ALT_MASK,
                KeyEvent.VK_O, btn, btn.getText(), 0);
       public static void registerCommand(AbstractAction action,
             int mask,
             int shortCommand,
             JComponent component,
             String actionName,
             int mnemonicIndex)
          InputMap inputMap = component.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
          KeyStroke knappKombination = KeyStroke.getKeyStroke(shortCommand, mask);
          if ((component instanceof AbstractButton)
                && mnemonicIndex >= 0
                && mnemonicIndex < actionName.length()
                && (shortCommand >= KeyEvent.VK_A && shortCommand <= KeyEvent.VK_Z))
             ((AbstractButton) component).setDisplayedMnemonicIndex(mnemonicIndex);
          if (inputMap != null)
             ActionMap actionMap = component.getActionMap();
             inputMap.put(knappKombination, actionName);
             if (actionMap != null)
                actionMap.put(actionName, action);
       public static class MyAction extends AbstractAction
          private static final long serialVersionUID = 1L;
          @Override
          public void actionPerformed(ActionEvent e)
             System.out.println(System.currentTimeMillis());
       public static void main(String... args)
          SwingUtilities.invokeLater(new Runnable()
             public void run()
                JFrame frame = new JFrame("Testing");
                JPanel panel = new TestPanel();
                frame.getContentPane().add(panel);
                frame.setPreferredSize(new Dimension(500, 500));
                frame.setMinimumSize(new Dimension(500, 500));
                frame.pack();
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.setVisible(true);
    }Edited by: user12130673 on 2013-feb-13 03:01

    Use KeyStroke getKeyStroke(int keyCode, int modifiers, boolean onKeyRelease) with onKeyRelease=true instead?

  • How do I create a Public Group on the Calendar Server?

    How do I create a Public Group on the Calendar Server?
    <P>
    Anyone can create Private Groups or Member Only Groups. You must be given
    administrative rights to create Public Groups on the Calendar Server. The
    Calendar Server Admin (SYSOP) can give anyone rights to create Public Groups by
    using the uniadmrights tool.
    <P>
    Go to /users/unison/bin/
    and run the uniadmrights
    tool. Some sample syntax:
    <P>
    To list all users with administrative rights:<P>
    % uniadmrights -ls -host yourhostname
    <P>
    To give John Smith, a user on node 10000, rights to administer Public Groups:<P>
    % uniadmrights -e "S=Smith/G=John" -add -pgrp -n 10000
    <P>
    In Calendar Server 4.0, you also have the option of using the Admin Server GUI
    to assign Administrative
    rights (instead of using the command-line method) by going to User Management,
    Administration Rights.
    <P>
    With the proper administrative rights, log into the Calendar Client. Go to Options,
    Manage Groups to create a new group. Choose PUBLIC from the dropdown window,
    add your users and/or resources and click OK to create the Public Group which
    can be seen by all users on the local Calendar Server.

    The following is info that I found in another post that I have been trying to follow.
    MrHoffman      New England
    Re: Configure DNS - OS X Server Next Steps
    Feb 13, 2011 6:36 AM (in response to Jimbooooooo)
    You're setting up internal DNS services, you referenced your ISP DNS servers and you should not have, and now those servers have no translations for your hosts. This is a common misconfiguration.
    See [configuring DNS on Mac OS X Server|http://labs.hoffmanlabs.com/node/1436] for how to set up your internal DNS server.
    And if there are any references to your ISP DNS servers here (within your client settings, within your server settings, your Airport settings, etc), then you're usually going to have DNS and connectivity problems. You're running a server now, so you'll be running your own services, and (particularly because of NAT here) referencing only your own DNS server(s).
    You may be setting up external DNS (if and when you need that), but that should happen after you set up your internal DNS. The above article has a link to setting up external DNS, when you get around to that, if/when you need in-bound connections into your LAN.

  • Installing Gateway service on the BO Server

    Hi,
    We have an existing setup of BO XI 3.1 with the Integration Kit.
    Now, we are moving the production content to a new server. For the integration kit to communicate with the SAP system, I need to install the SAP Gateway service on the BO server.
    Can anyone point out where and how can i find the installables for the SAP Gateway?
    Can I use the files from the old server and re-register on the new server?
    Thanks for all your help.
    -Purav.

    Thanks Ingo....
    We have a SAP implementation as well, so can I download it from the service marketplace? If possible can you guide me to the exact name or location of the download? I am completely on the BO side, so not much familiar with the SAP stuff.
    Thanks,
    -Purav.

  • Is database link only 'valid' for instances in the same server?

    Background: We have 5 servers and installed Oracle 7.3 and 8.
    Problem: I managed to create database link to other instance in same server; but not to other server. Error message received was :
    ORA-02019: connection description for remote database not found
    : TNS server name not found
    BUT: I managed it with 'copy from ' command in SQL*plus.
    Question: Is database link only 'valid' for instances in the same server?
    Thanks! ;o)

    user10127912 wrote:
    Hi,
    We are planning to install second instance of Oracle 11gR2 in Linux server 2.6.39-400.21.1.el6uek.x86_64 x86_64. This is something we never haven done before. If you have such experience, please give us some insight.
    The existing instance has all the standard ports:
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    Enterprise Manager Console HTTP Port (pterpdb02) = 1158
    Enterprise Manager Agent Port (pterpdb02) = 3938
    What ports should we select for second listener and enterprise manager? Is there anything else that we need to know before we install the second instance?If you want a second database instance, no additional installation is required - as long as you want to run the second instance at the same version as the the first. Just fire up dbca and create the second database. One installation of Oracle (one ORACLE_HOME) is capable of supporting many database instances, though the same may or may not be said of the hardware it is running on.
    As already said, one listener is enough. One listener, running from one oracle home, using the default name of LISTENER, running on the defualt port of 1521, is quite capable of -- indeed, WAS DESIGNED TO, supporte multiple database instances of multiple versions running from multiple ORACLE_HOMEs.
    One instance of dbcontrol/dbconsole will support only one database. If you do not use Grid Control (extra installation, extra license) you will need to use the emca utility or one of the options in the dbca utility to configure a seperate instance of dbcontrol for each database. Don't worry about the ports, the creation utility will take care of it and report what it does.

  • Hello, I'm pretty sure my fan on my 2009 mac book pro has stopped running. Would this cause the computer to slow down and take for ever to boot up and show the color wheel every time I select an application ?

    Hello, I'm pretty sure my fan on my 2009 mac book pro has stopped running. Would this cause the computer to slow down and take for ever to boot up and show the color wheel every time I select an application ? how involved to replace fan ? cost ?
    thanks

    Not directly, but if the CPU overheats because of incompatible software, that would cause slowdowns. Do not allow the computer to run if the fan is not working unless you wish to fry your motherboard. Please make a Genius Appointment and take it in for service.

Maybe you are looking for

  • Doubt in case statement  in sql

    hiii guruz i am writing a code in HR schema for case its like this it works fine as i want it to select commission_pct , case when commission_pct is null then 'null' else 'not null' end "comm" from employees but when i write+ select commission_pct ,

  • Exception Handling in Overriden methods

    class MyException extends Exception MyException() super("In MyException"); abstract class abs abstract void show() throws ArithmeticException; interface test abstract void show() throws MyException; abstract void get() throws Exception; public class

  • Lightroom 5 wont delete files

    So I recently just upgraded from Lightroom 4 to LR 5. Whenever I go to permanently delete files from my hard drive, I get a message saying "The files are on a volume that does not support Trash. Would you like to permanently delete them?"  I click th

  • Hardware sizing for Oracle applications 12i

    Dear all, We are Implementing Oracle Applications R-12 on Linux -AS 4 for 50 users Oracle Apps modules · Oracle General Ledger · Oracle Receivables · Oracle Payables · Oracle Fixed Assets · Oracle Cash Management · Oracle E-Business Tax · India Local

  • Importing a matted Motion project into FCP

    I did a bunch of work on a shot in motion, maskes, etc. The shot was greenscreened so I use Primatte to Key in motion. When I try to import this motion file in FCP for coloring it does not display correctly. I'm sure it has to do with the Key. I regu