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

Similar Messages

  • 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.

  • 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())

  • Any javadoc documentation available for Workflow Java API?

    Does anyone know if there is a "proper" Javadoc generated set of documentation for the Workflow Java API. The supplied html/pdf documentation describing the Java API has lots of omissions (eg, the getItemAttributes method returns an instance of WFTwoDDataSource - but where is the WFTwoDDataSource documented and how should I use the methods in that class?) I've tried loading some of the undocumented class definitions into a class browser, but the class methods have unhelpful parameter names like 'param1', which doesn't help in understanding how some of the classes and their methods should be used. I've tried searching technet and metalink for more specific documentation without success. If anyone can point me at a more useful set of documentation for the class hierarchies and their methods, it would be much appreciated.
    Thanks

    Hello,
    I'm also starting with workflow 2.6 java api. Just wondering if you had any luck in getting the source for wftest sample program... In case you did, could you send it to me please.
    Thanks in advance.
    /Fernando Pereira

  • Is there any good documentation on dynamic ql?

    Is there any good documentation on dynamic ql in weblogic 7.0? Or does anyone have
    a good example using dynamic ql?
    Do let me know.
    Ronak Parekh

    Managing (iCloud) Data on Your iPad
    http://www.peachpit.com/articles/article.aspx?p=1899113
    iCloud: Backup and restore overview
    http://support.apple.com/kb/HT4859
    Check iCloud storage & backup space on iPad
    http://www.urltips.net/check-icloud-storage-backup-space-on-ipad/336/
    iCloud: Troubleshooting creating backups
    http://support.apple.com/kb/TS3992
     Cheers, Tom

  • Is there any way to force the applet to load the file without using cache?

    Hi,
    I have the applet that renders some data from a file specified as the parameter. The problem is that the user can do something, that changes the input file and reloads the page, but the applet renders old data (from browser cache most probably)
    Is there any way to force the applet to load the file without using cache?
    Regards,
    Zdenek

    The initial view (IV) settings within a PDF file are static tags - they can't be made to dynamically-adapt based on the window dimensions,it's the renderer (Acrobat, Reader, or whatever else is opening the file) that decides if and how it will follow the IV requested by the file header.
    It would be possible to use a Page Open action on the first page of the file, which does some nasty math with the various doc.*WindowRect objects to work out how much "wasted" space there is, and then set the doc.layout and doc.zoomType properties - but page actions are a different concept to IV as the zoom will reset itself every time that page is viewed. Users don't like their application apparently fiddling with the zoom level without being told to!

  • Good documentation about the NWDI

    Hello,
    I just started with the NWDI by installing it. Is there any good (and short) documentation about the functionality of the NWDI? Has the NWDI something like a but tracker and so on?
    What are you using for your development to enhance the possiblity of the NWDI? Are there any additional applications (not neccessary from SAP) that you are using?
    Thx, Vanessa

    Hi,
    Go through the following links
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c05ae1f2-e2f8-2a10-a19d-c36ef0999ab3
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f03cd0f1-77c7-2b10-8093-de20e973c3fb
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f03cd0f1-77c7-2b10-8093-de20e973c3fb
    /people/boris.zarske/blog/2007/08/16/new-version-of-configuration-wizard-with-sap-netweaver-70-sps-13
    /people/marion.schlotte/blog/2006/03/30/best-practices-for-nwdi-track-design-for-ongoing-development
    http://help.sap.com/saphelp_nw70/helpdata/en/44/355093ba830a67e10000000a422035/frameset.htm
    Regards,
    Saleem

  • Any Good Ideas on the Best iPhone 4S...

    I have looked at so many covers, cases for the iPhone.  Does anybody know of an excellent case that protects the iPhone 4S without blocking any of the ports or display?  I recently saw this holster that looked cool but seemd not quite what I am looking for.  I have a strong tendancy to be hard on items like the iPhone even know I try not to.  I have tried the Otterbox, which did not really protect much.  somebody had told me about one that I looked at at Best BUy, but I saw their website too and it loked pretty good but right now I forget the name.  I would like to be about to hook it up to the Mophie Juice Pack without having to take it out of the case.  any suggestions?

    For the majority of the time, I go caseless. I don't like them because debris becomes trapped and requires cleaning every few days, not to mention random scratches. I would, however, invest in a screen protector. Just a basic one. Or, ZAGG Invisi-shield.
    I stress this however if you follow my advice: be careful. It isn't hard.
    Do you have the Mophie case already? If not, I discourage buying it. Battery life should be long enough with moderate usage. If you already do, you may want to look into a pouch for the HTC Evo, since I think it will be about that size with the case on.

  • Any Good Documentation on JVMTI Deallocate Function

    I have written a small thread debugger using JVMTI and JVM crashes. I believe it is because of bad use of jvmti->Dealliocate method.
    Can anyone point to a good documentation on Deallocate. I have read JVMTI Specification. I need more elaborate one.
    Thanks in Advance.

    11i documentation has a manual called
    something like: concepts
    This is not bad.
    Also the Installation guide is helpful.
    However, not everything is in layman terms..
    So it can be confusing at first.
    null

  • Any GOOD things about the WRT300N?????

    I understand that these forums are good sources of information for solving problems.  However, ALL I can find are problems with the WRT300N. 
    I just bought one and I plan on installing tomorrow to support a new wireless 11g printer I bought and to give me more headroom for gaming.
    All the posts cite connections dropping, poor performance, and lack of range.  Is anyone "pleased" with this router???
    Should I just put it back without even trying to install and get my money back????
    Thanks.

    Jag,
    I've only owned the 300N for a few days, but it's been stable and an easy connection with a Windows Vista machine. I struggled with an older NetFear router with a new Vista machine and gave up after 4 days of stress and frustration and bought the 300N with the USB300 series adapter on a whim while shopping.
    I've been getting 4-5 bars and according to Vista's connection information, averaging 210-250 mbps. The wireless PC is located upstairs on the second floor and the wireless router is on the first floor in my audio room. Just take note, there are not any "G" devices on the network.
    I had 2 issues with the router which I will explain.
    I contacted Linksys's level 1 tech support to deal with these 2 issues The security light light on the router was not lit and I asked why considering I had all security features enabled. MAC filtering, blocking SSID and encryption. The tech told me that if you use the Easy Link software the security light will not light. To activate the security light, you need to use the Linksys Wireless Network Monitor software to activate the security light. Unfortunately, Vista does not support this software, so if using Vista, according to the tech, it will never light until they have a fix, if they create one at all.
    The other issue I had was not broadcasting the SSID. When I disengaged the broadcast function, I could not connect to the network. I tried various methods and I initially looked for the Wireless network monitor software, but it was/is not available with the Vista firmware. To connect to the router with the broadcast of the SSID off, she had me delete the current profile, create another manually adding the network SSID, encryption type, etc., and now I can connect to the network with not broadcasting the SSID.
    Perhaps my situation is an anomaly, but I have not dropped a connection yet, speed has been 5 X my NetFear "G" connection speed and I receive 4-5 bars for signal strength. I did notice that when I changed the Network Mode to "N" band only and changed a few other settings following the manual, the signal dropped to 3 bars. I just switched back to the "Mixed" mode and default settings and the signal went back to normal.
    I'm not a complete neophyte with wireless, but generally once it's secure (if there i such a thing) and connected, I never touch it again except to change the network name, router password, etc every few months. That is my experience.
    Much luck, Charles
    Message Edited by mozvz on 12-31-2007 07:17 PM
    Message Edited by mozvz on 12-31-2007 07:33 PM

  • Internet Usage Monitoring - Any good tools out the...

    Hi,
    Does anybody know if the NetProtect Plus product allows you to monitor all of the Internet traffic through the the BT Infinity Wireless Router. I think this has got to be done at the Router otherwise they will sneak on with the iTouch if I just limit it to PC's/Laptops
    I am not so bothered about 'blocking sites' just want to analyse how long they stay on the various sites they go to. For example 4 hrs on Facebook when they said they were 'revising'.
    Or does anyone know a good reasonable product that does this.
    Many Thanks in Advance
    Colin

    Hi Alan,
    Looks good, thanks for the detail. I will look at their products closely but I am also thinking their should be something on the router as the kids can get to that via their iPhone/iTouch and you can't install anything on those devices.
    I may get Net Nanny for their Laptops and just block their other devices for a period of time each day.
    Trouble is the Admin tools as part of the BT Infinity Hub are not that great, I think it is a missed opportunity for BT here.
    /Colin

  • I wish to remove my hard drive from a dead iMac, and have it place into an external case. Any good sources for the person to do the work?

    I have a dead iMac (mother board), intel duo.I wish to remove the hard drive and made into an external hard drive (hopefully being able to read the contents). Any recommendations as to whom I should go to to do the work?

    AASP Locator

  • Any good visualizers for the iPad that work with iTunes?

    I have long wanted to hear my iTunes library through my home cinema system and watch the iTunes visualizer at the same time. Current Macs support mirroring on a TV via Apple TV, but mine are too old. I thought I could get around this with an iPad, but iTunes on the iPad does not feature a visualizer, so I'm looking at third party apps.
    I'm not too impressed with the App store search facilities though - it doens't seem to find a lot of things I've been told are on there. The Apple store I visited advised me to go this route, but Gravilocity and Light Beams - two I've been told about - don't show up in the searches.
    What I need is a good visualizer that I can run as well as iTunes (not as part of it) so that I can mirror this via Apple TV. I am working on the assumption that an iPad can play iTunes content, and allow you to open another software item on top of it? Sorry if that sounds dumb, but I've never used one.
    I'm sure there's probably something out there, but thus far I haven't found it.
    At present, what do you see on Apple TV when you play anything from iTunes? I understand front row has gone.
    If anyone can give me a few pointers to solve this puzzle, I would be most grateful.
    Many thanks in advance.

    Wouldn't hold my breath waiting for it. Apple has a distinct preference for everything going through iTunes.
    You can look into word processor programs like Documents to Go, which have wifi syncing outside of iTunes, or other online services like Dropbox or others that allow you to upload and download documents, syncing them without going through iTunes.

  • Are there any tutorials for calling the Apple StoreKit API with a DPS app?

    Are there any tutorials or resources for learning how to sell a 'non-consumable' in a DPS app running on iOS.
    Mark 

    You have two options:
    One get the OE creation script from some other Oracle install and install them on the XE database.
    More info on where to get it is here:
    http://www.oracle.com/technology/obe/obe_as_1012/j2ee/common/obeconnection.htm
    Or just use HR tables instead - most of the tutorials simply use a master details relationship - so in OE it is usually the customer who has order - and you can adopt it to the HR schema using the departments that has employees.
    Don't know about the XE license, you might want to ask this on the XE forum.
    Shay

  • Anyone find any good holsters for the iPhone?

    Cause I need one.
    Garrett, Texas

    I bought one of the belt clip cases (and the glue came apart almost causing me to almost lose my phone) but took it back and exhanged it for the Belkin Slim-Fit case.
    That case is nice. It covers/protects the screen while in the case and the belt clip, though not locking, is REALLY tight so you won't lose you phone. You can't easily pull it off your belt... a good thing.
    Perfect. http://www.belkin.com/ipod/iphone/
    I think the cases that show off the iphone while you wear it are the most dangerous when it comes to possible screen damage and loss.
    If you're looking to be envied by people in elevators then the slim-fit case is not for you!

Maybe you are looking for