How do I allow offline use AND check for updates if online?

I am actually not sure if this is a bug or not, as the behavior changed when I updated from 1.6u20 to u21. I have an application in a single JAR, and a JNLP file. I am testing with Windows 7 64-bit (with both the 32- and 64-bit version of the JVM installed, 1.6u20-b06 on both). The application cache is enabled. Here is my JNLP file:
<?xml version="1.0" encoding="us-ascii"?>
<jnlp
  spec="6.0+"
  codebase="http://hidden"
  href="Librarian.jnlp">
  <information>
    <title>Librarian</title>
    <vendor>Vendor</vendor>
    <homepage href="http://hidden"/>
    <description>Description.</description>
    <offline-allowed/>
    <shortcut online="false">
      <desktop/>
      <menu submenu="Vendor"/>
    </shortcut>
    <icon href="Librarian.gif"/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se version="1.6+"/>
    <jar href="Librarian.jar" main="true"/>
  </resources>
  <application-desc main-class="com.vendor.apps.librarian.Librarian"/>
</jnlp>I am observing the following behavior wrt updates and allow-offline:
When allow-offline is present:
- JWS does not download updates to the JAR file when the desktop link is clicked.
- The application can run when I disable the network connection.
- The "-offline" switch is passed to javaw in the desktop shortcut.
When allow-offline is not present:
- JWS does download JAR updates when the desktop link is clicked.
- The application can not run when I disable the network connection (HostNotFoundException).
- The "-offline" switch is not passed to javaw in the desktop shortcut.
What I want to happen is for JWS to check for updates if it can, and if it times out, instead of barfing, just go ahead and run the cached version. What I can get right now is either no updates + offline allowed, or updates + offline disallowed. However, I can obtain the behavior I want if I specify allow-offline then hand-edit the desktop shortcut and remove "-offline":
When allow-offline is present but I remove "-offline" from the desktop shortcut:
- JWS does download updates to the JAR file.
- The application can run when I disable the network connection, after a short timeout.
Now, I was under the impression that this behavior is the intended behavior of allow-offline: attempt to download update, on error, silently start the cached version instead. This does not seem to be the case. I actually wonder if this is a bug, as with 1.6u20, it seemed to download JAR updates just fine when allow-offline was specified (I had issues when the cache was disabled with 1.6u20, and so I moved to u21).
How can I make this work the way I want without having to hand edit the desktop shortcut?
Is this a bug, or am I misconfiguring (OED says this is a real word!) the application?
Is there something else I have to do to indicate that the JAR is updated besides just uploading a new version to the server?
It should be noted that I am not doing any web page magic here, I'm testing by simply downloading the JNLP file off the server and opening it. This is actually my first JWS experience and I haven't gotten to properly embedding it in a web page yet. I do not know if this is significant or not.
Thanks!
M

Well, I solved that quick. I've been staring at it for over an hour but it popped out at me as soon as I looked at my JNLP file in my post here (guess it's the red text, heh).
All I need to do is set online="true" in the shortcut, and also specify allow-offline, and all works exactly as I want it to. :-)
Perhaps it was a bug in u20 that was causing it to check for updates anyways even with an offline shortcut... I'm not sure, and I don't have it in me to test it any more at the moment.
Thanks,
M

Similar Messages

  • How are the .7z files used and installed for photoshop elements and premier elements?

    How are the .7z files used and installed for photoshop elements and premier elements?

    Hi,
    You can try to extract them to a folder and then try to install using the setup file.
    Or you can try to download the .exe file ( Small File ) for the software you have and then run the .exe file and it will start the installation. Both .exe and .7z file for the application should be in same location.
    Download Photoshop Elements products | 9, 8, 7
    Download Photoshop Elements products | 11, 10
    Download Premiere Elements products | 11, 10
    Download Premiere Elements products | 9
    *** You can either download the .exe file from the above download links or you can also download both .exe (File 2 of 2) and .7z (File 1 of 2) from the above links.

  • Help!! Auto-Deploy and Check For Updates in an OPMN-managed instance

    I'm trying to use the auto-deploy and check for updates functions in an OAS 10.1.0.3 but I can not make it work.
    I don't Know if this functions are only availables for a standalone OC4J instance.
    Can anyone help me??
    Thanks!!! and sorry for my poor english.

    Auto-Deploy is not really designed for an OPMN managed instance -- in earlier releases, this would not even work correctly since deployments where stored in the DCM subsystem and any subsequent configuration changes made via DCM would overwrite the config and you'd lose the "auto-deployed" application.
    In 10.1.3.x where DCM is no longer in the picture, and the auto-deploy polling is a function of Oc4J itself, it may work. Be aware that this is not something that is tested in OPMN managed environments.
    What configuration changes have you made?
    You need to ensure you have modified server.xml so the attribute check-for-updates="all" and you've added the attribute application-auto-deploy-directory and have it pointing at a directory to watch.
    -steve-

  • HT1339 My ipod classic fails the sync test on Windows 7. help say go to summary tab and check for updates. I cannot find a summary tab

    My ipod is failing the sync diagnostic on my Windows 7. The troubleshooting guide say go to the Summary Tab and "check for updates" I can't find a summary tab. I have no problem sync with windows vista.

    chicx wrote:
    This is the third time of writing this on your Apple Support Communities!
    Not with your current user id.
    Far too much uneccesary information in your post, which only confuses things, a vast amount!
    Let's start with iTunes.
    Have you updated iTunes to 11.1.5, because the previous version did appear to have an issue about seeing iPods?
    With iTunes 11.1.5 installed, look in Edit/Preferences/Devices, (or use the ALT key, followed by the E key and then the F key) and make sure that the box named Prevent iPods, iPhones and iPads from syncing automatically does not have a tick in the box.
    Once you have doen those two things, check to see if the iPod is seen by iTunes.
    chicx wrote:
    By the way, what does IOS mean? (I thought IO stood for operating system, but am flummoxed by the S on the end.
    Really?
    OS stands for Operating System. (In computer speak, IO means Input/Output.)
    iOS originally stood for iPhone Operating System, but it now refers to the iPod Touch and iPhone. The iPod Classic, which you have listed in your profile as your iPod, does not use iOS.
    I assume that you have been listening to the Podcast in your iTunes on the computer as you cannot transfer it to your iPod. It's what I'd do.

  • HT1688 I can not restore and upgrade my Iphone 4. When i plug in to computer itune's restore and check for update buttons are not active.

    I can not restore and upgrade my Iphone 4. When i plug in to computer itune's restore and check for update buttons are not active. What is that mean?

    Razmee,
    Guess what? After posting, I read another thread on this topic where someone said they went to an Apple store and the tech person there added the optional username and password in the Outgoing Mail Server boxes, and then reset the phone again. Although I had tried resetting and restarting a few times today, I had NOT reset it after entering the username and password into the optional fields.
    When I entered my username and password into the optional fields, the iPhone entered checks (ticks) to the right of every entry; it had not done this earlier. (I didn't reset at this time, and the outgoing mail would still not transmit).
    So just now, I reset it and the outgoing email was sent!
    Thanks to you and this forum, it's a great ending to a few frustrating days.
    I hope this message helps others. Not only does everything have to be entered correctly in the respective boxes; but once everything is entered and you press the "Done" button, every box should then have a check mark next to it and then you must reset the phone.

  • What can I do to change the sound of a track in garageband?  It is "stuck" on electric piano setting and will not change. I've tried restarting, restoring sound library, full key reset, and checked for updates.

    What can I do to change the sound of a track in garageband?  It is "stuck" on electric piano setting and will not change. I've tried restarting, restoring sound library, full key reset, and checked for updates.

    Hi
    In iMovie'11 (version 9.0.x)
    on top menu row - Apple/iMovie/File/Edit/Cut (Can vary dep. on language - in Swedish Apple/iMovie/Arkiv/Redigera/Klipp . . . )
    down Cut menu - Slow playback/Raspid Playback/Re-play in Slow Motion and onvards
    Here one can select the Pre-Set speeds
    Are you familiar with getting 'inspector' to run?
    No - but I guess that Double Click on clip/sequense or ctrl-Click on it might open it.
    Yours Bengt W

  • When the iPhone 4 with IOS 5 is connected by cable to iTunes and check for update results in Error 1630. plz help me

    When the iPhone 4 with IOS 5 is  connected by cable to iTunes and check for update results in Error 1630, plz help me to update plz

    My Iphone 4 crashed yesterday after a restart and upload of OS 5.0, it will only partially sync.  It's not transferring any of my music or ringtones.  They still appear when I click open the sync screens on ITunes, but I don't seem to have an Ipod function and only one of my personalized ringtones transfers on the actual phone.

  • Disable\Remove "Check for Update" "Lightroom online" and "Adobe Product Improvement Program"

    Hi,
    I wanted to confirm if it is possible to remove\Disbale the options like  "Check for Update" "Lightroom online" and "Adobe Product Improvement Program"
    under help menu in adobe lightroom 5.3? I intend to deply this application and want these options to be unavailable for the User.
    Kindly suggest, Thanks.

    So far as I know, the only way to make these features non-functioning is to detach the computer from the internet.

  • I currently have iTunes version 7 and I need to upgrade to version 10.  I am afraid of losing all my music if I just download 10 and when I use the "Check for updates" in the version 7 help menu, it tells me the server cannot be contacted.

    I currently have iTunes version 7 on my computer and need to upgrade to version 10 to sync my new nano iPod.  When I tried the "check for updates" under the version 7 "help" menu, it said it could not contact the update server.  I am afraid if I just download version 10 from the website, it will wipe out my music library.  What should I do to upgrade?

    Back up your music and install from the website. You probably won't need to do this, but if your library is erased, restore it from the backup.
    (59049)

  • How do I re-enable option to check for updates in Acrobat 11?

    I had this till the time I was using Acrobat 10.xx until couple weeks back - recently purchased a license for version XI and the deployment was streamed to my computer by my company's IT department through Microsoft Software Centre. After the upgrade I don't see the option to check for upgrades under any menu. I have tried a re-install and a repair as well, but to no avail. How can I re-enable the option to check for updates?
    Thanks
    Satya

    Thanks so much @LeoAdobeX - that indeed was the problem. I changed it to 1 in registry and see the option in the Help menu now. Thanks again.
    Satya

  • How do you do a click to check for updates in firefox 4?

    ''locking as a duplicate - https://support.mozilla.com/en-US/questions/780312''
    In firefox 3 there was an option to check for current updates .. I noticed in Firefox four my digital persona does work with my finger print reader anymore and its really more convient for me just to swipe my finger to log onto a website without having to remember every single password and its a pain in the rear end to look for them.. how do i check for updates to make sure I can repair a lot of the current problem with firefox 4 .. I love the program but it just has a few small flaws that I am sure will work its self out ..

    Firefox program updates are handled thru the Help > About Mozilla Firefox menu item, there's a Check for Updates button in that dialog when automatic updates are turned off.
    You can check for extension updates manually in the Tools > Addons > Extensions tab. Right-click an extension and use the Find Update menu item.
    I doubt in that fingerprint reader will update with Find Updates, though. You should look for updates at the fingerprint reader software website.

  • How do I turn off the automatic check for update on opening Firefox? I want to turn off that "what's new" page.

    How do I turn off that automatic update that always brings me to the "what's new" web page? It was interesting the first time, but now it is just an irritation. I can check for updates on my own, so I want to turn off this feature. It just started up when I upgraded to Firefox 5. I can't find a place to stop it from checking and bringing me to that web page. Also, I can't stop it from checking add-ons every single time I open the browser.

    did you check the suggestions mentioned in the article i posted in my previous post ??

  • I have installed itunes 10.7 several times.  All goes well.  After reboot, I go into itunes and check for updates and it says I need to download the update 10.7! (And so cant sync with my Iphone)

    I have installed itunes 10.7 several times, all goes well. After reeboot, I go to check for updates and it still wants to update to version 10.7! I cant sync to my iphone4 because I get an error message saying I need version 10.6.3 or later. Help

    Thank you for getting me started on the track by mentioning "Revo" Uninstaller.  The results of "Revo" spoke volumns on why a successful install of ITunes is so difficult to achieve.  It is the evil "BONJOUR".
    I then tripped upon the following site by Apple and the detailed directions (I read, printed, re-read and followed the instructions.  It was intense) brought a successful ITunes, Quick Time and the lovely Bonjour home.  Thank you for the start JD42.
    http://support.apple.com/kb/HT1923

  • Hello. I went to Tools, Plug-ins and check for updates as I do once a week, every week, and yet now, after checking, Firefox says 'no plug-ins detected'. My plug-ins are still all there in Tools, Add-ons, so why am I getting this message?

    I check my plug-is for updates once a week, yet as of today, despite the fact that my plug-ins are all still there in Tools, plug-ins, after I click on the find updates button, I get the usual screen that tells me Firefox is checking for updates to my plug-ins, but then I get the message saying 'No plug-ins detected.' This has never happened before and it means I can't check for updates to my plug-ins.

    There is a fault with the plugin check service, Mozilla are looking into it.

  • HT5654 Im clicking help and checking for updates, the updates come up so I click to download it and nothing happens, help me?

    Ive clicked on help to check for updates, the update I needed came up so I clicked update and nothing happened, what do I do?

    Going by your profile your Mac has v10.5.8 installed. That is the most recent version available for Leopard.
    You may be able to upgrade to v10.6 Snow Leopard >  Mac OS X v10.6 Snow Leopard - Technical Specifications
    Snow Leopard is available for purchase from the Apple online store > Mac OS X 10.6 Snow Leopard - Apple Store (U.S.)
    With Snow Leopard installed, iTunes would be updated for you.

Maybe you are looking for

  • I have a strane error message when syncing with itunes + i cannot access it

    Hi all, this is only place i thought of that might know these problems: 1. I cannot access itunes store from itunes - it just says loading... and doesn't load anything 2. I have an error: " ITunes cannot sync photos to the iPhone because the folder "

  • What's a good Charging Habit for my iPad 3?

    I need a good habit for charging my new iPad since the battery drains quickly. Can you help me out? Thanks!

  • Nokia n8 update no Notifications Widget

    I have upgraded my n8-00 to newest belle and i am not finding Notifications widget any more, i liked to have it on my homescreen to see when who called, how many sms have i not read and etc. Is there a way to restore this widget? as it is very useful

  • Which version of Outlook best?

    I am new to Blackberry.  I have a Curve 8330 (V-Wrlss).  Desktop Manager ver. 4.3.0.17 My question is which version of Outlook works best for calendar synchronization?  2003, 2006 or 2007? Either way, I need to buy the software.  I will not be using

  • Bank Of America closed my credit card for no reason? Some advise please.

    Sorry OP, but there's no such thing as "no reason".  It could be any number of things such as fraud or something else that could have triggered the closure.  But, with a $500 CL, it's anyone's guess.  Have you called the underwriting folks or see if