Applet Persistence API - without loosing data??

I'm using the Applet Persistence API (AppletContext.setStream / getStream) so store private data in the jvm - like session-cookies in the browser.
Since the next-generation java-plugin this method stopped working because the java-plugin might terminate and restart the jvm during a browser session and all data is lost.
Is it possible to prevent the java-plugin from stopping a jvm during a browsers session - for example via parameters in the applet tag?

tronix wrote:
..Since the next-generation java-plugin this method stopped working ..The next-gen. plug-in allows applets to hook into the PersistenceService of the JNLP API - when they are deployed using JNLP. I have a demo. of the PersistenceService (http://pscode.org/jws/api.html#ps).
It would be possible to create two versions of the applet. Version one is your current applet that uses the older methods for persistence. Version 2 uses the new methods.
To decide between them on the client side, present the plug-in 2 applet in an applet element that loads the version 1 applet as the standard applet alternative to the version 2 applet.

Similar Messages

  • Applet Persistence API

    According to the Applet Persistence API I can use the AppletContext-method
    public void setStream(String key,
                          InputStream stream)to save persistent data.
    But how do I use this method for writing a simple String?
    String value="persistent data";
    InputStream is = ????
    this.getAppletContext().setStream("myKey",is);

    e.g. via ByteArrayInputStream(myString.getBytes())

  • I have macbook pro 13.3 inch ..mac os lion 10.7.5   i want to tranfer data from macbook to external hard disk  without loosing data which in already in extrnl drive

    i want to take back up of my macbook . so i have external hard disk around 1 tb and already have 230 used ...when i transfer manually with out time machine ....because i want to tranfer into windows .....so how to change ntfs into fat32 without loosing data in external harddisk ?

    You don't have to change NTFS to FAT.
    Just install Paragon NTFS and you'll be able to transfer your data to your external HDD even if it is NTFS.

  • How to convert NTFS external hard drive to FAT32 without loosing data?

    New mac user. How to convert NTFS external hard drive to FAT32 without loosing data?

    You have to off load and backup then.
    don't have backup drive ?
    Get one.
    Want another option? Paragon NTFS for OS X will provide write function to your drive, works with the most PC cases and drives (not all NTFS drivers for OS X do) and does so with fast I/O and low overhead.
    Not sure about using Seagate GoFlex as I seem to recall a number of threads reporting problems.
    Windows can do a convert -fs to NTFS just never tried the reverse from NTFS to FAT32 but I would not use FAT. I'd either erase and reload and use as Mac HFS Extended; or if you actually do need to use it with a PC user running Windows, the driver would be handy and better.
    Or your PC w/ Windows there are HFS drivers for Windows to mount and WRITE to a Mac formatted drive under Windows. There MacDrive has more and better support feature set.

  • I was updating software and suddenly my IPHONE  started asking for I tunes on mobile screen ,  how can  i  get by screen back or How i can restore without loosing data , I m more worried about data , Please help in resolutio

    i was updating software and suddenly my IPHONE  started asking for I tunes on mobile screen ,  how can  i  get by screen back or How i can restore without loosing data , I m more worried about data , Please help in resolutio

    What exactly are you seeing on the phone's screen ? If the iTunes icon and cable then the phone is in recovery mode, in which case it's too late to take a new backup or to copy any content off the phone - you will have to connect the phone to your computer's iTunes and reset it back to factory defaults, after which you can restore to the last backup that you took or just resync your content to it

  • How do I update I pad on a new computer without loosing data. Old computer got virus and it's got my I tunes account on it.

    How do I update I pad on a new computer without loosing data. Old computer got virus and it's got my I tunes account on it.

    You simply sync the iPad to the new computer. It will tell you that it is already synced with another one though, and will give you the option to erase it or transfer its contents to the new one. An iPad can only be synced with one computer at a time.
    Beware that only your iTunes and App Store purchases will sync. If your iTunes library contained music obtained from other sources, you have to find a way to transfer them directly from your sick computer to the new one.
    I hope your new computer is a Mac, a replacement PC will eventually suffer the same fate.

  • Any good documentation of the Applet Persistence API ?

    Does anybody have links to good documentation for the Applet Persistence API? I am talking about the new getStream and setStream methods on the AppletContext class. The official documentation I have been able to find simply sucks:
    http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/persistence.html
    A search on this forum and on Google didn't reveal much either. It seems like an almost undocumented feature.
    If you have any links or if you have some hands-on experience with the Applet Persistence API, then please share it. :)

    I'm resurrecting this old thread because I think its pretty funny that in five years this seems to have only gotten more confusing. I don't think anyone is using it (ie. google was still no help) but I'm hoping someone can shed some light.
    I got the distinct impression from... something I thought I read but must have hallucinated... that this API is supposed to persist information across browser runs. Even if that's not the case, I'm curious why I can't get the stated functionality to work. I tried the only sample I could find from this page:
    http://www.java-tips.org/java-se-tips/java.applet/working-with-applet-context-streams.html
    The sample is quite good even if it leaves out the most important information about the API, which the previous poster provided (that its not 'real' persistence). Unfortunately, it doesn't seem to work with the latest release JRE. Through the debugger I'm seeing that the setStream call is happening as expected but the getStreamKeys routine always returns null. Can someone who has successfully used this enlighten me?
    Thanks,
    - David

  • Can an Apple store restore my iPod without loosing data?

    Can an Apple store restore my iPod without loosing data?

    The only way to unlock it is to follow the steps in http://support.apple.com/kb/HT1212 or one of the similar knowledge base articles, which includes restoring the device.  If you have a current backup you can do that and remove the passcode.

  • How do i pgrade my os without loosing data or using extra hdd? Thanks

    How do i pgrade my os without loosing data or using extra hdd? Thanks

    Yes, you can do that, but it is inadvisable to do so without a safety backup. But that's your choice, which means there is no guarantee you won't have a problem.
    First thing you should do:
    Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mavericks if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    Upgrading from Snow Leopard to Lion or Mavericks
    To upgrade to Mavericks you must have Snow Leopard 10.6.8, Lion, or Mountain Lion installed. Purchase and download Mavericks (Free) from the App Store. Sign in using your Apple ID. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mavericks- System Requirements
           Macs that can be upgraded to OS X Mavericks
             1. iMac (Mid 2007 or newer) — Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) —
                 Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) — Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) — Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) — Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) — Model Identifier 3,1 or later
             7. Xserve (Early 2009) — Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
    Are my applications compatible?
             See App Compatibility Table — RoaringApps.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mavericks, it may still meet the requirements to install Lion.
    You can purchase Lion at the Online Apple Store. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.

  • Satellite L300-110 - How to recover without loosing data on the HDD?

    Hello all
    I have a Toshiba Satellite L300-110
    The question is how can I recover my laptop with the recovery DVD without lose any data located in the hard disk drive?

    Hello
    A recovery installation from the recovery disk without loosing data on the HDD isnt possible. If you use the Toshiba recovery disk the whole HDD will be formatted so you must backup the data first.
    The only way I know is to use the HDD recovery function in the advanced boot menu. The HDD recovery function formats only the first partition of the notebook and all data that you have stored on the second partition are available after recovery.
    Greets

  • How to sync iphone on new iMac, coming from Vista, without loosing data?

    Hello people,
    I'm in an awkward situation as i think most people are when dealing with this kind of problem. I searched the forum for something like this but with no success.
    So my question in detail is: I came from a PC world, with windows vista and now i'm a new Mac fan. Bought a new iPhone and loved the device so much that i had to try some Mac notebooks and iMacs to see what's what. And guess what after 1 month i ended up with a new iMac...and so far i love it even though i still have alot to learn in OS X. Since i had my iPhone 3G synced with my old PC with ITunes i can't sync now with my new iMac without loosing everything on it, including photos, applications, music and other stuff.
    So how can i sync it without loosing that data????
    I googled on the net for an answer and i found some answers to a method that would allow to further sync my iPhone and still keep the actual data in it. In other words make iTunes ignore the existing data in it, but i found it rather too much of a hassle, having to modify strings of data in some files in the Library.
    Also i found another method but that might work only from a windows machine to another windows machine, with itunes library exporter.
    So knowing my situation what would you do?
    PS: IMHO syncing to erasing all data is NOT an option. let's say that i would venture in creating new photo albums to sync them, and put the music back but what about the apps? I bought so many of them and some with vital information/settings that i could simply not bare having them deleted.
    HELP PLS!

    App settings and data created and stored by a 3rd party app are not stored with the application in your iTunes library. 3rd party app settings and data are stored with the app on your iPhone and included with your iPhone's backup - which is created and maintained by iTunes during the sync process.
    Once again - you need to transfer your iTunes folder and library from your PC to your Mac. In case you missed it - your need to transfer your iTunes folder and library from your PC to your Mac. All apps downloaded via iTunes or via your iPhone should be in your iTunes library. App settings and data created and stored by an app are stored with the app on your iPhone and included with your iPhone's backup.
    When syncing with another computer - even with the same iTunes library and iTunes account, your iPhone will be erased of all iTunes content but iTunes should create a backup of your iPhone first - which includes settings and data created by a 3rd party app. You can always manually create a backup for your iPhone with iTunes on your Mac before syncing.
    Your iPhone will be erased of all iTunes content first, followed by selected iTunes content via your iTunes sync preferences being re-transferred to your iPhone. If any 3rd party app settings or data is lost, you can restore your iPhone with iTunes from your iPhone's backup.

  • How to sychronize app with a new library without loosing data?

    Hi,
    I had to re-install my SO and now I have to synchronize my ipod touch with a new itunes library, itunes tells me that if I do this i'll loose al apps and data that i have on my ipod, how can I transfer app and data from the ipod to my pc and synchronize without loosing apps and data?

    Wow, you Apple lemmings are great.  Yes, I do backup, brilliant of me, huh?  Thanks for the productive input.
    Are any of your really going to argue in favor of the requirement that you sync with one itunes account on one computer?  If so, please enlighten me as to why this is a great idea.  I love the iPad but hate that it is permanently tethered to itunes.  In fact, the thing will not work without an itunes account.  This is one reason I don't have an iphone and stick with android.  The android acts as its own hard drive.  It's very simple to save, backup and swap files with any computer.
    But back to the issue at hand, what if one doesn't backup?  Or if they did, the file was corrupt or the media they backed it to crashes?  The fact that the ipad cannot stand on its own is ridiculous.  By the way, I did restore my itunes folder but still get that notification that my ipad will be erased.  I'm sure though that I've added some apps since the last sync.  Are they going to be there when my ipad gets wiped out?  How does one know what has been saved?
    I love Apple products for its hardware but hate the software and all the control they have over it.  If I lose my apps, then so be it.  If there is any way around this, please let me know. 

  • How to unlock Touch without loosing data.

    Have not sync'ed ipod touch in some time.  Daugther changed passcode and has forgotten what it is.  How can I reset passcode without loosing all the data added since my last sync with Itunes on my laptop.  From everything i have read it appears the only option is to re-sync or restore and both options will remove all the games, app's and data on her device.  Are there any other options.

    Does it back up while charging via iCloud?
    Otherwise, no, sorry.  
    Would you like me to be the bad guy?  
            "Young lady, you had permission to use my iPod! but when someone loans you something you must return it in the same condition or you will not be allowed to use it again"
    If she is too young to understand that, then she is too young to touch the iPod.  
    Good luck, sorry about your contents.

  • Inserting a column without loosing data

    Hi All,
    I have a table with more than 100 fields and about thousands of rows in it.
    The structure of the table needs changing such that a new field is to be added as the second last column. Please note that the last column is a field of data type LONG.
    The problem is how do I insert a column without loosing the old data in the table. Also please note that the customer is using Oracle 7 which I guess doesn't have a column insert facility.
    The above needs to be done only using SQL statements and no other oracle utility.
    Please help
    Thanks in advance
    Paresh Prabhu

    Hi,
    IIRC, in v7 you can rename a table, so the method would be:1/ Create the new table structure "NEW"
    2/ get a trace from all triggers, grants, etc set on the "OLD" table
    3/ grants on "NEW"
    4/ rename "OLD" to "TEMP"
    5/ insert into "NEW" all the content from "TEMP" (insert as select)
    6/ rename "NEW" to "OLD"
    7/ create triggers, indexes, ... on "OLD"
    8/ check "OLD" data against "TEMP" data
    9/ if OK, drop "TEMP"Of course it's been a loooooooooooooooooooooooong time since I last used release 7.* and there's no FM easily available on OTN (tahiti, ...) so you should test it thouroughly in test environment before doing it on prod system.
    HTH,
    Yoann.

  • Ipad is disabled connect to itune, my friend entered the wrong passcode , but i know my passcode how can i fixed it without loosing data

    my friend entered the wrong passcode , but i know my passcode how can i fixed it without loosing data

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

Maybe you are looking for

  • Lost hard drive, can I retrieve music from ipod?

    I need some help I lost my hard drive and didn't back-up my iTunes so I lost everything. Is there a way to transfer the music from my iPod to either my computer or to iTunes? Any help would be appreciated.

  • How to view large images ?

    i just updated my phone c601 from symbian anna to belle..may i know how to view large images in the nokia internet browser..i cant change it

  • Cd player only plays recodable cd's

    hi could you help me i have limited knowledge of my mac .it plays recordable cd's but wont play normal cd's that i have bought from shops also the dvds will not play . i have been told that the dvd's my not play due to the imac g4 not having this fun

  • LSMW- Recording : Multiple Line Items

    I am trying to create an LSMW recording that simulates transaction O3I7. The thing is that we have different line items. This is similar to a sales order where we have header details and items details. I created a recording. Then I created two struct

  • Dynamic group membership Query based on alert description - IS package failed

    Hi there all good people, Ive got the following case: i need to filter out some of the alerts raised bij the is package failed Alert rule. All allerts raised need a override accept two alerts with a specific description. example: Alert description: P