Is there any way to get an application to load automatically on server start?

We're trying to implement a load-balancing mechanism between FMS hosts in a virtual "farm".  The mechanism we're using is to have the FMSs periodically send "load" data (along with a timestamp) to an application server.  That server will then use that load information and timestamp to detect when an FMS server has gone down and to make stream assignments to FMSs.
Right now, I've implemented this code via a setInterval() in live/main.asc.  I've added a "return false" to Application.onAppStop() to (according to the docs, I haven't tested this yet) keep the server from shutting down an idle instance.  So I've left with a "chicken and egg" issue: how do I get the interval running before the first request hits the application (and forces the load of the application)?  I've tried putting the setInterval in onAppStart() and as a global.  In both cases, it only gets executed after application is loaded.
So, is there any way to force an application to load (via a config file parameter or local command-line)?

Hi,
I am sorry i have not read the full details what you wrote, but if you are looking for loading of application on start of the server, there is a configuration tag in application.xml called loadonstartup and by default it is set to false. Set it to true to enable it and all the apps will be loaded on server start.
alternatively , you can make an application.xml inside the application folder and set this tag to true, to have this applied only to a particular application,
Also, the fms admin console can launch a new instance of an app without any connection being made initially.
Thank you !

Similar Messages

  • Federal court website gives a .pl document which opens as garbage until we manually change it to .pdf, is there any way to get Firefox to do this automatically?

    I am using a Mac. When downloading a document from the federal court website using Firefox, we get a .pl document which opens as garbage (in TextEdit) until we manually change it to .pdf, which causes it to open just fine (in Preview). It used to work fine, giving a .pdf document every time, but apparently upgrades to Firefox have removed this functionality. As far as I can tell my computer, an iMac running Mac system OS X 10.10.1, does not recognize the .pl format. Is there any way to get Firefox to automatically convert a downloaded file from .pl format to .pdf format? My friend tells me that Google Chrome downloads these documents with no problem. I would prefer to stick with Firefox but I might have to change if every downloaded document is in an unreadable format.
    This is a typical example of what I get when I try to open a .pl document (the pdf version is a one page document using plain English):
    =====
    %PDF-1.5
    %‚„œ”
    2 0 obj
    <</Length1 15628/Length 10121/Filter/FlateDecode>>stream
    xúÌ{i`U∂9∑™∫;kWoYÈtuöK“ÑR@“ F!,Å$ñêÑÑd Ç䆆¢≤)
    ¢Ääƒet\FeûN࣌∆y3"ÈÔ‹Í|Ûæ˜˝˙˛LUNü{œ›Œ=€=∑i

    HI jlawrence1,
    Is it possible to associated the pl file mimetype with an application? [[Applications panel - Set how Firefox handles different types of files]]

  • Is there any way I can have a program like PocketCloud's server start at reboot, even before any user has logged in?  Thanks and cheers,  Rob

    Thanks in advance for any help or insight you might have on the above question.
    Rob

    (new ScriptingExample()).run();
    note how ive changed in light of all the complaints about coding
    in the constructor in example code ; )
    import javax.script.*;
    public class ScriptingExample{
    public static void main(String[] args){
         (new ScriptingExample()).run();
    public void run(){
         try{
         ScriptEngineManager manager = new ScriptEngineManager();
         ScriptEngine engine = manager.getEngineByName("js");
         engine.put("answer", "0");
         engine.eval("answer = (8 / 4) * 3.5"); // = 7
         Object answer = engine.get("answer");
         System.out.println("Answer: " + answer);
         } catch(Exception e){
         e.printStackTrace();
    }

  • Is there any way to get the appStore link for my application

    Hi everyone , i am developing an app which has a feature of sharing its appstore link with the friends through mail,so that they can see my appplication in appstore and buy it directly on click of a button. For that i need to use the app store link of my application for sending it . is there any way to get that and using it dynamically in my app immediately after releasing it.

    Your best bet would be to create a web page of your own for the app. Design that page so that it uses 'META REFRESH' to redirect the visitor straight to the App Store link.
    That way you can hard-wire your own web page address into your app.
    This has the advantage that it can work well even before you've noticed that your app has arrived on the App Store. Create a real web page, describing the app and telling people to search for it in the App Store by name - then replace it with the auto-redirect page when you've discovered your application's App Store address.

  • I have a Macbook Pro june 2011... I have 8GB ram but I only have 256mb VRAM... I've read some other questions about this and I realized... Why do I not have 560mb of VRAM since I have 8GB of RAM? Is there any way to get more VRAM to play games on steam?

    I have a Macbook Pro june 2011... I have 8GB ram but I only have 256mb VRAM...
    I've read some other questions about this and I realized... Why do I not have 560mb of VRAM since I have 8GB of RAM?
    Is there any way to get more VRAM to play games on steam?
    I've learned  by reading other topics that I can't upgrade my graphics card on my Macbook Pro because it's soldered into the motherboard or somthing like that, but please tell me if there is any way to get more video ram by chaning some setting or upgrading something else. I'd also like to know why I only have 256MB of VRAM when I have 8GB of RAM, since I have 8GB of RAM I thought I was supposed to have 560mb of VRAM...
    So the two questions are...
    Is there any way to upgrade my VRAM, so that I can play games on steam?
    Why do I only have 256MB VRAM when I have 8GB total RAM?
    Other Info:
    I have a quad core i7 Processor.
    My graphcics card is the AMD Radeon HD 6490M.
    I am also trying to play games on my BOOTCAMPed side of my mac, or my Windows 7 Professional side.
    THANK YOU SO MUCH IF YOU CAN REPLY,
    Dylan

    The only two items that a user can change on a MBP are the RAM and HDD (Retinas not included).  You have what the unit came with and the only way you will be able to change that is to purchase a MBP with superior graphics
    If you are very much into gaming, the I suggest A PC.  They are far superior for that type of application to a MBP.
    Ciao.

  • My iphone 5 has restored to an old backup after updating to ios 7 is there any way of getting my stuff back as this has now become the most recent back up?

    my iphone 5 has restored to an old backup after updating to ios 7 is there any way of getting my stuff back as this has now become the most recent back up?
    also since the update it keeps resetting itself? i had a lot of stuff on there that i really wanted and alot of important info lost? please help!!

    You might be able to remove the recent backup from the backups folder and the old one should be usable at that point
    USE EXTREAME CAUTION WHEN ACCESS THE FILES AND DO NOT DELETE ANYTHING
    Mac: ~/Library/Application Support/MobileSync/Backup/
    Note: The "~" represents your Home folder. If you don't see Library in your home folder, Option-click the Go menu.
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Note: To quickly access the Application Data folder, click Start, and choose Run. Type %appdata% and click OK.
    Windows Vista, Windows 7, and Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\

  • HT4757 Will this software make my Canon Powershot A700 work with os x 10.8.2 and iPhoto 11 v. 9.4.1?  Is there any way to get my camera compatible with this computer?

    Will this software make my Canon Powershot A700 work with os x 10.8.2 and iPhoto 11 v. 9.4.1?  Is there any way to get my camera compatible with this computer?

    First Try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Lion and Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder
    3 - launch iPhoto and try again.
    NOTE:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    If that doesn't help apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.

  • ICloud got deleted off my MacBook Pro. Is there any way to get it back? I have an iphone now and actually have a use for it.

    iCloud got deleted off my MacBook Pro. Is there any way to get it back? I have an iphone now and actually have a use for it.

    Your signature says you have 10.6.8 - is this correct? (It it isn't please amend it to prevent confusion).
    Assuming Snow Leopard, iCloud has not been deleted - it was never there. The minimum requirement for iCloud is Lion 10.7.2 (Mountain Lion preferred): the iCloud Preference Pane does not appear on earlier systems - the MobileMe pane appears on Lion and earlier but is non non-functional - you cannot now open or access a MobileMe account.
    You can set Snow Leopard up to access the email on an existing iCloud account which has been set up on a compliant device, and you may be able to sync iCal using an unsupported (and possibly unreliable) hack, but no other facilities will work. You cannot open an iCloud account on Snow Leopard.
    This page outlines the limited use you can make of an existing iCloud account with Snow Leopard:
    http://www.wilmut.webspace.virginmedia.com/notes/icloudSL.html
    To make full use of iCloud you will have to upgrade your Mac to Lion or Mountain Lion, provided it meets the requirements.
    The requirements for Lion are:
    Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    2GB of memory
    OS X v10.6.6 or later (v10.6.8 recommended)
    7GB of available space
    To purchase it you will have to ring Apple at the number given at the bottom left of this page.
    The requirements for Mountain Lion are listed here:
    http://www.apple.com/osx/specs/
    It is available from the Mac App Store (in Applications). (If you are currently pre-Snow Leopard you will have to upgrade to that to access the Mac App Store: it's available in the online Apple Store.)
    You should be aware that PPC programs (such as AppleWorks) will not run on Lion or above; and some other applications may not be compatible - there is a useful compatibility checklist at http://roaringapps.com/apps:table

  • I accidentally deleted my iPhoto a while ago and don't have money to purchase it is there any way to get it back or download it for free?

    i accidentally deleted my iPhoto a while ago and don't have money to purchase it is there any way to get it back or download it for free?

    Howdid you buy iPhoto originally? Did it come preinstalled on a new macwith MacOS X 10.7 or later? Then you can download it from the Purchased tab of the AppStore:
    See:  OS X: About OS X Recovery
    Restoring iLife applications after Internet Restore of OS X
    If your computer came with OS X Lion or later and you erase your hard disk and install OS X, you can download iPhoto, iMovie, and GarageBand from the Mac App Store.
    Choose App Store from the Apple menu.
    Enter your Apple ID and password when prompted.
    Click Purchases.
    If you haven't previously accepted your bundled iLife applications within the Mac App Store, you should see your iLife applications appear in the Accept portion of the screen. Click Accept.
    You may be asked for your Apple ID and password once again. Your iLife applications now move to the Purchased section. These applications are part of the software that came with your computer. Your account will not be charged for them. Click Install to complete installation of your applications.
    If your Mac came with an earlier system, reinstall iPhoto from the bundled application installation disk.
    And if you bought an iLife disk, use that to reinstall.

  • Is there any way to get windows environment variables like %USERNAME% with javascript?

    is there any way to get windows environment variables like %USERNAME% with javascript using Adobe 10 pro?

    There is a fair amount of Acrobat JavaScript and Acrobat knowledge need to sort all of this out.
    The identity object holds a lot of sedative information. First, upon installation of Acrobat, only the login name is available in the identity object and the end user of the application needs to complete the "Name", "email" and "Organization Name" in the application's preferences. These are the only fields that are available to Acrobat JavaScript identity object as corporation, email, loginName, and name.
    Using the instructions in The Acrobat JavaScript Console (Your best friend for developing Acrobat JavaScript) you can run the following script in the JS console to see the items of the identity object:
    for(i in identity) {
    console.println(i +": " + identity[i]);
    and the following will appear in the console:
    loginName: georgeK
    name: George Kaiser
    corporation: Example
    email: [email protected]
    true
    The documentation states you need to use a trusted function to access this data, but you can access it at startup of Acrobat/Reader and add the properties of the identity object to an array:
    // application variable to hold the properties of the identity object
    var MyIdentity = new Array();
    // loop through the properties of the identity object
    for (i in identity) {
    // place each property of the identity object into an element of the same name in the Identity array
    MyIdentity[i] = identity[i];
    console.println(i +": " + MyIdentity[i])
    You access the items with:
    var loginUser = MyIdentity[loginName];  // get the loginName property
    In the user application level JavaScript file. See Acrobat Help / User JavaScript Changes for 10.1.1 (Acrobat | Reader) for the location of the application level folder you need to use.
    I would change the name of the array used in this post so an untrusted user cannot get to your data. Some of this data can be used in hacking into a user's system.

  • Is there any way to get a stacktrace when...

    Hi
    Is there any way to get a stacktrace (both thread dump and monitor dump) when there is nothing wrong with the java application? ..The reason i want this is to see more closer what the application does. I tried the following command: kill -QUIT (PID) ..on a test app. but it didnt show anything, probably because there were not anything wrong, but i still want to see how the application is behaving while its running. I also tried typing <ctrl>\ in the window where the java application runs, but this seems to be the exactly same.
    After typing <ctrl>\ i only get this "Quit" message and no stack trace:
    115845
    115846
    Quit
    So, is it possible to get a stacktrace from the application even if there is nothing wrong with the application just to see how its behaving ?

    Have you tried jstack:
    [http://java.sun.com/javase/6/docs/technotes/tools/share/jstack.html]
    Or JConsole:
    [http://java.sun.com/javase/6/docs/technotes/tools/share/jconsole.html]
    Or the shiny new Visual VM tool:
    [http://forum.java.sun.com/thread.jspa?threadID=5296752]

  • Is there any way to get the height/width of an image before importing it in the indesign document.

    Hi All,
    I need to obtain an image's attributes such as dimensions (height, width in pixels) without placing image in indesign document.
    I have full path of the image (say abc.jpg is stored at c:\my pic\abc.jpg).
    I have obtained the IDFile for this image, tried getting size using GetFileSize() which correctly return size in bytes.
    Is there any way to get the height/width of image without importing it in the indesign document.
    Please, give me some hints. I have spent quite a lot time digging in CHM. I have searched in FileUtils, IDFile API's but found no method which serves this purpose.
    At this point I am clueless where to search next.
    Any help will be appriciated.
    Just a point to mention, I am able to get image height and width for an image in indesign doc though Its not my requirement.
    Thnx,
    D.

    You might be able to examine the contents of the PlaceGun after calling kImportAndLoadPlaceGunCmdBoss without actually placing the image in a document. Not sure, but would be worth looking at.
    Otherwise you will probably have to write platform specific code, ideally with a generic platform-independant wrapper (see SDKSamples/paneltreeview/PlatformFileSystemIterator).
    For the Mac, look at CGImageGetWidth() etc., not sure what the best option is for windows.
    Perhaps Quicktime could provide you with a platform independant solution.

  • HT1386 i am trying to restore a backup og my iphone 4 from itunes on my macbook, it asks me for a password which i do not recall setting up, is there any way of getting this password.

    i am trying to restore a backup og my iphone 4 from itunes on my macbook, it asks me for a password which i do not recall setting up, is there any way of getting this password.

    No there's not.  Otherwise that wouldn't be very secure, would it?

  • I had 41 tabs open in about six groups over the last year and a half and I just close them and exited Firefox. Is there any way to get them back?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/856718]]</blockquote>
    I had 41 tabs open in about six groups over the last year and a half and I just close them and exited Firefox. Is there any way to get them back?
    Also, is there any way to save a group or an open session and then restore it later?

    History menu, if it was destroyed in the last session
    then use "Restore Previous session:" and then restore all windows also from the history menu.
    If done in this session try the restore all windows under the history menu.

  • Is there any way to get my photos FROM my iPod Touch back onto a new hard drive?

    My Mac crashed last Friday. First timeIs there any way to get my photos FROM my iPod Touch back into my new hard drive. The iTunes sync only goes one way from the computer to the iPod.
    It syncs the photos taken with the iPod (really an old iPhone 3G without phone service) but not the folders which I synced from the old hard drive to the iPod over the past year.

    thank you for the tip.
    Yes, my computer was backed up. for reasons way too complicated to go into here, these particular folders were not part of the backup.
    Thanks again for the help.
    jglaiche

Maybe you are looking for

  • Adobe Bridge CS5 quit unexpectedly  OS X 10.7.5

    Adobe Bridge CS5 quit unexpectedly! I am using OS X 10.7.5. Thanks

  • How to reduce the barcode size

    hi How to reduce the barcode size in smartforms Thanks & Regards krishna rao

  • IPhoto album to USB to be used on a projector

    Hi there I have made a slideshow on iPhoto and it looks amazing when played on the app on the mac.....what I would like to do is copy this album/slideshow to a USB stick and then plug the stick directly into the hd projector at my party venue so it p

  • Downpayment in Periodic billing.

    Are downpayments possible in periodic billing as well ? When I try to bill periodic billing with down payments, system says, SC (service contracts) WVN can not be billied with FAZ?

  • FICO: Validations Before Saving in FB02

    Hi , This is Prabhu from Pepsi,i need some information regarding validations Before Saving the Documents in FB02.We have BTE events in our sap systems for F-32 and Others not for FB02. 1.Now i want to change Profit Center of The Documents in FB02.How