How to Open Application just once !

I created a simple application but I dont want that my application be opened twice !
How to verify if my application is already running ???
If it is running is there any way to communicate with it ?
Tnx !

Hi,
There are several possibilities for this situation.
1 - first session gains a lock on a certain file (with a predefined or hard-coded name and location)
second session will be unable to gain a lock on the same file and will thus know that the
application is already up and running.
2 - first session opens a port (with a predefined or hard-coded number).
first session writes some opening message to this port.
first session starts a thread which will listen to this port each ... minutes/seconds.
second session opens port, writes some opening message to this port
first session receives the message through the port and will reply some notification
and request for closing session 2.
session 2 will close.
Several solutions are possible for running a limited number of occurences of the same application,
for running all applications within the same JVM, and more specific control over the startup-process.
Different kinds of information for controlling this setup-step can be transferred via (known) files and ports.
Also take a look at sockets and java RMI.
kind regards,
Koen

Similar Messages

  • Re: How to open application in english ?

    Ok, if nobody has comments, consider this final.
    The title should be "How to open application in english" though (without question mark).

    Solved by using InteractiveFormUIElement in the mode:UsePdf.

  • How to open firefox just this once without prior sessions restarting?

    Last session I stumbled on a site infected with malware. Now, each time I reopen Firefox, the old sessions restart, as usual (and as I want them to, except for now), going immediately into the malware problem again.
    Firewalls and anti-virus are handling the problem ok so far, but obviously I can't keep opening Firefox and banging against the malware.
    How to open without restoring previous sessions? I'm not talking about changing the default setting, not talking about having it never restore sessions. Just this time, how to get around the automatic restore of sessions?
    Thank you.
    == This happened ==
    Just once or twice
    == I stumbled on an infected site ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; AskTB5.2)

    Set the pref [http://kb.mozillazine.org/browser.sessionstore.max_resumed_crashes browser.sessionstore.max_resumed_crashes] to '''0''' on the '''about:config''' page to get the about:sessionrestore page immediately with the first restart after a crash has occurred or the Task Manager was used to close Firefox.
    See https://wiki.mozilla.org/Session_Restore#Preferences
    http://kb.mozillazine.org/Browser.sessionstore.max_resumed_crashes
    See also http://kb.mozillazine.org/Session_Restore#Firefox_keeps_crashing_after_restoring_a_session

  • HOW TO OPEN APPLICATION SERVER GRID CONTROL

    hi,
    i m working on application server 10g on windows i want to open application server grid control but not been able to how to do this .
    how to know path to put in browser ?
    any one can help me ?
    thks
    bye

    I think Metalink NOTE:280116.1 covers changing the ias_admin password when it's forgotten.
    Basically, you edit $ORACLE_HOME/sysman/j2ee/config/jazn-data.xml and remove the <credentials> property.
    Then you can reset the password with: $ORACLE_HOME\bin\emctl set password reset <new password>
    Or, sounds like you can put the password into jazn-data.xml (NOTE:280587.1) by editing the <credentials> property:
    Replace the existing encrypted password with the new password.
    Be sure to prefix the password with an exclamation point (!). For example:
    <credentials>!mynewpassword123</credentials>

  • How to open applications with Automator?

    How would I got about opening, say, Contacts, Mail, etc using Automator? I then will want to map it onto F13-F19.
    I'll also want to open specific Web pages by pressing a Fn key.
    FWIW, with the method described in this article I can open Contacts but then it tries to open specific contacts (I think) and results in a dialog I have to dismiss. I just want to open the app.
    TIA,
    David

    Sorry, I meant to provide the article's URL: http://www.makeuseof.com/tag/fkeys-launching-applications-finder-items-mac/

  • Apple Macbook wont open applications just closes down saying " application has closed unexpectedly"

    any ideas how to fix this , its doing it for safari , photo booth , msn ect, thankyou !

    Hi L,
    Try this url that appears in the middle of your log lines:
    ... Lockdown</name><value>false</value></Parameter><Parame ter><name>UserIsAdmin</name><value>true</value></Parameter><Parameter><name>Int e rnetSharingUrl</name><value>http://www.affinegy.com</value></Parameter><Parameter><name>LaunchSilently</name><value>false</value></ Parameter><Parameter><name>SetupRouterType</ ....
    Check also your Login Items for your User Account under System Preferences > Accounts. You can remove it from the list. Good hint this one, as I just opened mine and found an app that I do not want to start at login and did not know that was there.
    Good luck, K

  • How to open Applications using Plugins

    How do I select a plugin to open an Application in the Applications options menu? For example I want MPEG movies to open with a plugin such as Quicktime Plugin or Windows Media Plugin or DivX WebPlayer Plugin instead of using an external media player. When I try to do this in the Applications menu the plugins do not show up unless they are already selected by default and when I try to go look for them using "Use Other ..." I cannot select them because they are not considered applications.

    Did you check under all other folders other than the 2 you have mentioned ?

  • How to open application twice in same browser  (cookie problem?)

    We want to be able to open the same Apex application for a test and a production system simultaneously. Settings between the two environments can then be easily compared for example. Unfortunately it seems that both sessions place information in the same cookie and navigation in one application influences the other.
    The workaround we use it to run both sessions in a different browser i.e. IE and FF.
    Is there another way around this?
    (apex 4.02)
    Edited by: Rene W. on Jul 31, 2012 12:04 AM

    Rene W. wrote:
    Thanks for the reply's
    @Erik-Jan
    The cookie name you enter in the authentication scheme seems to be a static field. We deliver standard software packages so that value will be the same for every installation. Unless the value can be determined at runtime?
    @Dietmar
    That could be a workaround. What contributes to the problem is that although test and production usually run on different DB servers the Apex listeners run on one server but on different ports.We had the same situation. The problem is that the cookie does not distinguish between different ports.
    Our solution was to setup the apex listener/OHS slightly differently. I think it was inside the mod_plsql config or http.conf, where you can set the url path.
    Meaning instead of connecting to
    <pre>http://localhost:8080/pls/<b>apex</b></pre>
    we connect to
    <pre>http://localhost:8080/pls/<b>apexdev</b></pre>
    The result is that the cookie path is different. And there will be a new cookie for each path. And as long as all the environments have a different path, their cookies will all be separatly stored from each other.
    However if you use the EPG, I'm not sure how this setting can be changed.
    Edited by: Sven W. on Jul 31, 2012 12:19 PM
    Edited by: Sven W. on Jul 31, 2012 12:23 PM

  • After Effects CS5.5 Wont Open - Application Just Bounces In The Dock.

    Hi all,
    I appear to have encountered a problem with After Effects... I was working on a project earlier today which usalizes a VideoCopilot plug-in called Element 3D. After a quick break I came back to the project and attempted to load in the 'Free Earth Project' by VideoCopilot. (http://www.videocopilot.net/blog/2012/08/free-earth-project-for-element-3d/). As their site suggests, I had to place a downloaded project folder called 'Earth' into Element 3D's 'My_Models' folder. Immediately after this I tried loading After Effects and encountered the issue. I'm not sure if it's couincidence or directly related which is why I am posting here.
    After Effects does nothing but bounce in the Dock. When I right-click the application I'm met with a 'Force Quit' option, and a message saying "Application not responding". I'm on OS X 10.7.4. I'm not able to tell you what version of AE I'm running, only that it's CS5.5, as I cannot lanch it to find out. All other Adobe products work with no problem.
    I have already contacted the support team at VideoCopilot and they have sent me an updated build of Element 3D in an attempt to resolve the issue, unfortunately though this did not work. Addiitonally, I have tried booting into Safe-Mode and tried to launch the application from there, as well as using Disk-Utility to 'Repair Permissions'. All of these steps have failed to get AE working again.
    If anyone knows of a way to fix this I would be most grateful. I'm working to a very tight deadline and am afraid that I will miss it. Additionally, if anyone has any fixes that doesn't require reinstalling applications that'll be a bonus!
    I've also attached a crash-report to this post incase it's of any use in determining the cause of the problem (I couldn't find a way to attach it directly, so the file is hosted on my website - I apologise in advance if this is against forum rules!) -  http://www.starfireindustries.org.uk/uploads/8/6/6/1/8661295/ae_error_report.rtf
    Thanks in advance,
    John.

    Something similar here:
    https://discussions.apple.com/thread/3826648?tstart=0

  • How to load content just once???

    OK I so I have two swfs loading into a content area from the
    click of one button. But everytime the user clicks on that button
    the addChild keeps happening. Any ideas as to why that is and how I
    can stop it? Thanks guys

    quote:
    Originally posted by:
    kglad
    when you prefix a variable name with var, you're making that
    name local to the function (or timeline) that contains that
    declaration.
    therefore, if you want to use that name outside the function
    or upon function re-entry, do NOT prefix with var.
    I am sorry for my ignorance on the actionscript subject but,
    anytime I remove the var prefix I get errors all over the board

  • Cannot open application Page for anonymous user

    Hello,
    I have a share point site that allow for anonymous .
    I create an application page that inherits from "UnsecuredLayoutsPageBase".
    When I open the page as anonymous user , the result is 
             "The web page cannot be found"
    When I lo-gin to the site , the page opened successfully.
           So how can Open application Page for anonymous ?
      Thanks
    ASk

    Have you overridden the following property in the page?
    protected override bool AllowAnonymousAccess { get { return true; } }
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • How do I install creative cloud when application manager opens and just sits there?

    I have downloaded creative cloud but when I double click on the icon, application manager opens and just sits there, advising me what apps can be installed or try; how do I get creative cloud installed

    attach a screenshot of your cc app if you are unable to click an install button, http://forums.adobe.com/message/4209263#4209263

  • How do you "pause" an open application, like Mac automatically does when the memory is full?

    How do you "pause" an open application, like Mac automatically does when the memory is full?
    I would like to do so proactively when I am not using a certain program but need to keep it open, and I want to free up computer resources.
    In other words, I want to keep a given program open, but stop it from "thinking".

    There is an application that I can only open a set number of times before it expires.  Every time the program closes, you get one less use out of it.  I want to use it as long as possible, so I thought I would just keep it open all the time.  However, it consistently turns on the fan on the computer, so I imagine it uses a lot of resources.  I got the idea after the Force Quit program "paused" it once after getting overloaded with all the apps I had open.  It stopped the fan, and I was able to open it and run it again later with no problems.  The tricky thing with trying to intentionally overload the system is that it's a hit or miss on which open program the OS will pause (to my knowledge).

  • I just purchased monthly plan for creative cloud.  I understood the plan included photoshop.  But no idea how to open photoshop app.  just keep looping into screens which instruct me to purchase creative cloud.  hugely frustrating.   on hold forever with

    i just purchased monthly plan for creative cloud.  I understood the plan included photoshop.  But no idea how to open photoshop app.  just keep looping into screens which instruct me to purchase creative cloud.  hugely frustrating.   on hold forever with customer service.

    First check to see your plan is active: Adobe ID
    Try launching Photoshop choosing Trial instead of a purchase.
    Mac             /Applications/Photoshop CC/Photoshop CC.app
    Windows  C:\Program files\Adobe\Adobe Photoshop CC\Photoshop CC.exe
    Then once inside, go to Help > Sign in...  There, use the email address and password for your account and it should activate.
    If that does not work, could you tell me what version of PS you have and what os version you are using?

  • HT2474 when I am opening any application including safari, these icons are not showing in dock, how to get open applications in my dock?

    when I am opening any application including safari, these icons are not showing in dock, how to get open applications in my dock?

    This could be a plist corruption problem, but I'm not sure.
    Sometimes, the preference list files get corrupted. You can usually just remove them and they'll get re-created. This may require you to reset certain settings. A notable exception to this is the Mail plist which actually stores the Library structure of your email accounts. Deleting the Mail plist will definitely cause lots of problems, but is recoverable.
    The plist files are stored in the /Users/username/Library/Preferences/ folder. They usually have the naming convention of com.company.programname.plist.
    A simple troubleshooting technique is to move a suspect plist file out of the Preferences folder and start up the app, again. It will re-create the plist from scratch.
    In your case, I would try the com.apple.dock.plist. You can use Activity Monitor to kill the Dock app and it will restart. Or, you can log out and log back in.
    There is a new file with Leopard called com.apple.dock.db. I haven't figured out what it does, but you might try moving it out. If anything gets worse, you can move the old file back in replacing the newly created one.
    This all sound somewhat odd, so I don't know if this will help.

Maybe you are looking for

  • Finder won't launch - tried everything - HELP!!!

    Okay... So following all of the sudden, the finder won't launch. Clicking on it on the dock doesn't work, and I can't use force quit to relaunch it (obvious, since it wasn't launched in the first place). Rebooted several times, to no avail. Further n

  • Ovi player feedback

    Hi I have some feedback and requests on the Ovi player and didn't know where to send it so I just post it here. I like the simple clean style of the player and   1. First and foremost is the syncing. I have a N97 so I can store all my music on the ph

  • Photoshop Elements 5 - Plugin Problem

    I own Photoshop Elements 5 and I found this free plugin called: quick mirror from this site: http://www.mehdiplugins.com/english/quickmirror.htm I've never had a problem loading/installing before now. I have a new Windows 7 laptop and when I put the

  • F4 for an alv field.

    Hi there, I see that this thing has been appear previously on the forum but I did not reached the solution using the 3ds anout it , I need to add an f4 or a matchcode to the field 'MWSKZ' (from the table T007A)  in my table I tried to add the code I'

  • Weird problem with playing videos on v2009.08 with KDE desktop

    Hi all. my weird problem is; i see a transparent box instead of video, in all players! in addition VLC immediately be killed in case of playing vids. i also tried that with compiz effects disabled but it didn't work. plz help me about this.:(