Can application know the location of its most recent cached *jnlp* file?

Can an application know if it was launched by clicking on the hyperlink in a web page, or whether it was launched from the shortcut on the desktop?
Alternatively, Can the application know the location of its most recent cached jnlp file on the desktop?
To take a specific example, let's say I have a word processor, My Word that is deployed using Web Start. It can view documents on the web and must also work offline to view local documents.
When a user clicks the hyperlink to the doc, say,
myParty Open the myParty document
then myParty.jnlp launches My Word, opening the myParty.txt file.
Since there is no way to pass arguments dynamically, one must have a jnlp file for each doc.
So myParty.jnlp has the url of the doc hardcoded in it.
<application-desc main-class="MyWord">
<argument>http://www.MySite.com/myParty.doc</argument>
</application-desc>
The problem is that apparently Web Start uses the most recent jnlp each time it is launched.
So that if the file has moved, or if one is offline, then the application hangs because it is trying to open the same document, regardless of whether MyWord was launched by clicking on the hyperlink in a web page - in which case this would be appropriate - or whether it was launched from the shortcut on the desktop - inappropriate here.
As a workaround, I was wondering - where is the jnlp file stored on the local desktop?
If the application could find the most recent jnlp, then it could rewrite it (after it was opened the first time) with an identical jnlp that has no application-desc arguments.
Then when the user runs from the shortcut on the desktop, it will launch without a document to open.
Any help appreciated.
thanks,
Anil Philip
Are you planning to kill yourself? Stop! listen to this song
broadband version: http://www.youtube.com/watch?v=pLHHB4YZucI
dial-up version: http://www.youtube.com/watch?v=xL5WyBenUpM

1) To make it more complicated, it seems that the browser also does the caching.
2) I could not find the jnlp as a file on the desktop, so I suspect that is stored in some database. Is there any way the application can write to it or any api to simply allow the application to change the arguments?
3) It is not an option to use jnlpservlet as the document can be placed anywhere and not just on a webserver under our control.
Edited by: anilp1 on Mar 20, 2009 9:40 PM

Similar Messages

  • How can  i know the location of rmiregistry throught the batch file ????!!!

    i would make a batch file that launch my java application wich uses RMIREGISTRY, is there a way to know the path where is located the "rmiregistry file" -if it exists- in the client machine throught the batch file in order to start it befor to launching the application.?

    Yes, ask the person who was responsible for making the RMI registry run.

  • Can I make the finder open my most recently used folder when opening a new window?

    Hello Community!
    When I open a new finder window I would like it to open the folder I worked in last (i.e. the one I saved sth to or opened sth from). I know I can go over "Go to" but is there a way to adjust the settings so that it opens automatically?
    Thanks in advance!

    none than I know of.
    Of course, you could always make an Apple Script as an app (that you could place next to the finder icon on the dock for ex) that would do it, but that would require programming skills.

  • How to know the location of  JDBC Driver/ connection

    unable to find JDBC driver and connection location
    How can I know the location of "JDBC Driver" for the input box JDBC Driver to confrigure this in ID.
    The same  for "Connection" too.
    urgent input (no links please) will help me.
    Thanks
    SY

    Hi,
    You can ask basis person to get the location of JDBC driver.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/4f34c587f05048adee640f4c346417/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/frameset.htm
    Hope this helps.
    Regards,
    Moorthy

  • My location service is not working from the day one the response is that (cannot able to determine the location) .What can i need to do to see my location in maps and other application even the location services is enabled in the settings?

    From the day one the response is that (cannot able to determine the location) while using ios5.1 .What can i need to do to see my location in maps and other application even the location services is enabled in the settings?.Which means that is there is any problem in my ipad ? currently running on IOS 6.

    Your location is determined from a location database which contains the MAC addresses of routers and their physical location. A MAC address is a unique number which is built-in to all network devices when manufactured. The database is built and updated by actually driving around and mapping router locations.
    Since you just moved the location of your router has not been updated in the database and when you use Maps you will see your old location.
    If you go outside your house you can be correctly located because your iPod sees other routers which are in the location database. Note that you do not need to be connected to a router for your iPod to see it and obtain its MAC address.

  • How can I know the version of Application Server Java Virtual Machine

    How can I know the version of Application Server Java Virtual Machine?
    Thanks a lot.

    Thats easy. Your jdk/jre are located in the App Server home directory. Just run the java command under the jdk directory with the "-version" switch and it will provide you with detailed information about your VM.
    For example if you're doing it at command prompt it will be something like
    java -versionI hope this will be useful to you.
    Regards,
    Wasif

  • How can I find the location of an i-pod shuffle, nano and touch that i have synced to my account? I have had each one stolen and would be so relieved if i could track there location as I know they are still in the county I live.

    How can I find the location of an i-pod shuffle, nano and touch that i have synced to my account? I have had each one stolen and would be so relieved if i could track there location as I know they are still in the county I live.
    Also if i cant locate them can i at least remotely delete the libraries, and lock them so they are unusable to the thiefs, and i had a sony laptop worth £2000 stolen which I had used my apple account for a year is there anyway i can track that or retrieve the contents and delete them?
    Please if anybody knows reply or contact me!!!! =-)
    many thanks

    You or Apple can do nothing to prevent use of the devices.
    For the iPod touch if you turned on the FindMyiPod feature and wifi is on and connected yu may be ablt ot locate it and wipe it by going to iCloud, signing in and going to FindMyiPhone. However, if the iPOd is rectored that feature is deleted.
    Report to police and change the passwords for all accounts used on the iPod.

  • Can I know the automation object for firefox like "InternetExplorer.Application" for IE?

    Can I know the automation object for firefox like "InternetExplorer.Application" for IE?

    Firefox is not a COM-based application, so there is no equivalent. Over the years, different approaches have been offered for automating or embedding Firefox. The current one is [https://developer.mozilla.org/en/XULRunner XULRunner].

  • My ipod touch screen is white and i dont know how to fix it i already tried home button and lock and also restarting it but it still is white in the backgroud i can still hear the typing eventhough its all white

    My ipod touch screen is white and i dont know how to fix it i already tried home button and lock and also restarting it but it still is white, in the backgroud i can still hear the typing eventhough its all white

    Try restoring the iPod. First from backup and if problem persists, restore to factory settings/new iPod.
    If you still have the problem that indicates a hardware problem, make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • How can I find the location of an app on my iPad 2?

    How can I find the location of an app on my iPad 2? The app comes up with a search, but that seems to be the only way to find it. I just installed the app today, but I can't figure out where it is. It has a pretty distinctive icon, and I've looked through all of my apps and even in folders (even though I don't know how it would have gotten there). I want to put it in an appropriate folder under the right subject, but I can't find it to do this. I can use the app, since I can find it through a search though. I have a lot of apps, but I looked very carefully and can't find it. Is there a way to ask my iPad to locate it for me? It's a $25 app and one I plan to use regularly, so I want it located in the folder of my choice.This problem makes we wonder if I have other "missing" apps, apps that I could  find if I happened to think to search for them, but that don't appear to be on my iPad (even though they actually  are).

    You were right about the homescreens. I had turned my iPad off for the night with less than three full homescreens of loose apps, those not in folders. When I turned the iPad on this morning to try your suggestions, I had five full pages of loose apps. They just appeared when I restarted, and there was the app I was looking for, easy to find. Last night I was deleting apps I decided I wouldn't use, organizing useful apps into folders, and making sure I had as few pages as needed by making sure the gaps made by the moved/deleted apps were closed. The missing apps didn't show up at that point; I was just left with fewer than 11 pages. The apps only showed up when I restarted this morning. There were almost three extra pages of apps that weren't there last night. I know there must be other things missing, since all of the pages are full. So I tried your suggestion in iTunes. I connected my iPad, found an app in the alphabetical list on the left, and double clicked it. This brought me to the app's homescreen (and its home folder when applicable), the place where it was located. In order to identify which page that was, I had to scroll through the screen shots of the homescreens that was below the homescreen that was showing until I found the homescreen whose number was in white. Then I could count the pages on my iPad until I got to that page. I'll have to delete more apps and organize more into folders to see what else might show up. There are just too many apps available for special education, and I'm in the process of figuring out which are the best for my needs. Thanks so much!

  • How can we get the location from location area code?

    Hi All,
    i have an application which successfully runs on Motorola L6 and it gives me the cell-id, Location area code, and Mobile Network Code, and Mobile Country Code. Now I want to know how can I get the location ( I mean the name of the location) through location area code. And one more thing can we get current MNC and current MCC through j2me because I have written a code for getting this information for sony ericsson cells but dont have a handset to try out. Anyway if anyone has the information then please let me know
    Thanks in advance
    Sunil

    I donot think you have a direct blog..
    check this blog for java proxies ..
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    AND CONFIGURE A RFC..

  • How can we know the format of report

    Developed a web application using java SDK.
    How can we know the format of report that is is it a crystal report , PDF or excel or hyperling.
    If it is crystal report then i use openDoc and the report is opened but if its a hyperlink or PDf i am not able to open the report .
    Please help.
    Thanks

    Check the si_kind or so_progid property of object. You can use oInfoObject.getKind() to retrieve that.
    a crystal report would return crystalreport a pdf would return pdf etc.

  • In OUT Bound of a Jaxws provider, how can we stop the provider invoking its endpoint and send a response back?

    Hi One & All
    While we are working on Delegate(provider) for JAXWS client handler in Weblogic10 , we have some technical issues and need some assistance.
    Problem Description
    In OUTBound of a provider, how can we stop the provider invoking its endpoint and send a response back?
    Example:
    I have a provider with some handlers configured for both IN and OUT flows. When the Jaxws provider is making a request, the OUTBound Handler gets invoked and in this Handler I would like to stop invoking actual endpoint and send back my own response. That means I should be able to tell the Handler chain to stop further processing of this flow, set a response message into message exchange and invoke the IN flow. How do I do that?
    This kind of mediation/interception is possible in standard specifications like JAX-WS, Servlets etc… wondering if Weblogic10 JAXWS provides any sort of this kind.
    Also we would like to know who is invoking a provider endpo     int in JAXWS stack in weblogic10? Is it an OUTBound handler at the end of handler chain or some other transport component after the handler chain?
    Thanks in Advance
    Suresh
    Edited by: user12494412 on Jan 22, 2010 7:06 AM

    I completely agree with this....I have used Windows and Skype for many years. I recently installed an older version of Skype to run on Windows 8.1 because the new version is SO AWFUL. As much as I prefer the older version (6.14), the daily number of SPAM CONTACT requests is rediculous and most are just variations of the same spammer. Maybe it is time to look for a replacement for both?

  • My Iphone (IOS5.1.1) can't see the location of My Ipod touch 2G (IOS4.2.1) in app "find my iphone", does it technically possible to see?

    My Iphone (IOS5.1.1) can't see the location of My Ipod touch 2G (IOS4.2.1) in app "find my iphone".
    Does it technically possible to see? Anybody knows its setting?

    Hi LC_FC,
    You have to have the Find My iPhone app installed on your touch, and you also have to have it turned on in the Location Services.
    Cheers,
    GB

  • I can not install the newest version of iTunes because of a file that can not be found. This is what I am seeing:(The feature you are trying to use is on a network resource that is unavailable. C:\......\Application Data\Apple\Apple Software Update\

    I can not install the newest version of iTunes because of a file that can not be found. This is what I am seeing:(The feature you are trying to use is on a network resource that is unavailable. C:\Documents and Settings\Aubrie\Local Settings\Application Data\Apple\Apple Software Update\)

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page).
    http://majorgeeks.com/download.php?det=4459
    Here's a screenshot showing the particular links on the page that you should be clicking:
    After clicking one of the circled links, you should be taken to another page, and after a few seconds you should see a download dialog appear for the msicuu2.exe file. Here's a screenshot of what it looks like for me in Firefox:
    Choose to Save the file. If the dialog box does not appear for you, click the link on the page that says "CLICK HERE IF IT DOES NOT". Here's a screenshot of the page with the relevant link circled:
    When the dialog appears, choose to save the file.
    (2) Go to the Downloads area for your Web browser. Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

Maybe you are looking for

  • My Firefox is blank

    When I click upon the shortcut, my Firefox opens with nothing but the top bar with the Firefox logo and the close, minimize, and resize buttons. I am unable to right click, use Alt+(key) commands, or use Ctrl+(key) commands. I have no address bar or

  • OnStatus never called in FlashLite 3.0 ?

    We have a small app which displays Video clips to the user, then at the end, displays some message. The problem is, the callback "onStatus" does not seem to be called on clip complete (as it should) on any player version. On the other hand, on FL2.x,

  • Oregon Scientific ATC5K action cam - does it work with iMovie / Leopard?

    I'm looking at getting an ATC5K for a skiing trip but the specs say it is only compatible with OS X 10.4 (Leopard) and below. Can anyone confirm if it works ok with 10.5.x and iMovie? Thanks

  • How can I deauthorize old PC's as I am over 5

    I had my laptop crash yesterday, got a new PC and I am trying to sync for the first time. I found out I cannot authorize this PC as my old laptop was #5. I had old work PC's at an old place of employment, a home PC that is dead and gone, and the lapt

  • Font Preview Setting in Photoshop CC

    I can't find the the font preview size option in Photoshop CC. How do I change the font drop down font preview size in Photoshop CC? Robert