Run a single instance of jar

It is possible to run multiple instances of a jar executable. Is it possible that only a single instance of the jar runs? If I use a exe wrapper like JSmooth or Launch4J, the exe can be made to run as a single instance. But since there are no such wrappers for linux, I need a way to restrict the jar to a single instance.

I'm not coder, sure maybe I missed lots of ..., but with ZOO what I tried, I'm (still) more satisfied with the combination Db (aplications tier) plus SingleInstanceController (GUI response), one for them (on program crashes) always d.i.e.d.
heavens I have got (I think that) your example from OldGoodSunForum about that (classes RunOnceUserSocket + Interlock)
Edit:
++ someone once wrote a book about ...
Edited by: mKorbel on 20.4.2011 0:55

Similar Messages

  • Siebel Instance Strategy – Single Instance or Multiple Instances – Advantag

    Folks,
    We are looking for any white papers on Siebel Instance Strategies. We currently have 5 Siebel individual instances deployed over last 10 years for different business.
    Is it a good idea to merge all these instances into one?
    May be merge to say 3 instances depending on the objects we are using?
    What are the challenges, organization structure, field extensions, column extensions, workflows, what should be looking at?
    To answer these questions are there any white papers? Any documentation on how to merge two or more production instances?
    Any input / pointers would be appreciated.
    Thanks.

    user10751811 wrote:
    how do I find out if my db is running a single instance or multiple instance. I got oracle9i. thanks in advance.Db, on one single machine doesn't run with multiple instances. On a machine,there would be a single instance that would be running. What's important to know that whether its possible for your db to run multiple instances for it or not? For this, you can check the value of the parameter cluster_database is true or not? If its true, your db is RAC eabled and can use multiple instances. If false, you would have a 1:1 mapping of database and instance.
    HTH
    Aman....

  • Does Oracle RAC improve performance over single-instance db

    Hallo!i am running a single instance db that seems to be overwhelmed by workload as CPU is constantly 100% utilized despite code and instance tuning and users persistently complain of system slowness.
    It is our plan to uprgade to more powerful servers but would also like to implement load balancing to have 2 instances and 2 servers share workload via RAC solution.
    Some of peers state that RAC mostly a High Availability solution to enable continuity should one instance fail.I would like to know if db performance would improve on RAC as load balancing between 2 or more instances occurs in a RAC setup.
    Thanks.

    4joey1 wrote:
    Some of peers state that RAC mostly a High Availability solution to enable continuity should one instance fail.I would like to know if db performance would improve on RAC as load balancing between 2 or more instances occurs in a RAC setup.RAC also provides scalability - as you have additional servers and database instances to deal with the workload. It is not a mere high availability and redundancy architecture.
    BTW, a 2 node RAC is IMO not a "real" RAC... We also have one of those and I regret not insisting that it be, at minimum, a 4 node RAC - from both a redundancy/availability and performance/scalability viewpoints.
    Simple example - on our bigger RAC we are dealing with about 37000+ row inserts every second (3+ billion rows per day). This workload is only handled (on smallish dual 2-core CPU servers) due to RAC. No way that a single one of these servers would alone (as a single non-RAC instance) be capable to deal with that workload.
    So yeah - RAC is most definitely also about performance and scalability too. (but that does not mean it's a magic wand for solving your performance problems either).

  • Migrate from single instance to RAC manually

    Hi,
    I have a 10g database running in single instance.I have installed grid 11.2.0.2 in two nodes including the node where current instance is running,I have installed 10g again in a seperate mount point in both the nodes .It has the same patches as single instance 10g home.Now how to migrate from single instance to RAC manually.
    Thanks,
    Sekar

    -restore this database into 11g ASM if its not already on ASM.
    -upgrade this database to 11g from 10g on single instance.
    -Now Converting Single Instance on a Cluster to Oracle RAC ,here you have different option to perform this once its 11g database after upgrade.
    using rconfig
    using dbca or manually.
    see detail here
    http://docs.oracle.com/cd/E11882_01/install.112/e24660/cvrt2rac.htm#autoId9

  • How to specify a single instance app?

    Hi
    I've got an app that sets itself up as a menuitem app (using LSUIElement). However I only want a single instance of this app to ever run (even if the bundle is copied to a different location and launched). How does one force mac apps to run as single instance? Any help would be appreciated! Thanks.

    Have you tried setting LSMultipleInstancesProhibited in Info.plist? This key is usually used to prevent the app from launching in another user's session, but I think it also prevents multiple instances in the same session.
    \- Ray

  • Restoring RAC database to single instance

    We run a 2-node RAC instance on 11g (Standard Edition) under SuSE 10 but our remote disaster recovery machine just runs a single instance.
    Is it possible to restore from RMAN in this case and how should we go about it?
    Thanks!

    It is always possible to restore a RAC database backup to single instance. Infact restores are generally made to a single instance. After the restore we convert the database to RAC with required number of instances. Depending on the procedure you use the steps vary.
    -Ravi

  • Can't Install Flash Player, What does "Only a single instance of this application can run" mean?

    I try to follow the steps 1-3, as it shows. After it downloads, after step 2, a dialog box pops up saying “Open Executable File? Then it says it may contain viruses or malicious code and to be careful when opening file.  So I click OK, then step 3 occurs, file name lists as: install_flashplayer11x32_mssd_aih(2).exe.  So then I hit “Run”.  Then another dialog box pops up titling “UI_FlashPlayerInstaller”, and it says “Only a single instance of this application can run”, “OK”. I’ve checked to see if there is another version installed, but I don’t see any.  I am operating a Windows 32 Bit, FireFox,

    Download the full installer from this FAQ http://forums.adobe.com/thread/909550
    Save it to disk, then close all browser windows and run the downloaded installer.

  • Why I can't install adobe keep getting: "only a single instance of this application can run"?

    Hello, Can someone help me with Adobe Flash Player installation ?
    I have tried too many things to install it but keep getting this message " only a single  instance of this application can run. 
    I can't see any Adobe applications, I've tried deleting all files adobe and still nothing.
    I have opened the task manager and try to end the processes related to Adobe manually by selecting 'End Process' and then try to install it, but nothing happened.
    I've tried 'clean boot' but neither worked.I downloaded the 'Adobe unistaller' from the official page and the 'latest version of flash player' but it doesn't work!.
    I've also went on the Adobe website and it said this error message was due to the flash application but I deleted all of those files to and still nothing.
    I've got firefox and windows 7.

    If you haven't done so already, reboot your computer, then re-run the installer you downloaded.

  • Not able to install Adobe 17x32.Getting message  only a single instance of this application can run

    Sir,I can't install Adobe 17X32.I have      Win 7 system.All previous versions have been uninstalled and yet I am getting a message--ONLY A SINGLE INSTANCE OF THIS APPLICATION CAN RUN.How do I remedy the situation?
    Thanks,
    Message was edited by: Maria Vargas
    Removed personal email address, which should not be included in a public forum.

    Hi Viraj,
    Please try the offline installer posted at the bottom of the Installation problems | Flash Player | Windows page, in the 'Still having problems' section.
    Maria

  • "Only a single instance of this application can run" error when installing Flash

    I deleted Flash Player when trying to solve a Shockwave Flash Google Chrome issue, and after being unable to solve it I switched to Firefox. I now can't get the installer to open. I double-click on it, it asks me if I want to run it. I click Yes, then the window closes and the installer doesn't open. When I try running the installer again, I get the error message "Only a single instance of this application can run". I have tried everything. I closed Firefox, restarted my computer, and ran the Flash Player uninstaller. I am running Windows 8.1 64-bit with Mozilla Firefox and I am trying to run the latest version of Flash Players as of October 26 2014. Please help!

    The download link has moved since then: http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player.exe

  • Reinstalling - "Only a single instance of this application can run"

    I had to uninstall Adobe Reader some months back and ever since have been unable to reinstall. I get through the first couple download steps, and click yes to "allow the following program to make changes to this computer", but then it all closes down and sometimes I get the "Only a single instance of this application can run" box pop up. I googled that error message and have spent hours trying every tip on how to resolve it on various message boards but nothing works and I really need to be able to open pdfs again. Thanks for any help you can provide.

    If you are in Windows (which we don't know), you can try using this tool to first remove all traces of Reader from your computer:
    http://labs.adobe.com/downloads/acrobatcleaner.html
    Then, you can download the full offline Reader installer from
    http://get.adobe.com/reader/enterprise/
    After downloading, restart your computer and run the installer before doing anything else.

  • "Only a single instance of this application can run"  Have you seen this yet?

    Hi -
    Please excuse a newbie's ignorance - I've never posted to any forums before :-)
    I am using Win7 Professional and IE9 on a well-spec'd HP PC (4GM Ram, dual core, lost of hard disk space etc).
    I have successfully downloaded Adobe Reader (install_reader 10....exe @ 703kb) using Win7.
    I cannot run this file (I have tried all I talk about here with Reader 9 and with Firefox;  all the same errors noted below get repeated)
    The error message is headed:  "UI_ReaderInstaller" and the text in the message is "Only a single instance of thsi application can run"
    The only option given is an "OK" button and leaves one having achieved nothing!
    I have never had a previous version of Adobe reader on this PC; this is a first time install attempt.
    If I search my PC for "UI_ReaderInstaller" it does not give any results!
    Please might someone more competent that I help me out here?  Maybe you've experienced this and found the solution?  Please might you share your knowledge with me?
    Thanks for reading and giving this your attention.  It is much appreciated.
    Highland D

    Hi Ankit
    Thanks for taking the troubel to reply.  Sorry if I didn't give full information (I thought I had!)
    I have successfully doenloaded the intsaller to my PC (see last post and "PScreen 1" enclosed
    When I try to run it I get the error described in my last post (see "PScreen 2" enclosed).
    I really need your help so thanks again
    Highland D

  • I get this error message: only a single instance of this application can run

    When I try to open my bank statement I get this message: only a single instance of this application can run.  Just wondering what that means,  and how do I open a file with adobe reader?

    Adobe Reader | Edit | Preferences | Security (Advanced)
    That is, start Adobe Reader.
    Chose Preferences from the Edit menu
    Look at the left hand side for Security (Advanced) and click on it
    Now look for the option to turn off Protected Mode.

  • When I try to download the update a box pops up that says "only a single instance of this application can run at a time"

    Help! Every time I try to download the newest update I get a dialogue box that states " Only a single instance of this application can run at a time".

    Hello,
    What error, if any, is being displayed when you attempt to install Flash Player? 
    Please post the contents of the /Users/<YourUserID>/Library/Logs/FlashPlayerInstallManager.log for the install attempts that are failing.  These will be listed at the end of the file.  Each attempt begins and ends with --- log start ---  and --- log end ---.
    Thank you in advance.
    Maria

  • Single instance app with native packaging

    Is there any way to allow only one instance of the app to run with javafx2 native packaging? Like an attribute in the build.xml or something?
    I'm using the .exe for windows and the .dmg for mac.
    Appreciate your help.

    There is no simple deployment build switch that I know of for achieving a single instance app.
    A couple of ideas (none of which I have tried).
    Perhaps you could use the SingleInstanceService:
    http://www.oracle.com/technetwork/articles/java/fxbest-1583679.html "Ensuring Only One Instance of the Application Is Started"
    http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/examples.html#SingleInstanceService "SingleInstanceService"
    It is a jnlp api based service though and I'm not sure if such a service would be available to a packaged app (maybe it would require including the jre/lib/javaws.jar file with your app or something like that).
    You could write out a lock file when the app starts.
    On unix (i.e. mac/linux) the lock could include the process pid for your app. On startup, check if there is a process with the lock pid currently running, if so, don't startup and perhaps send an interrupt signal to the existing app notifying it that the user tried to start a new instance.
    On windows you could read and write the lock value value from the registry.
    To get rid of the OS specific stuff surrounding this, perhaps this kind of lock logic could be implemented using the Java Preferences API:
    http://docs.oracle.com/javase/7/docs/technotes/guides/preferences/index.html
    Intellij Idea is open source and and seems to have this kind of functionality, so you could check how they do it.

Maybe you are looking for

  • How do I convert yahoo email on iPhone FROM IMAP TO POP?

    I have Yahoo Mail Plus. When I first got my iPhone 4, I set it up so my yahoo email was accessible on my phone without my doing anything. I only check the email from two devices: my desktop via the internet, and my iPhone. I'm pretty sure the email s

  • Triple Monitor setup for e9270t

    I have two 24-inch monitors running at 1920x1200 on my e9270t with GTX260 (1792MB), W7 64-bit. I have an unused 23-inch monitor I'd like to use. I didn't think I could just slap any old video card in. Recommendations? This is not a gaming rig, I just

  • No extensions for downloads

    Sometimes when Safari downloads files, mainly images, it doesn't save with an extension. I have to manually rename it with ".jpg", or whatever file type it may be. Anyone else experience this? OS X Yosemite

  • I bougth account in palringo by mistake how can I cancel it??

    I bougth  account in palringo by mistake how can I cancel it?? Please I loss 4.99$

  • Ebook reader for the N80

    Hi all Does anyone know if there if there is an ebook reader for the N80 that can read .lit files? Thanks Marv