Applet Caching - JVM and MVM

Hi,
I am new to Java and I need to enable caching a java applet archived in a jar/cab file. The caching should work irrespective of whether the User enables the Sun JVM or Microsoft VM in his IE.
Here is the code I have in my html:-
<applet width="1" height="1"
     codebase = "/advisor/classessource/"
     code="LauncherApplet.class" name="Launcher"
MAYSCRIPT VIEWASTEXT id=Applet1>
     <PARAM NAME = CACHE_ARCHIVE VALUE = "classes.jar">
     <PARAM NAME = CACHE_OPTION VALUE = "Plugin" >
     <PARAM NAME='cabbase' VALUE='classes.cab'>
     <param name="ImagArchive" value="0">
</applet>
When I enable Sun JVM in IE - I notice the caching works. I'm checking the time stamp Documents and Settings/mylogin/Application Data/Sun/Java/Deployment/cache/javaapi/v1.0/jar
But when I enable Microsoft VM - The cab file is always getting downloaded into the Local Settings/Temporary Internet Files
Could you please tell me how do make it cache with MVM enabled?
Thanks,
G

The document you point to explains caching JAR files in 1.3. Can I also cahce GIF files the same way? Does the plug-in caching mechanism work with any file type? If I cache a GIF file, how to I reference that in my code so the Applet uses the cached version instead of the one on the server, or does it implicitly know this?
Thanks for any insight.

Similar Messages

  • Sharing JVM applet cache among multiple users

    Our browser plugin clients run in a Citrix environment where Windows Terminal Services servers host the client sessions for multiple users and the users only have a thin client hardware device at their desks. We've discovered that as a consequence of optimizing certain aspects of the Citrix environment a user's JVM cache is remote to the server hosting his/her browser session, and that the remote caching is a performance bottleneck.
    Turning applet caching off improves performance considerably, but we'd like to get the cache directed locally to the server hosting the browser session and turn caching back on. But since hundreds of users times tens of servers in the "Citrix farm" adds up to a lot of cache disk space, we're wondering about users sharing a JVM cache. This already happens when one runs multiple browser/plugin sessions locally on a regular workstation. But what about fifty users' separate plugins sharing a single applet cache? It appears from file timestamps that jars'/classes' idx files in a cache are updated when a file is loaded from the cache. What if multiple browser plugins were trying to do this concurrently? Is there a risk of locking, or a data integrity exposure? Or are those idx updates insignificant since they don't affect the last modified date or the sticky cache version number? (Most apps use a 1_5_0_2 JRE, but some apps require a 1.4 plugin.)
    Thanks,
    Brian

    This sounds very similar to a problem that's occuring for us at the moment. Did you ever find some solution to this problem?
    Regards,
    Jon.

  • Sharing JVM applet cache among multiple users (crosspost)

    Does anyone have experience sharing a single JVM applet cache among multiple users?
    (This is a crosspost of http://forum.java.sun.com/thread.jspa?threadID=5157018. I know crossposting is frowned on, but it went a week without replies in the plug-in forum.)
    Our browser plugin clients run in a Citrix environment where Windows Terminal Services servers host the client sessions for multiple users and the users only have a thin client hardware device at their desks. We've discovered that as a consequence of optimizing certain aspects of the Citrix environment a user's JVM cache is remote to the server hosting his/her browser session, and that the remote caching is a performance bottleneck.
    Turning applet caching off improves performance considerably, but we'd like to get the cache directed locally to the server hosting the browser session and turn caching back on. But since hundreds of users times tens of servers in the "Citrix farm" adds up to a lot of cache disk space, we're wondering about users sharing a JVM cache. This already happens when one runs multiple browser/plugin sessions locally on a regular workstation. But what about fifty users' separate plugins sharing a single applet cache? It appears from file timestamps that jars'/classes' idx files in a cache are updated when a file is loaded from the cache. What if multiple browser plugins were trying to do this concurrently? Is there a risk of locking, or a data integrity exposure? Or are those idx updates insignificant since they don't affect the last modified date or the sticky cache version number? (Most apps use a 1_5_0_2 JRE, but some apps require a 1.4 plugin.)
    Thanks,
    Brian

    This sounds very similar to a problem that's occuring for us at the moment. Did you ever find some solution to this problem?
    Regards,
    Jon.

  • Do the Cache, CacheStore, and CacheLoader all need to run in the same JVM?

    do the Cache, CacheStore, and CacheLoader all need to run in the same JVM?
    Any help is appreciated.
    Thanks.

    they can be in differnt DP with no problem.
    Now question:
    1-MOH multicast/Unicast? (Multicast MOH ONLY support G711, so that could explain changing the DP fixnig the problem)
    [You can create a DP/region for MOH if multicast to talk G711 to everybody and the problem will get fix]
    Please Kudos/rate if this help!

  • Security in applet cache

    Hello.
    I read below at http://www.velocityreviews.com/forums/t132214-applet-caching.html
    Wut is answer of that post?
    thx.
    I found that when an applet is cached (using Sun jvm), it's placed in the
    Sun\Java\Deployment\cache\javapi\jar\ folder. The files are saved with
    somekind of checksum added to them (fx: file1.jar-md5checksum.zip). Does
    this prevent hackers from modifying the applet and have the website execute
    a modified applet instead of the original one? If so, is this security
    mechanism provided with every jvm? (ie MS, IBM etc?)
    Does anyone know anything about this?
    Thanks in advance!
    -Thijs

    spalguru wrote:
    ..upgrading windows sun java from 1.5 to 1.6 makes our applet caching works faultly, it doesnt cache applets file into the cache directory...
    can anybody helps?.. Can you find your shift key and apply it once at the start of every sentence? This helps the reader to quickly scan the text, looking for ways to help. You would not want to make it harder to help, would you?
    ..is there any bugs within javas new 6 versions image caching?Non applet runtime classpath resource caching is left to browsers, AFAIU. That means that whatever the browser decides to do (from caching all files, to caching no files, to allowing the end user to remove all cached files), is correct behaviour.
    For more control over caching, add resources into Jars, and add them to the applet's runtime classpath using the archive attribute of the applet element.
    For even more control over caching, either launch the applet free-floating using Java Web Start, or deploy it within a plug-in2 architecture JRE within a web page, & hook into the JNLP API's DownloadService.

  • Differences between Sun JVM and Microsoft JVM.

    Differences between Sun JVM and Microsoft JVM.
    I have a very simple applet that I am trying to make compatible with both Microsoft�s JVM and Suns JVM in Internet Explorer.
    However, when I turn on the Sun JVM it works occasionally, but frustratingly on most occasions I get the following error messages:
    In the status bar: "Applet <name> notinited"
    And when I investigate further in the console I get the following output:
    load: class <name>.class not found.
    java.lang.ClassNotFoundException: <name>.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.SocketException: Malformed reply from SOCKS server
         at java.net.SocksSocketImpl.readSocksReply(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.net.www.http.HttpClient.privilegedOpenServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.net.protocol.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.net.protocol.http.HttpClient.New(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.createConnection(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    It appears that the applet never gets loaded. I have no idea why?
    What is the Sun JVM doing here?
    Many thanks in advance for any help.

    Oh, one more thing. Here's the outpt of the VM log when I run the test above:
    Java(TM) Plug-in: Version 1.4.2_03
    Using JRE version 1.4.2 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Michael
    Proxy Configuration: No proxy
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    java.lang.NullPointerException
         at sun.plugin.cache.Cache.updateTable(Unknown Source)
         at sun.plugin.cache.FileCache.getMatchingFile(Unknown Source)
         at sun.plugin.cache.CachedFileLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.cache.CachedFileLoader.getCacheFile(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
         at sun.plugin.cache.FileCache.get(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    v

  • Applet cache is not working on Mountain Lion(Mac 10.8)

    Applet cache is not working on Mountain Lion(Mac 10.8)
    OS Details:  Mac 10.8
    Applet cache is not working on Safari 6 and Firefox 15.0.1 with java 7(provided by oracle) on Mac 10.8(mountain Lion) and even applets are not working  on chrome because its not supporting java 7(64 bit).
    In order to run applets on Firefox and Safari we need to install Java SE6 which provided by Apple otherwise “PlugInProcess” does not work and it show the below warning message.
    For your information I given screen shots below
    ) Safari screen shot with Java Plug-in
         2.) Firefox screen shot with Java Plug-in
         3) Chrome screen shot( it does not have java plugin)
    4) Java cache viewer console
    5) Applet Java console and it is using Java 7
    Kindly review above mentioned problem and suggest us.

    Problem solved.
    I switched to a Western Digital powered Hard Drive from the Toshiba Canvio I was using.
    I suspect the USB 3.0 did not mount correctly after the first save.
    Fortnuately the Canvio does work on my Windows 7 machine.
    Thanks for yur suggestions

  • Java applet cache parameter

    I'm sorry if that what I'm looking for is described elsewhere. I couldn't find it. I seem to have a bug with the latest Apple's java implementation (1.5) downloaded with the latest Software Update.
    I have to switch off applet caching for a certain applet and tried to do this via the Java preference app. It seems that it doesn't work using the offered checkbox. Because everytime when I check it and leave the dialog and turn back it's still checked. I tried it with the deployment properties file but had no luck not knowing (finding) the correct parameter to set false.
    As setting the cache size to zero didn't resolve the problem finally I tried to set the cache path to "/dev/zero" what for sure is the worst solution but it works out. Caching is disabled (This way I discovered that trying to write the cache path in the box in the preference pane you can write it only in reverse manner! llun/ved/ No, it's not a joke)
    Anyone could tell me the right parameter for the deployment properties file that I can correct this situation?
    Thanks
    Powerbook   Mac OS X (10.4.6)  

    Unfortunately, this did not resolve the issue. I have been doing a bit more looking and it appears I'm getting a null resource error on reload/refresh:
    public abstract class SimpleWindow extends JInternalFram
       public SimpleWindow()
          initComponents();
    public class FancyWindow extends SimpleWindow
       public FancyWindow()
          initComponents();
    }During startup, it tries to create a new FancyWindow, which calls initComponents(). Inside initComponents is a call to create a JEditorPane.
    The function runs fine, and I am able to create a new JEditorPane; however, when I do:
    jedit.setText("Text Here");I get my null error (tracing through the calls, it looks like it's unable to initialize the editorkit.
    This does not happen on a normal first-time load. It does not happen if I completely close the browser and restart it to re-run the applet, but if I just try to refresh it, it seemingly can't get memory for this?
    Edit: It looks like this may be a regression in 1.6.0_22 and later: 1.6.0_22 HTMLEditorKit throws NullPointerException when reloaded
    Edited by: Jamie.McPeek on Jan 15, 2011 12:28 AM

  • Correct JNI_OnLoad JNI_OnUnLoad approach for cacheing jvm ref?

    Currently am successful in calling a C API from Java. What am basically trying to do here is catch an event in C program, and callback the Java instance, to handle it in my Java code (Similar to a event handling in Swing).
    I have implemented the event handling in Windows in C, and will be implementing it soon for Linux and Mac, but how do I cache jvm reference? As far as i searched in other forums, I realize the need for implementing JNI_OnLoad and JNI_OnUnLoad functions in C.
    But am a bit confused in the concept of global references.
    JavaVM *cached_jvm;
    JNIEXPORT jint JNICALL myJavaClassCallback() {
    jclass Class_myclass;
    jmethodID MID_myclass_mymethod;
    #ifdef JNI_VERSION_1_2
    res = (*cached_jvm)->AttachCurrentThread(cached_jvm, (void**)&env, NULL);
    #else
    res = (*cached_jvm)->AttachCurrentThread(cached_jvm, &env, NULL);
    #endif
    if (res < 0) {
    printf("Attach failed\n");
    return;
    Class_myclass = (*env)->FindClass(env, "mypackage.MyClass");
    if (Class_myclass == NULL) {
    goto detach;
    MID_myclass_mymethod = (*env)->GetStaticMethodID(env, Class_myclass, "myMethod", "(Z)V");
    if (MID_myclass_mymethod == NULL) {
    goto detach;
    jboolean jbool = JNI_FALSE;
    (*env)->CallStaticVoidMethod(env, cls, MID_myclass_mymethod, jbool);//Correct?
    detach:
    if ((*env)->ExceptionOccurred(env)) {
    (*env)->ExceptionDescribe(env);
    (*jvm)->DetachCurrentThread(jvm);
    JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM jvm, void reserved) {
    JNIEnv *env;
    cached_jvm = jvm; /* cache the JavaVM pointer */
    if ((*jvm)->GetEnv(jvm, (void **)&env, JNI_VERSION_1_2)) {
    return JNI_ERR; /* JNI version not supported */
    return JNI_VERSION_1_2;
    JNIEXPORT void JNICALL JNI_OnUnload(JavaVM jvm, void reserved) {
    //Should i implement some delete reference here???
    I have two questions here.
    One, should i call some delete reference (or some function like deleteallrefereces (??)[if available]) on JNI_OnUnload?
    And two is my passing of jboolean argument correct?
    Thanks,
    Sreram

    <quote>
    You're not using global references. Your question?
    </quote>
    Oops! I realize now am not using global references. But i have two questions regarding global and local references.
    One, If we create a global reference, and use it in our program, how and when do we delete the reference? When, the answer might be after the reference is no longer in use, but if the reference is used all over the c code, should we delete it manually using DeleteGlobalRef in Unload function? Should DeleteLocalRef be called in every method, where the reference might be used?
    And two, why the code
    <quote>
    static jclass stringClass = NULL;
    jmethodID cid;
    jcharArray elemArr;
    jstring result;
    if (stringClass == NULL) {
    stringClass = (*env)->FindClass(env,"java/lang/String");
    if (stringClass == NULL) {
    return NULL; /* exception thrown */
    /* It is wrong to use the cached stringClass here, because it may be invalid. */
    cid = (*env)->GetMethodID(env, stringClass, "<init>", "([C)V");
    </quote>
    is wrong? I understand the above code is wrong as the stringClass variable here may become invalid and Garbage collector might have removed the variable from memory, but what i don't understand is how will it become invalid when the variable is still used in the same method?
    <quote>No.</quote>
    I understand i mustn't delete any references as i haven't used any global references, but my question was regarding the local and global references i stated above.
    <quote>Yes, but you don't actually need the variable, just pass JNI_FALSE directly as the argument.</quote>
    I knew it. But just wanted to confirm as in my actual code, i will be passing boolean argument based on the condition i determine, at runtime.
    <quote>Yes, if there is such a thing. Yes.</quote>
    The reason i asked this question is, I am using 1.6 version, but am giving 1.2 .. Is it like it will compare with version 1.2 and return true if version is 1.2 or higher?

  • Delete  user applet cache....(Question) ?

    Hi guy,
    I am looking for any idea or suggestion that how i can delete user's applet cache . Lets suppose i have got new applet, i mean new version with some changes, then how i can automatically delete current cached applet and let the user download with new one from server.
    Thanks in advance.
    Romi

    Hi Romi,
    You wrote:
    I am looking for any idea or suggestion that how i can delete user's applet cacheYou don't have control over the user's browser, but you can specify the cache version of each jar file in your applet. When you have a new release, you can specify a newer version. If the browser/plug-in follows the version convention, it will download the new jar file and not use the older cached file.
    See [Applet Cachine|http://java.sun.com/products/plugin/1.3/docs/appletcaching.html].
    Was this what you were looking for?
    (Reading the document again, I see you could also specify "cache_option" to be "No" which would force reloading every time.)
    -David-

  • Why does my Firefox say my java applet is corruped and will,not download for my game

    I play a lot of games on POGO and they tell me that I have to have JAVA and Mozilla Fire Fox for my browser. I have 1 game that I get kicked off of each time I try to play it. I get a notice telling me that my browser says my applet from Java is corrupted and will not download. I have done everything they suggest and nothing works. Mozilla seems to be a terriable choice for me as a browser I have a lot of ppproblems with them getting me to my web pages.. help!!

    Hi,
    Have you tried deleting the Java applet cache from the '''Java Control Panel''' > '''Temporary Internet Files''' > '''Settings''' > '''Delete Files...'''?

  • Cache destroy and removing objects based on filter

    Hi,
    I have lined up a few questions to understand the ways we can destroy/remove cache entries or cache itself on a collective basis and not just the cache.remove(key).
    1. How do I remove a group of keys from the cache? Say either I know the keySet or a keySet obtained based on a filter. I can see the Java doc says namedCache also implements queryMap and that supports keySet(Filter) but unlike Map.keySet(), the set returned by this method may not be backed by the map, so changed to the set may not be reflected in the map.
    http://download.oracle.com/otn_hosted_doc/coherence/353/com/tangosol/util/QueryMap.html#keySet(com.tangosol.util.Filter)
    Now that also means cache.keySet().removeAll() may not work. Can we confirm that, as another article http://wiki.tangosol.com/display/COH35UG/Data+Affinity shows an example way to use entryset or keyset and shows this line:
    cacheLineItems.keySet().removeAll(setLineItemKeys).
    2. Is namedcache.destroy() a blocking or non-blocking? Coz in one of our tests, we created a for loop of the following code:
         a. create cache.
         b. use cache.
         c. destroy cache.
    And we expected at any point of time to have only one cache to be active on the cluster, however with the 500M as the high unit, we never saw evictions and indeed saw out of memory error. We had like 100 iterations. We expected destroy cache to basically delete the cache, thereby freeing the memory on the JVM. We only had one proxy and one storage in our test.
    3. Is namedcache.clear() a blocking or non-blocking call? Although this does not necessarily removes the cache, it only unmaps all the entries in the cache.

    Hi,
    You can remove multiple cache entries based on a filter like this...
    Filter filter = ...
    cache.invokeAll(filter, new ConditionalRemove(AlwaysFilter.INSTANCE));...or on a collection of keys like this...
    Collection keys = ...
    cache.invokeAll(keys, new ConditionalRemove(AlwaysFilter.INSTANCE));Regarding non-blocking calls, presumably for clear() I would think that the call will not return until the cache is cleared (i.e. empty) otherwise you would get all sorts of potential problems. For cache.destroy() I am not sure what state the cache will be in when the call returns. I suspect if you call this from a client it only destroys the cache locally on that client and not throughout the rest of the cluste though - but I am sure someone could confirm this.
    JK

  • Thread caching generally and the print API specifically

    hi - new slant on the old "printing" chestnut
    code goes something like this.
    a)
    PrintService[] x = javax.print.PrintServiceLookup.lookupPrintServices(null, null);
    System.out.println (x.length)
    code end, then repeat
    b)
    PrintService[] y = javax.print.PrintServiceLookup.lookupPrintServices(null, null);
    [break point]
    PrintService[] z = javax.print.PrintServiceLookup.lookupPrintServices(null, null);
    code end
    example a)
    if i run the same piece of code twice over, deleting a printer after the first time thru, i get the right answer on the second run.
    example b)
    if i stop the code at the break point, and then delete a printer; i get the same answer for z as for y. Still using the same JVM and thread, remember.
    i think the JVM or thread is caching the answers to this static call "lookupPrintServices". so i get the same answer until the code ends and the JVM exits.
    since this is going to run in an EJ bean, a workaround might be creating a child thread, doing the printer discovery in it, then returning the answer somehow to the waiting main program. This is nasty - does anyone have an other ideas ?
    thanks

    In fact, these server process have multiple devices attached because there are different hardware requirements depending on metadata recorded in the XML file (paper size/type, duplex printing). When a new hardware requirement arises, we may need to install a different device. It may also be the case that an XML contains a new printer name but that an existing device matches the requirements. We then install a new (logical) printer and map it to the port of the existing matching device.
    Any way, the device selection is data-driven and is somewhat dynamic (we will not add printer every day/hour but it will happen and the service should preferably not be interrupted)
    The problem of a new report type with hardware requirements already supported by existing devices could be solved by a override method but the problem of new hardware specifications, requiring the installation of a new printer can currently be solved only by bouncing the VM, which must be done carefully (being sure that a report has been processed completely and that the next one has not yet been started).

  • Customized Cache Config and Coherence Override files not Overrided.

    Hi,
    I am doing an example on coherence and was wondering if anyone can help with a couple of questions.
    1. I am trying to override the coherence-cache-config.xml and tangosol-coherence-override.xml with my custom xmls. But when I start cache server from cache-server.cmd executable provided in bin folder of Coherence, it is not able to pick up the overrided files. How can I override both these files.
    2. In most of the examples a new executable file is made for cache server start and the custom coherence-cache-config.xml is specified in this. The examples runs perfectly fine but I'm not able to see the same cache elements available when I run cache-server and cache-client present in the bin folder of Coherence. How can I integrate both of them.
    3. When we use Coherence as a web service from server, are we suppose to use run cache-server.cmd for starting the cache server or make some custom file executable file made for cache server start.
    I know some of the questions may sound silly to you but I'm not still able to figure the answer to these question.
    Any help will be appreciated.
    Cheers,
    Varun

    Hi Varun,
    Yes you can use the property -Dtangosol.coherence.cacheconfig =<file_name> for specifying the override file. No creating a jar is not a bottleneck and you can use either jar or system property in Production Environment. It completely depends on how your environment is setup and is for the flexibility pruposes? Use whichever is handy ...
    Ideally, you WS application should run in a seperate JVM than your Coherence Nodes. In this scenario, your WS application is set as storage-disabled and your Coherence nodes will be set as storage-enabled and both WS and Coherence Nodes will be part of the Coherence cluster. There will be no syncing between WS application and Coherence Nodes if you are using distributed cache; all the data requests from the WS application will be served by the Coherence Nodes. But, if you are using Near Cache then the data syncing will depend on the invalidation strategy used by you in your cache configuration. Read more about near-cache scheme here: http://wiki.tangosol.com/display/COH35UG/near-scheme.
    In WLS 10.3.4, there is a integration of Coherence and you can create Coherence Cluster from the Admin Console and define various Coherence cluster nodes and the documentation is here (http://download.oracle.com/docs/cd/E17904_01/web.1111/e16517/coh_wls.htm). But if you are using any other version of Weblogic or any other container then you cannot start from Weblogic but you need to start them seperately. Also, you need to make sure that the Coherence Nodes with storage-enabled are started before the storage-disabled nodes.
    Hope this helps!
    Cheers,
    NJ

  • Shared applet cache location

    In order to reduce both load times and network burden we are looking at the possibility using a common location for the java applet cache. Our internal tests, albeit limited, have proved successful. By specifying a common local network location for storing temporary files in the java control panel we were able to pull the jars for our applet by one initial user and use that cache (on a different pc) by another user. Specifically, we are looking at implementing this in a citrix environment using a local cache on the citrix server (rather than the network location in our tests).
    Does anyone have experience doing this? If so, what potential problems could arise? Is there a better solution?
    Thanks for any advise.

    Can I get help from you?
    If my question was not clear, please point out and I will supply more information.
    Looking forward to getting answer from you - Java Expert :)

Maybe you are looking for