Stop a stand-alone and web app from starting in an App Server

I want to programmatically shut down an application from starting, e.g., mid-way in its start, if a certain condition is raised. I do not want code as System.exit(int) as this API will terminate the entire JVM and more than 1 application running in the JVM will be shut down. My goal is to stop the start process of only one application that is running in the same shared JVM. The JVM is running more than 1 application.
Obviously, throwing a Runtime exception (throw new RuntimeException())does not stop the application - application still gets started.
I want a solution that will work for both stand-alone application and a web application. However, if I have to use two different approaches (one approach for stand-alone, another for web), I will be fine with that approach.
I am using WebSphere 6.1 as application server.
Please suggest what are my options to stop the application from start for both stand-alone and web application.

There is of course no general solution to that.
Consider the following.
1. Initial thread starts 10 threads, and then it exits.
2. One thread determines that exit should occur.
3. How do other threads get terminated?
...and a web application.Conceptually that is a bit suspect. If you don't want it to run then the simple solution is don't install it. In general you don't want a web app to "exit" if a known error condition occurs. For example it shouldn't exit if the database connection fails but instead the behavior should change until the database connection is restored.

Similar Messages

  • Music spontaneously starts, stops, stutters at random and I'm not even using that app. Repeated attempts to pause the song and close the app have no affect. Just keeps popping on and off randomly no matter what I'm doing at the time.

    How do I eliminate this glitch?  Music spontaneously starts, stops, stutters at random and I'm not even using that app. Repeated attempts to pause the song and close the app have no affect. Just keeps popping on and off randomly no matter what I'm doing at the time. I tried double-clicking the Home button which brings up all of the active apps, touched and held the Music icon until all the icons started wiggling, tapped the Close icon in the upper left corner of the Music app to close the app completely, but the app is still open and still randomly stuttering. I did notice that the play button icon flashes in the upper right corner of the screen when this happens and it appears and disappears in concurrence with the Music app stuttering. When the music starts, the icon appears and when it stops, the icon disappears again. When the music stutters on and off, the icon appears and disappears rapidly and in sync with that random glitch. This just started today for no apparent reason. I turned the iPad off, waited 30 seconds and turned it back on. As soon as it was finished starting up, the same music glitch began again immediately. I'm using iOS 6.1.3.

    Well, no one seems to have any answers or ideas for me, I'll update what I've been able to accomplish.
    I reloaded all 14 disks in the time frame of watching Lord of the Rings on Fri. nite.
    Funny thing is, the first disk pulled the info from the online store! Hooray!
    Wait-then all the next 13 could find no information online...what the heck is up with that? So I MANUALLY assign each disk a new track # to co-inside with each disk, spent about 2 hours doing that.
    But still, itunes tells me my playlist is too large, there's not enough space on the ipod. so I unchecked 1 1/2 disks (I'd listen to 1/2 of disk 1 previously) and voila! there's my ipod full of my book. Finally. But what a lot of bother just to keep things in order!

  • Upgrade process for SQL server 2005 service pack4 on stand alone and cluster servers

    Hi All,
    We have iniated a process of upgarding sp4 for all sql 2005 stand alone and clusters servers.
    Please provide me the step by step process for installing sp4 and roll back paln for sql 2005 servers.And before proceeding with sp installation what are the pre check/pro active things that we need to take care.
    Maheshwar Reddy

    Hello,
    For applying SP to SQL 2005 cluster environment/standalone please refer to below link
    http://www.sqlcoffee.com/Tips0007.htm
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Upgrading to CS6 Design and Web Premium from CS4 Design Premium Install Failure

    I am trying to upgrade to CS6 Design and Web Premium from CS4 Design Premium on Win 7 (32bit).  I am nistalling from the DVD which was purchased from the Adobe Store.  The box says it is for Upgrading from 4 or 3x.   I am entering the CS6 serial number and it is able to validate it.   When it goes into the Preparing to Install mode  the status bar never changes and after what seems like a very long time the Installation failed message is displayed.  I ran the Adobe Support advisor and  followed the link to the page that tells you how to resolve the issues and chose to go into the registry and look for "In Progess".  There was no "In Progress".     I have the serial numbers for CS4 and CS6 so they should be valid given that both were purchased through the Adobe Store.   I am very frustrated!!!!!!!!! 
    Installation Status:
    Installation failed:
    Adobe Advisor Results:
    Regestry:

    I downloaded and installed the Application manager and re-started the installation.  This time it got to installiing the applications and after 3 hours it was only 55% completed and showing that it was installing Acrobat  and had 2 hours to go. It seemed to be stuck so I cancelled the install.  

  • I've a "bug" with the apps downloading. This one stops at the end and stays like that infinite. The app doesn't appears normally on the homescreen. Someone can fix this?

    I've a "bug" with the apps downloading. This one stops at the end and stays like that infinite. The app doesn't appears normally on the homescreen. The app is on the home screen, and its downloading is blocked at its end, without showing the app like it should when it's finished downloadung. Does someone can help me and fix this please?

    Hi Tom
    Thanks for replying!
    I had heard that these switches didn't stack unless everything was identical.
    I only tried it at all out of pure desperation.
    I've applied and tested every version 3 firmware in standalone mode via a console cable and xmodem.
    They either never come up properly receiving decompression errors and reboot constantly in a loop.
    Occasionally they stall / jam and stay there displaying the same error with no rebooting.
    And twice out of 80-100 times I got it to boot to the username and password screen in standalone mode.
    But as soon as I made a change it crashed and started the rebooting cycle again.

  • P6 stand alone and network installed to same pc

    Dear Member,
    i have a question, is it possible if i'm installing P6 stand alone version and P6 network version to the one desktop pc, and running together?
    please advice me, because our client requested to me, he want to install P6 stand alone and network version together to his pc, i told him, it's impossible. please make sure for this case
    thank you

    Hi,
    Yes, you can install P6 stand alone version and P6 network version to the one desktop pc.
    But, at a time you can login on a single database only, you just need to select the database at the time of Login i.e. when you are login to standalone, select the standalone database and when you want to login to network version, you need to select the network database.
    Regards,
    Amit
    Edited by: 1002854 on Apr 27, 2013 12:41 PM

  • When I try to install CS6 Design and Web Premium from a disk I get this message "We are unable to validate this serial number..." What is the reason for this?

    I purchased a disk copy of CS6 Design and Web Premium from a reputable seller last week and when I try to install it with the serial number I got it says "We are unable to validate this serial number for CS6 Design and Web Premium. Please contact Customer Support." What is the reason for this?
    Is the serial number invalid?

    Hi Ned,
    Thanks for the suggestion. I eventually got in touch with Adobe Technical Support and it turned out that my Adobe Application Manager was not the latest version. They downloaded the latest version and installed it and that seemed to solve the problem. I was able to install my CS6 Creative Suite and validate the serial number. All seems to be going well at the moment.

  • PDC demotion to Stand-Alone and re-promote to PDC

    I have to change the account credentials that were used to add PDC services to my ODM. My questions is that if I demote this PDC to stand alone and then re-promote it back to a PDC using different account credentials will I have any problems?
    One issue I'm concerned with is whether or not anyone will be able to login. Another concern is if it will mess up all of the Windows computers currently attached to the PDC. If it does mess it up will I have to add them all back (roughly 200 W2K/XP clients) to the domain?

    If the PDC is demoted and repromoted using a different username. The Windows computer will still connect as they did before.

  • Just purchased Lightroom (stand alone) and asks for a previous serial number. I don't have one only an students version of photoshop for which I can't find the serial number

    Just purchased Lightroom (stand alone) and asks for a previous serial number. I don't have one only an students version of photoshop for which I can't find the serial number

    If it is asking for a serial number for a previous version then you purchased an upgrade version rather than a standalone version.  You should be able to determine this based on the price you paid.  If you do not own an earlier version then you need to purchase a full version rather than an upgrade.  If you did purchase a full version but acquired an upgrade version then you will need to acquire the full version.
    Contact Adobe support thru chat to help get resolution...
    Get help with orders, refunds, and exchanges (non-CC)
    http://helpx.adobe.com/x-productkb/global/service-b.html ( http://adobe.ly/1d3k3a5 )

  • Removing Apps from iPhone using iTunes Apps Sync Apps doesn't work

    Im trying to manage the space on my iPhone 4 16GB, so when I go on hiloday I have enough space for photos and vacation movies.
    When plugged in, iTunes shows my apps in the Apps tab. (it actually shows an extra page of apps which are not installed on my phone)
    In iTunes I used to hover over an app, click the x to remove, confirm the prompt to delete and finally, sync. The app was gone from my phone.
    Now this doesnt work.
    The other way was to uncheck the app from my list of apps (in iTunes Apps tab), and then sync.
    This doesnt work either.
    I'm sure I used to use this method previously.
    This is especially handy because itunes lists the applications by size, so I can easily see the ones that will free up the most space.
    Is there any way to remove apps from the iPhone WITHOUT DOING IT ON THE PHONE?
    Note: I have 'Sync Apps' ticked & 'automatically sync new apps' unticked.
    Im running:
    Macbook Air 2012
    OS X 10.8.1 64 Bit
    Itunes 10.7(21) 64 Bit
    iPhone 4 iOS 6.0 (10A403)

    Are the apps in your iTunes library using the same AppleID as the one signed into on your phone?

  • Hello guys i face a problem when i upgrade from iOS 4.2.1 to iOS 5.1.1  .when i upgrade i don' t found the camera app from the built in apps.when i try to install from the app store i don't  found the correct camera app .please help me .

    hello guys i face a problem when i upgrade from iOS 4.2.1 to iOS 5.1.1 on ipad 3 .when i upgrade i don' t found the camera app from the built in apps.when i try to install from the app store i don't  found the correct camera app .please help me .please give any suitable link where i find the correct camera app

    It's a built-in app, so it can't be deleted nor downloaded from the store. If you can't find it on any of your homescreens or app folders, and you can't find it via the spotlight search screen (swipe your first home screen to the right), then is it hidden by Settings > General > Restrictions > Camera being set 'off' ?
    If not then have you tried a reset to see if you can find it after the iPad has restarted ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Starting Windows App from J2EE Studio Creator App

    Hi,
    Does anyone know how to start a Windows application with arguments that is on the same windows server running the J2EE application? I'm using Studio Creator to build the application and it needs to start a Windows app to perform some tasks. The app will run in the background and exit by itself when done.
    Thanks,
    Ron

    Heres an example of how I start a windows app from within a swing application, I am passing the url of the db.
    String temp = "192.168.11.70";
    try {
    Runtime.getRuntime().exec("command.com /E:1900 /C C:\\Progra~1\\mts\\freight.exe "+temp, null);
    catch (IOException ex) {
    Regards
    Jonathan

  • I'm downloading my apps from my desktop, but when i'm downloading apps from my laptop, the apps can't be transfered. what setting could i adjust so that i could transfer my apps from my laptop to my ipod touch4. Thank you very much-ariston

    i'm downloading my apps from my desktop, but when i'm downloading apps from my laptop, the apps can't be transfered. what setting could i adjust so that i could transfer my apps from my laptop to my ipod touch4. Thank you very much-ariston

    You can only sync to one iTunes Library/one computerbut you can manage music among different computers.  See:
    Using iPhone, iPad, or iPod with multiple computers
    The only way to sync app from the desktop computer is to make that the syncing computer.  You can't sync app from more than one iTunes Library/one computer.
    To make the desktop computer the syncing computer you have to:
    - get all apps and other item on the desktop computer
    - Authorize the computer for the iTunes accounts inquestion
    - Connect the iPod to the desktop computer and make a backup by right clicking on the iPod under Devices in iTunes and selecting Backup
    - Restore the iPod from that backup

  • How do I prevent iTunesHelper.exe and iPodService.exe from start-up?

    How do I prevent iTunesHelper.exe and iPodService.exe from starting every time I boot my PC. I want them to start only when I start iTunes.
    Thanks!
    Dave
    St. Louis

    Hi,
    iChat version through from version 2 to version 6 allowed you to choose whether to Save Transcripts of iChats.
    It was a setting in the App Menu > Preferences > Messages pane.
    In Messages beta this now longer happens and "Saving" is obligatory.
    By default the Chats are stored in a folder called iChats and this is normally in the Documents folder.  (they are still called iChats in Messages).
    In addition Messages Beta also stores some iMessage info in the Home Folder/Library/Messages
    You can access this via the Finder > Go Menu and holding the ALT ley to see the Library listing (It is normally invisible)
    The info is held in the chat-db database.
    At present you cannot turn Off saving the transcripts.
    10:17 PM      Friday; June 8, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.4)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.7.4),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Snippet to start one an element and prevent another from starting

    I need help. I need a snippet to start one an element and prevent another from starting. they are at the same place in the timeline and need to be there for other elements. but right now when I click one the other plays also how do I stop one from playing when the other is clicked?

    I need it to show. its a header and a footer that move in and out. but they need to stay on the same timeline in order for the side controls that move in and out from the side. because when they play they move the header in and out. lol did you get that? Thanks for the comment.

Maybe you are looking for

  • PLEASE HELP..A FEW MINOR (HOPEFULLY SIMPLE) BUT SERIOUS PROBLEMS

    I just started cleaning my comp out after MUCH TIME.....I accidentally delted the iMovie that came with the comp, the iMovie HD 6 i downloaded for it since the new ones layout isnt pro at all, iPhoto, DVD Player and I think thats it. So I need help g

  • Nokia 2330 memory

    Hi. I bought a nokia 2330 classic and I was told it had a 32 Mb internal memory (on each technical specification pages about this phone this is also noted). Now, when I search inside the phone, I can't find that much memory, just about 11 Mb... I upl

  • SP02 showing update was terminated and not showing Spool no and other data

    Hi Friends, Can anyone guide me in the below problem After going to change mode of transaction when i go to message and i have done repeat output and further data and communication methods. After that i have saved document. After that when i enter in

  • Where is this icloud folder?

    I was searching my computer for this PDF magazine I found the the magazine but not the right month. I figured the other month would be in the same folder as that one... I went to 'open in enclosed folder' But this file seemed to not have an enclosing

  • Why is "genius for apps" using location services?

    I noticed that in iOS 6, that there is now a "genius for apps" entry under the location -> system services.   Every time I go in there it shows as having been recently used (purple), despite me not having used the App Store genius recently.   It does