How to control service shutdown sequence of dependent services

I am running three java applications say A,B,C as windows services with A having dependency on B and B having dependency on C.
Which means when you start A, It shall automatically start services B and C (Java programs running as service). And also when you stop C ,it shall stop first B and then A.
Problem I am facing is when you stop C. Windows first stop A then B.
I am able to register java applications as windows services with dependencies.Problem is when u stop service,Windows send signal to all the dependent services to stop and thus I am not able to control order in which services stop
Any help is appreciated
regards

In your web.xml, under the servlet tag, make A.jsp be loaded the first, at your web app 's startup:
<jsp-file>A.jsp</jsp-file>
<load-on-startup>0</load-on-startup>
...

Similar Messages

  • How to control PA40 screen sequence?

    I have a Call transaction of PA40 to process new hires for Country Group 10 as well as country Group 99.
    The data comes in a single file with Country Group as the first column.
    If I have Country Grop 10 in my user parameters, the code works fine in foreground as well as background for the data belonging to 10. It however fails for 99.
    Now - if I change my user parameters to 99, it works fine for 99 but fails for 10.
    How to circumvent this issue?
    Any SET parameter id would work?
    Do we have to create two separate batch users to process the files?
    Thanks,
    Ven

    Infogroup modifier is a feature which is used to restrict infotypes for particular group of employees.
    Suppose you need to maintain IT0442 only for executive employee not for all employee. Then you can create 2 different infogroup out of which one is assigned to return value of IGMOD feature and you can add IT0442 where as other will be blank without IT0442.
    So while performing that action, if you hire other employee, IT0442 will not come in sequence as part of infogroup where as while hiring executive, IT0442 will come in sequence.
    Check the possibilty of activateing the IGMOD based on ur Company Code
    and refer old threads for more info

  • Routing And Remote Access Service: Error 1068: The dependency service or group failed to start

    Hi,
    I tried to establish a PPP connection between my windows 8.1 PC and another kind of machine using an USB cable. So, as usual on Windows XP and Windows 7,
    I configured the COM in the modem list and I tried to start the
    "Routing And Remote Access" service and then
    I got this message.
    So any idea why is failing?
    Please help!
    Thanks thaks thanks

    Hi,
    Was your issue resolved?
    If no, please reply and tell us the current situation in order to provide further help.
    Karen Hu
    TechNet Community Support

  • Solaris 10 shutdown sequence

    Hi everyone,
    I'd like to take control of Solaris 10 shutdown sequence, to run own process just after svc.startd ends (remounts rootfs read-only) and before system is halted. My process sends some data to serial port to shutdown UPS system. Unfortunately /sbin/rc0 script is executed too early and causes unclean shutdown.
    Is this a method to take control of shutdown sequence?
    Best regards.
    Tom.

    TomCP wrote:
    The idea with patching OBP is very good but is it possible to work?I had tried a test of patching OBP 3.10.24 on a Netra t1-105. All it does is to write the string "Shutdown the UPS" to Serial Port A but it shows it is possible to patch OBP.
    The built in power-off command was:
    ok see power-off
    : power-off
       0 (f005ead4) (f005e7b8) 64 ms 1 (f005ead4) (f005e7b8) 3e8 ms
    ;To test the changes first create a new word to output a string and then contain the first word of power-off, which in this case was *0*
    ok : shutdown-ups
    ] cr ." Shutdown the UPS " cr 0
    ] ;Then patch the new word into the start of power-off:
    ok patch shutdown-ups 0 power-offAnd test what happens when the modifed power-off is executed:
    ok power-off
    Shutdown the UPS
    lom>To make the patch to power-off permanent, append to the end of nvramrc (the cd ttyb to device end lines were existing modifications)
    ok printenv nvramrc
    nvramrc =             cd ttyb
                          0 0 " ignore-cd" property
                          device-end
                          cd ttya
                          0 0 " ignore-cd" property
                          device-end
                          : shutdown-ups
                          cr ." Shutdown the UPS " cr 0
                          patch shutdown-ups 0 power-offAs a final test, executed a shutdown from Solaris and checked the test "Shutdown the UPS" string appeared:
    # shutdown -i5 -y -g0
    Shutdown started.    Tue Mar 11 01:02:55 GMT 2008
    Changing to init state 5 - please wait
    Broadcast Message from root (console) on netra-t1 Tue Mar 11 01:02:55...
    THE SYSTEM netra-t1 IS BEING SHUT DOWN NOW ! ! !
    Log off now or risk your files being damaged
    # svc.startd: The system is coming down.  Please wait.
    svc.startd: 70 system services are now being stopped.
    Mar 11 01:03:13 netra-t1 rpcbind: rpcbind terminating on signal.
    SUNW,pci-gem0: Could not Establish Link -- Check if the cable is plugged in.
    svc.startd: The system is down.
    syncing file systems... done
    Shutdown the UPS
    lom>

  • How can I create a query with web service data control?

    I need to create a query with web service data control, in WSDL, it's query operation, there is a parameter message with the possible query criteria and a return message contains the results. I googled, but cannot find anything on the query with web service. I cannot find a "Named Criteria" in web service data control like normal data control. In Shay's blog, I saw the topics on update with web service data control. How can I create a query with web service data control? Thanks.

    Hi,
    This might help
    *054.     Search form using ADF WS Data Control and Complex input types*
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • How to control the sequence of a map?

    Hello
    we are using a send email with attachment (map) in our process design, the email body has a few pdf documents, does anyone know how to control the sequence of attachment in the email body?
    thanks,

    Values in a map are ordered randomly, you can't predict the order.

  • How to control sequence of Function Modules processed in update task?

    Hello,
    I've some questions regarding following process that needs to be extended: a Function Module (FM) 'Save' calls several other FM e.g. 'X1' and 'X2' in update task. Those update modules are independent from each other and write data to the database that finalize the save process.
    Now a third FM 'X3' needs to be called in update task. This one is also independent from 'X1' and 'X2' but it calls a further FM 'X4' in background task as separate unit which starts a job. This job  requires the data from FM 'X1' and 'X2' already persistent on the database. By the way: the FM 'X3' triggers the Access Control Engine (ACE) notification that calculates the authorization data in the mentioned job. Therefore this process needs to be the last FM call in update task in the queue of calls in FM 'Save'.
    Questions:
    (1) Is it possible to control the process sequence of the FM 'in update task' simply by the sequence they are called in FM 'Save'.
    (2) Presumed that all FM beside 'X3' have processing type "Update with immediate start" or "Immediate start, no restart" (in short  V1) would it be another solution to specify FM 'X3' with type 'Delayed' to control the process sequence? When a delayed FM will be processed?
    (3) Is it uncritical to call in FM 'X3' (already running in update task) the FM 'X4' with addition in background task as separate unit  that furthermore starts a job by an event? I'm afraid that this nesting could lead to unexpected errors.
    Thank you in advance for your help!
    Best regards,
    Oliver

    ya it will this be in  the same sequence only...........
    Regards
    Anbu

  • 11gR2 database startup/shutdown sequences..

    Hi All,
    I would like to know how can we startup/shutdown the 11gr2 rac/standalone database in production environment,bcoz in 11gr2 the ocr and voting disk
    are resides in ASM.In general we follow some sequence to start/stop the database like below.
    SHutdown DB
    +++++++++++
    1.stop the application
    2.stop the listener
    3.stop the database
    4.stop the asm and cluster services
    Startup
    +++++++++
    1.startt the clusterservices and asm
    2.start the db
    3.start the listener
    4.start the application
    SO in 11gr2 how can we stop/start the database?
    Regards,
    Mugunth

    Correct
    Stop on each node :
    emctl stop dbconsole
    srvctl stop database -d db_name
    srvctl stop asm -n node_name
    srvctl stop nodeapps -n node_name --> in 11.2 stops only ONS and eONS because of some dependencies.
    crsctl stop crs --root
    Or stop csr on all nodes of clusterware:
    crsctl stop cluster -all
    Start : start from bottom to up

  • Windows could not start the FLEXnet Licensing Service service on Local Computer Error 1068: The dependency service or group failed to start.

    Today I installed Adobe Director 11.5. I received a couple of errors in the FLEXnet Licensing Service. It looks It could not start. I tried to download the Licence fix what I found on Google but that doesn't work, so I checked the 'Service' at service (windows).
    It's status is empty. When I double click on the FLEXnet Licensing Service, clicked on start at the opened window and an error is coming: 
    Windows could not start the FLEXnet Licensing Service service on Local Computer
    Error 1068: The dependency service or group failed to start.
    I don't understand what it says with this message, only that it is impossible to start. However, that is not what I am trying of course, I want to start the FLEXnet Licensing Service, service. 
    Re-installing of the software, doesn't make any change. How can I start it so Director is also working?

    Hi Don1233,
    Please consider seek help at the software vendor side.
    For the services didn't start, follow the suggestions posted by Elton in the thread below:
    https://social.technet.microsoft.com/Forums/en-US/e35da253-f0df-41d1-8df2-b73fa54742a0/windows-could-not-start-the-flexnet-licensing-service-service-on-local-computer-error-1068-the?forum=w7itproinstall
    Best regards
    Michael Shao
    TechNet Community Support

  • How to find out the IPS and DS Service Pack and patch levels in windows server.

    Hi,
    I have installed the Information Platform Services 4.0 and Data services 4.0 in windows QA system, now we need to install the same version of IPS & DS  in windows PRD system for this how could we find out the exact version of IPS & DS  ( Service pack and patch levels ) and where we can find the same.
    Many Thanks,
    Sudheer

    Hi Sudheer,
    On a Windows Operating Systems you can check the “Programs and Features” in control panel.You can see a list of both the Name and Version number of SAP BusinessObjects that is installed.
    option 2:
    Open CMC go to Settings. In the properties, you will find the Product Version.
    Please check below SAP notes for more information.
    http://service.sap.com/sap/support/notes/1602088
    Regards,
    Pavan

  • Network: Unknown / The dependency service or group failed to start

    Hello, MicroSoft tech crew. I know my issue is not something new to you, there are earlier posts with similar to identical problems to mine. For a whole day I tried everything I could find on the internet to fix my issue, but nothing seemed to work.
    I cannot connect to the internet. My network and sharing center displays the following, instead of the map:
    Unknown
    The dependency service or group failed to start.
    I am running windows 7 Professional 64-bit.
    I used ESET NOD32 as antivirus. I uninstalled it the day this issue appeared.
    I have no restore point.
    Any other computer or device can successfully connect to my router.
    Re-installing a fresh copy of windows is not an option.
    These are the solutions I tried and didn't work:
     I tried restarting the router (1 minute power-off)
     I HAVE reinstalled my drivers for both LAN and WAN network cards at least twice each.
    ~ I  ran the following commands in CMD as administrator over 3 times, successfully, followed by reboot:
    * sfc /scannow
    * netsh winsock reset // netsh winsock reset catalog
    * netsh int ip reset // netsh int ip reset reset.log hit
    I have checked the following in the registry:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\servicel\NlaSvc has always had full control and read permissions for both SYSTEM and Administrators.
    I replaced my nlasvc.dll file from C:\Windows\System32\ with one from another computer (and set TrustedInstaller as its owner)
    Booting in Safe mode with networking does not change this situation.
    These are some of my services. Note that I turned some of those from Manual to Automatic.
    1) COM+ Event System
    * Automatic, Started
    2) Computer browser
    * Automatic, Started
    3) DHCP Client
    * Automatic, Stopped
    * When I attempt to start this service I get this error message:
      "Windows could not start the DHCP Client Service on Local Computer."
      "Error 1186: Element not found."
    * Dependencies:
    3.1) Network Store Interface Service
    * Automatic, Started
    4) DNS Client
    * Automatic, started
    5) Network Connections
    * Automatic, Started
    6) Network Location Awareness
    * Automatic, Stopped
    * When I attempt to start this service I get this error message:
      "Windows could not start the Network Location Awareness service on Local Computer."
      "Error 1068: The dependency service or group failed to start"
    * Dependencies:
    6.1) Network Store Interface Service
    * Automatic, Started
    6.2) Remote Procedure Call (and all it depends on)
    * Automatic, Started
    7) Remote Procedure Call (RPC)
    * As stated above: Automatic, Started
    8) Server
    * Automatic, Stopped
    * When I attempt to start this service I get this error message:
      "Windows could not start the Server service on Local Computer."
      "Error 50: The request is not supported."
    * Dependencies:
    8.1) Security Accounts Manager (and the RPC)
    * Automatic, Started
    9) TCP/IP Netbios helper
    * Automatic, Started
    10) Wireless Zero Configuration (XP)
    * Nonexistent
    11) WLAN AutoConfig
    * Automatic, Started
    12) Workstation
    * Automatic, Started
    Also, my ipconfig /all looks very strange. I am not allowed to post pictures yet, but this is the image on skydrive server:
    /#cid=2168FA597AC0EAF1&id=2168FA597AC0EAF1%21107

    I follow your solution and found the
    Network Location Awareness service
    could not start.
    Then I found the solution from:
    http://mjmcfalls.wordpress.com/2012/04/07/network-location-awareness-service-terminated-with-service-specific-error-1073741288/
    by running the commands:
    net localgroup administrators localservice /add
    net localgroup administrators networkservice /add
    to add the "Localservice" user and "NetworkService" user
    to the adminstrators group.
    And the problem solved after reboot.

  • BEA / Wily:  Financial Webinar - Achieving Availability, Performance and Control of Java Applications in Financial Services

    Event Date: October 1, 2002 at 11:00 AM Pacific (US), 02:00 PM Eastern (US)
    To register: http://regsvc.placeware.com/?wily-bea1001
    Title: Achieving Availability, Performance and Control of Java Applications
    in Financial Services
    Abstract:
    In today's competitive environment, financial institutions must focus on
    three key business goals:
    a.. Creating a customer-centric enterprise to maximize value to customers
    and increase share of wallet
    b.. Improving transactional efficiency for rapid delivery of the right
    products, services and information to customers and to employees
    c.. Accelerating the decision making process to mitigate risk and improve
    returns.
    BEA and Wily Technology have helped a number of financial services firms
    meet these objectives by delivering high-performance business solutions that
    meet rigorous demands for performance, reliability and scalability.
    On October 1, 2002, Wily Technology and BEA will present a joint Web seminar
    titled "Achieving Availability, Performance and Control of Java Applications
    in Financial Services" with Eric Gudgion, Principal System Architect,
    Technical Solutions Group at BEA and Chris Farrell, Director of Technical
    Marketing at Wily. This Webinar will showcase the many advantages that the
    WebLogic® Enterprise PlatformT and Wily's Introscope® offer financial
    services firms.
    Attendees will learn how WebLogic Server, BEA's unified, simplified and
    extensible solution, provides a robust platform for the development and
    deployment of enterprise Java applications. Some examples of what financial
    institutions can achieve with BEA include Multi-channel Services Delivery,
    Straight-Through Processing, Wealth Management and Cash Management.
    Wily Technology will highlight Introscope's ability to manage financial
    services Java applications by pinpointing component-level performance issues
    in real-time, whether in the application, application server or
    Java-connected back-end systems. Wily's suite of Java application management
    solutions offers a comprehensive platform for achieving 24x7 application
    availability, enhanced performance and better control of IT resources.

    First of all you should check out which products are supported on 64bit :- http://www.oracle.com/technology/products/bi/hyperion-supported-platforms.html
    If you are planning on using windows 64bit EAS then you will have to manually deploy the web application, it cannot be automatically deployed.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Controlling requests sent to a Tomcat service

    I have a web service that acts as an entry point (EP henceforth) to the rest of my system. This service accepts requests for processing via a particular API call that it exposes to clients. It is my understanding that every time a client makes a request, Tomcat spawns a thread of my EP, and services the request. I have verified this.
    Now, I want to be able to control the threads that Tomcat creates. I want to block the threads that Tomcat creates to run my service, so that I can service incoming requests only when I am ready.
    How do I block the Tomcat container generated threads? Further more, how do I take control of which thread is woken up when I call notify()?
    I have tried the following :
    //Created a global variable in which to store the blocked objects
    static Vector blockedRequests = new Vector();
    // Created a per object local variable on which synchronization will be performed
    Vector lock = new Vector(); // no particular reason for choosing a Vector object
    if ( current request cannot be serviced) {
      // add the current object into the Vector
      // also stores its instance of the 'lock'
      blockedRequests.addElement(this);
      synchronized(lock) {
             try{
                   lock.wait(); // waiting on the lock object. blocks the current thread.
               } catch ()
    else {
         // service the request.
         // select a particular blocked request from the Vector
         // obtain its copy of the 'lock' object.
         // and wake it up, using its 'lock' object
         synchronized(lock){
                 lock.notify();
        The way I think this works is as follows:
    * Every time a request is made, the Tomcat server creates a new instance of my program and runs it in thread from its threadpool.
    * On each request, I check (some condition X) to see if I can service the request immediately.
    * If not, I store the current instance of my program in a globally accessible queue.
    * Each time a thread successfully services a request, it checks the condition X . If I can handle more requests at that time, and there are requests blocked in the queue.
    , I notify one of the blocked threads I choose, using a local variable of the object.
    In brief, there are a bunch of threads that are running my program. I want to control which thread runs when. I create a queue accessible to all threads, and also a condition that can be modified by any thread in a synchronized manner. Say the condition was just a counter. When a thread runs, it increments the counter. If the counter hits some threshold, future threads will be blocked, until a currently running thread completes its task and decrements the counter, after which it also notifies a blocked thread.
    Is this the right approach?
    How else do I take control over when a thread runs inside Tomcat, so that I can queue the requests and service them in the order that I want?

    I am not sure I understand your requirement completely. But, if you want to process requests at your control, let tomcat servlet add the requests to your program queue so that your program can process them one by one whenever it wants to.
    For selective notification to a particular thread, each thread can wait on one object that is also shared by your program. So, one object is used as a monitor between your program and one waiting thread. I think you are doing this already!!?
    If you can specify more clearly why exactly would you want to control the requests, may be i can try and think better.

  • [SOLVED] systemd/User, starting a Dependent service

    I am missing something simple here.  I have two services.  Once is dependent on the other.
    I got the first service to start with:
    $ cat ~/.config/systemd/user/[email protected]
    [Unit]
    Description=Syncthing - Open Source Continuous File Synchronization for %I
    Documentation=https://github.com/syncthing/syncthing/wiki
    After=network.target
    [Service]
    #User=%i
    Environment=STNORESTART=yes
    ExecStart=/usr/bin/syncthing -no-browser -logflags=0
    Restart=on-failure
    SuccessExitStatus=2 3 4
    RestartForceExitStatus=3 4
    [Install]
    #WantedBy=multi-user.target
    WantedBy=default.target
    This autostarts upon logging in with i3 and gnome.  No problem (now).
    The problem I have is with the notifier/watcher:
    $ cat ~/.config/systemd/user/[email protected]
    [Unit]
    Description=Syncthing Inotify File Watcher for %I
    Documentation=https://github.com/syncthing/syncthing-inotify/blob/master/README.md
    After=network.target [email protected]
    [email protected]
    [Service]
    #User=%i
    ExecStart=/usr/bin/syncthing-inotify -logflags=0
    SuccessExitStatus=2
    Restart=on-failure
    ProtectSystem=full
    ProtectHome=read-only
    [Install]
    #WantedBy=multi-user.target
    WantedBy=default.target
    Installed it into my namespace, like I did with the parent service:
    $ systemctl --user enable [email protected]
    On system startup/login, the service is "Dead (inactive)."
    But, I can start it manually:
    $ systemctl --user start [email protected]
    And the status of the service shows it logging and working, picking up changes, etc.
    I must be missing a configuration parameter in the service file.
    Last edited by eduncan911 (2015-05-25 14:39:38)

    mauritiusdadd wrote:
    Just a shot in the dark, but try to change the After= and Requires= lines in [email protected] to
    After=network.target syncthing@%i.service
    Requires=syncthing@%i.service
    You know how you stay up late and everything you do right seems to be wrong?
    When I ran:
    systemctl status [email protected]
    ...it showed inactive (dead) and is the reason I made this thread. 
    Changed it to this:
    systemctl --user status [email protected]
    Allowed me to see it started.  *head smack*
    And btw, I tried "syncthing@%i.service" and it worked too!  I reverted back to "[email protected]" to verify %i fixed it, but it started as well as before.  So "%i" seems agnostic and would work as well.

  • How to control the processing of the request?

    I have something like this:
    <h:inputText value="#{sessionController.currentRowData.settlementId}"/>
    <h:inputText value="#{sessionController.currentRowData.remark}"/>
    <h:inputText value="#{sessionController.currentRowData.fromDate}">
         <f:convertDateTime pattern="yyyy-MM-dd"/>
    </h:inputText>
    The currentRowData object is the currently selected row of a data model.
    Problem is, the model is updated with the value of the components whenever the form is submitted,
    and regardless of whether the value of the components has changed or not.
    (Actually, the behaviour depends on the type of the property, as ie. Date is treated differently from String or int.)
    This causes unwanted changes to the model, and, if a new row is selected, it will at once
    be updated with the values of the previous row (from the current state of the components).
    I want the above components to update the model only if the user wants to, ie. only if a
    specific command button is pressed.
    How to control this?
    Let a PhaseListener check the request, and do renderResponse on the FacesContext if
    the "selectRow" request is found in the request parameter map?
    This is not very elegant, and it does not seem to work either. If setting PhaseId to APPLY_REQUEST_VALUES, the action itself (selecting row)
    will not be executed, and if using UPDATE_MODEL_VALUES, the value of the components is set from the request (even if unchanged), and not updated according the the new data in the model (the rendered values does not reflect the values of the properties of the object the components are bound to)
    Another solution might be to let the "disabled"-attribute of the inputText tags be dependent on whether
    a specific "edit"-button has been pressed (disabled inputText tags are rendered correctly after a row change).
    But a better solution would to have the ability to control the behaviour, something like
    "for these components, no updating of state should be done unless the condition c is true"
    (I'm not sure what condition this could be, though).
    Whatever solution I may end up with, the real problem seems to be that the state (and hence the model)
    is updated from the request also in the case where the value in the request is the same as the current value of the component.
    Or maybe there is something I have missed here?
    erik

    This one is a tricky problem - a side-effect of JSF doing a lot of things automatically is that sometimes it does too much.
    I don't have a great solution, but here's a couple of ideas:
    (1) Try using multiple <h:form>s on your page (not nested one inside the other, but separate). Data will only get updated in the form that contains the button that got pressed.
    (2) Use an intermediate model layer, and discard updates as appropriate.
    Neither of these are beautiful solutions - the second is way ugly - but they might help. Long-range, I'd love to see something like "subforms" supported in JSF that can provide finer grained control over what gets processed (validations, model pushes, etc.) and what doesn't without resorting to the blunt hammer of multiple HTML forms.
    I'm a little confused about "the model is updated with the value of the components whenever the form is submitted, and regardless of whether the value of the components has changed or not.", because JSF is checking the old value and using ".equals()" to see if its changed. Note, however, that it's not caching the old value across the request, but simply going back to the model on the subsequent request, which may (or may not) explain the behavior you're seeing.
    -- Adam Winer (EG member)

Maybe you are looking for

  • Goods Return to Store against Process Order

    Hi, Tell me how to do Goods Return to Store against Process Order For E.g. Process Order X having Material M1 with Requirement Qty 100 Kg as per BOM specification and Issue Qty using COR6 is also 100 Kg but due to less Consumption 20 Kg is required t

  • After Installing OSX 10.9 my App Store.App crashes always

    I'm not able to install any Software from App Store - how to fix???? This is the Error-Message: Application Specific Information: Bug in libxpc: Domain bootstrapper failed to respond. It is likely crashing in a loop.

  • Combining report Output of 2 Reports

    Is it possible to run a report in which we run another report and i get the combined output as 1 PDF or html file. I have sections of report which can run seperately and also those output of sections can be taken together and thus needs to be shown c

  • RAR - management view - Role Analysis diagram shows zero

    Hello, we were able to run the Full Sync for role/user/role and Batch Risk Analysis user/Role/Profile and Critical Acess to completion successfully. In the Informer tab, Managerment View, the risk Violations and Users Analysis shows reasonable figure

  • Time Capsule - username iMac's Sparsebundle temporarily unavailable?

    TC appeared to be doing a full backup when first connected (used cable rather than wireless). Since then whenever I try to access TC it just says resource unavailable. Time Msachine tells me the latest backup was the date I did the first backup. Sinc