Java Caching Framework

Hi All,
I m in process of evaluating some open source java caching framework which can help our web application to reduce response time.
Though i have some open source caching framework in my list like
JCS
OSCache
JOCache
But i have never used any one of the caching framework.If any one in the group have used them in past or is working on some open source based framework,please do share there experience so that it can help us in deciding the best available solution.
Thanks in advance
-Umesh

You may want to check out Hazelcast . It is an open source distributed, transactional distributed cache for Java. Hibernate second level cache plug-in is also available .
Hazelcast is released under Apache license. It also have distributed lock, topic, multimap, queue and executor service implementations. [This 10 minute video|http://www.hazelcast.com/screencast.jsp] is very good to get started.
-talip
Edited by: talip_ozturk on May 2, 2010 1:59 PM
Edited by: talip_ozturk on May 2, 2010 2:16 PM

Similar Messages

  • Java web start fails to launch application when java cache is off

    Hi,
    there's no problem when java cache is used but when java cache isn't used, my application fails to launch via jws (jnlp).
    the following is the error
    java.lang.NullPointerException
    at java.util.jar.JarVerifier.mapSignersToCodeSource(Unknown Source)
    at java.util.jar.JarVerifier.mapSignersToCodeSources(Unknown Source)
    at java.util.jar.JarVerifier.getCodeSources(Unknown Source)
    at java.util.jar.JarFile.getCodeSources(Unknown Source)
    at java.util.jar.JavaUtilJarAccessImpl.getCodeSources(Unknown Source)
    at com.sun.deploy.cache.DeployCacheJarAccessImpl.getCodeSources(Unknown Source)
    at com.sun.javaws.security.SigningInfo.getCommonCodeSignersForJar(Unknown Source)
    at com.sun.javaws.security.SigningInfo.check(Unknown Source)
    at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
    at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.launch(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    this is the jnlp file
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" version="1.0" codebase="http://11.4.100.41" href="secuiNXG.jnlp">
    <information>
    <title>secuiNXG U start GUI</title>
    <vendor>secui.com Ltd.</vendor>
    <homepage href="/"/>
    <icon href="web_login_ci.gif"/>
    <shortcut online="true">
    <desktop/>
    <menu submenu="secuiNXG U"/>
    </shortcut>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4+" initial-heap-size="50m" max-heap-size="250m" />
    <jar href="SES.jar"/>
    <jar href="skin_alloy.jar"/>
    <jar href="Borders.jar"/>
    <jar href="informa.jar"/>
    <jar href="jaxen-1.1-beta-12.jar"/>
    <jar href="jcelements.jar"/>
    <jar href="jctable.jar"/>
    <jar href="jdom.jar"/>
    <jar href="log4j-1.2.14.jar"/>
    <jar href="jnlp.jar"/>
    <jar href="jxl.jar"/>
    </resources>
    <application-desc main-class="secui.firewall.SecuiLogin">
    <argument>11.4.100.41:80</argument>
    </application-desc>
    </jnlp>Test Environment
    JRE : 1.6.0_19
    O/S : Windows 7 (32 bit)
    Browser : IE8
    I checked for other versions of jre but not using java cache didn't cause any problems.
    I checked for the release note of update 19 but I have no clue.
    Is there any way to launch java application without using java cache?

    greencosmos wrote:
    ..I had a problem changing the cache location. The button for this action is disabled. I can't figure out how to enable it.On my system, it is enabled when the 'cache files' box is checked, and disabled when it isn't.
    1) Without changing the location I assumed that deleting the cached files could be a similar job, so I clicked "Delete Files..." and deleted with all checkboxes checked.I am not convinced that would entirely clear the cache, but have done no specific tests to check.
    2) I unchecked "Keep temporary files on my computer".So it was checked when you were trying to change the cache location?
    3) Applied all the changes.
    4) I launched your demo.
    Result - It was launched without any prompt.
    I revisited the page with the URL and successfully launched the app. again.The application launched just fine, but no prompt.
    If you follow those (links and) steps I outlined exactly, does the file service demo launch twice for you?I'm sorry I don't exactly understand your question. .. Your description is enough to convince me that answer is 'yes'.
    ..I tried twice and it launched twice, but not twice at the same time(it launched once at a time).Surprise, surprise. That is the first mention in this thread of 'same time'/'simultaneously'. Care to share the other defining factors that you forgot to mention, or is guessing part of the 'fun' of helping?
    But still I'm having problems with launching my application.
    I assume that it could be jnlp syntax problem. The "main=true" subelement is missing.It is a good idea to validate the launch files of JWS based launches that are failing for any reason. For that purpose, I offer JaNeLA.
    Having said that, a missing main='true' will not be detected by JaNeLA, since it is not a compulsory attribute. ..But check them anyway.

  • Speed of animation fluctuates based on java cache..

    Hi everyone,
    It seems I am experiencing a rather weird problem.
    In my app I am having a small animation on a BufferedImage using the swingx.Timer class.
    The problem is that sometimes the animation runs very slow (I get a feeling of the computer struggling to keep up)
    while some other times its running on full speed! (I have set the Timer constructor to 1ms)
    What could be causing this "undeterministic" behaviour? I 've looked at the code a million times
    and there seems to be nothing wrong with it...!
    P.S I am having a CORE2DUO and running the latest JRE 1.6.024
    UPDATE: I can replicate the problem if I clear the java cache from the control panel
    in windows..!strange...isn't it?
    Edited by: konos5 on Mar 14, 2011 4:10 PM

    konos5 wrote:
    UPDATE: I can replicate the problem if I clear the java cache from the control panel
    in windows..!strange...isn't it?Depends. Are you perhaps loading the image in the same method you are drawing it? If so: that is horribly inefficient.

  • Webutil_file_transfer url_to_client places objects in the Java Cache

    Hi,
    I'm using webutil_file_transfer url_to_client to download a PDF file.
    Once I downloaded the PDF file, it is visible in the Client Java Cache Viewer. When I try to run the download again webutil takes the PDF from the Cache instead taking the newer PDF from the Server where the URL is pointing to.
    So the URL I passing is each time the same, but the PDF file on the Server is getting updated very often.
    I don't usethe WEBCACHE port!
    My question now is. Can I avoid webutil to put does PDF file in the Java Cache on the Client. Or is there any utility to remove selected objects from the Java Cache.
    Does anybody have a Idea how to avoid such a behaviour?
    Fatih

    Hi Craig,
    with the help of Oracle Support, we found the reason and also a workaround for this issue.
    The real cause:
    By default the java applet parameter DefaultUseCaches is true an all files downloaded within an applet is going throug the Java Client Cache.
    WEBUTIL does not touch this parameter, so it keeps staying default (true).
    Solution/workaround:
    With the methode setDefaultUseCaches it possible to disable/enable the default Cache setting.
    So it's possible to disable the cache with a small Java Bean running in Forms, which disable the Cache before WEBUTIL_FILE_TRANSFER and enable it after the successfull download.
    here is an extract of the bean code:
    URL u = new URL( "http:" );
    URLConnection uc = u.openConnection();
    uc.setDefaultUseCaches(false);
    thank you for your time!
    regards,
    Fatih

  • Java technology/framework suggestions required for solution.

    Hi,
    I'm a C/PRO*C developer (for the past 12 years) and have been asked to do some Java ( which I haven't touched for 13 years).
    I would like you input on the 'correct' solution (kind of like an architectural overview) of the technologies I should be looking at.
    There are two parts to this.
    I need to write a web browser/Application that picks up a file locally on windows PC and reads the contents of the file to populate some url parameters which go to a specific web sevice via HTTPS.
    I then need a web service or some kind of servlet (I guess) that on receipt of the request by the client then stores (to a database) the request for auditing and then creates a soap message (using the data receieved) to an external third party( WSDL provided by thirdpparty). Once the thirdparty responds the web server then generates a web page for the client which includes a number of options and details retrieved from the thirdparty are displayed and on the client selecting them the result is sent to the server and the selected option is stored.
    Part of this must be that the server must be capable of running as a number of instances. It must be highly secure.
    What java technologies/frameworks should be looked out? Is my very rough design fundamentally floored?
    Thanks in advance.
    OFN

    OldFashionedNewbie wrote:
    So should I use servlets as opposed to JSP? or JCF?Servlets are not opposed to JSP. (JCF? Do you mean JSF?) You can and would use both Servlets and JSP, however, I have grown to believe that JSPs are awful and you should use Velocity instead. From what I've heard of JSF, I'd avoid that too.
    Essentially then create a servlet that accepts HTTP request and manipulates a call to the thirdparty, audits data to database, and returns a page back to client which then accepts the option.The server accepts the HTTP request and deals with that lower-level stuff for you, then it invokes your servlet.
    The servlet shouldn't call the third party, etc.; it should invoke other code (that you'd write) to do all that. You need a layer of abstraction between your business logic and the web tier. Among other things this will make it much easier to test.
    If I were wanting to run this as a in multiple instances then I create a connection pool to the database. But could multiple app instances be able to use one network connection to the ThirdParty?I suppose they could but it seems like more trouble than it's worth and a whole layer of infrastructure that I wouldn't bother with unless (a) you've demonstrated that it's a problem during profiling, and (b) you find that there's some preferably open-source library that handles this for you.

  • Value mapping replication - java cache

    i used value mapping replication and successfully loaded values to the java cache (i can see the in the cache monitoring but not in  the configuration).
    when i try to use a scenario with value mapping using the agencies and schemes which i loaded, the mapping doesn't work and i receive the same value that was entered.
    what could be the problem?
    P.S
    i used the same groupid for each pair of source and target value when i loaded them. is that the right way?

    Tomer,
    what is the context that u used. Did you give the correct context in mapping as in Runtime Cache.
    Regards,
    Sudharshan N A

  • Issue with Java cache

    Hi friends,
    I'm in PI 7.3 environment, my problem is - when I try to access ESB and IB, it says that it is Unable to download.
    So, for that am clearing Java cache and trying to download to get into ESB and IB every time. Obviously am wasting hours of time to login ESB and IB. Just in case if the connection gets off, then If I want to get into ESB again I have to clear the Java cache completly(Java cache is not recognizing)
    I came across all the links in sdn but not solves my issue. Kindly share exact to do things - to fix the issue.
    Many thanks.
    Swarnaalu.

    Hi Swarna,
             There might be some problem with javawebstart you can try uninstalling java and try to reinstall so that it will work.
    OR
    I am not sure in PI &.3 but in earlier versions you can do the re-initialization which works.
    follow the below:
    1. Login to your XI/PI server
    2. Go to Exchange Infrastructure Tools main web screen. You will see
    Tools list and other options.
    http://SERVER:PORT/rep/start/index.jsp
    3. On the Upper right part of your screen you will see Tools
    Administration Client Installation and Guidelines Documentation.
    Click Administration
    4. Login with user.
    5. On the Exhange Infrastructure Administration , make sure you are in
    the Correct tab. (Repository Directory Runtime). The tab will
    determine the administration configuration that your will perform
    5.1 When this problem occur with Integration Repository > make sure you
    are in Integration REPOSITORY TAB. Proceed with step 6. Skip step 5.2.
    5.2 When this problem occur with Integration Directory > make sure you
    are in Integration DIRECTORY TAB. Proceed with step 6.
    6. Click on Java web start administration.
    7. Click on Re-initialization and force-signing. This will
    re-authenticate all new JAR files deployed. This will also let the new
    JAR files adapt to the current certificate deployed.
    This function will cause the above re-collection and additionally a
    re-signing of ALL resources with a dummy certificate. The original SAP
    signatures of the jarfiles will be lost. To get back the original SAP signatures
    the application has to be deployed again.
    8. A Java(TM) Web start Application reset text will appear.
    9. Wait for 5 to 15 minutes for re-initialization to complete
    10. Start your "Integration Repository' or "Integration Directory"
    again. It should work now.
    This will solve the issue
    Regards,
    Naveen

  • Clear java cache

    Hi
    Hope someone can assist
    I'm struggling to download items on some websites on Safari and the forum on the website suggested I clear my Java cache. I can't find any references to Java under system Preferences or Utilities. There is also no option to clear the cache in Safari.
    I've cleared the history and the cookies but that hasn't helped either.
    Can anyone point me in the right direction?
    Much appreciated
    K

    Thanks,
    For some reason I don't see Java under System Preferences?

  • Store XML data in java cache (hashmap as a key value pair)

    Hi,
    I have to store a xml file in java cache so that I can resue it .The flow is like this :
    DAO layer reads database ,create an xml and sends to --> IBM MQ-->our java code should read this xml file over MQ and store it in a cache (preferably hashmap).The file contain unique id for every customer.
    How can we achieve this.One way is to store the xml as an string as key is "id" and value is whole xml.Is this a good way or any other way is available.Please suggest.
    Sample xml:
    <Client>
    <ClientId>1234</ClientId>
    <ClientName>STechnology</ClientName>
    <ID>10</ID>
    <ClientStatus>ACTIVE</ClientStatus>
    - <LEAccount>
    <ClientLE>678989</ClientLE>
    <LEId>56743</LEId>
    - <Account>
    <AccountNumber>9876543678</AccountNumber>
    </Account>
    </LEAccount>
    - <Service>
    <Cindicator>Y2Y</Cindicator>
    <PrefCode>980</PrefCode>
    <BSCode>876</BSCode>
    <MandatoryContent>MSP</MandatoryContent>
    </Service>
    </Client>
    Thanks
    Sumit

    A HashMap can work, but then still store the customer related data in a bean (and perhaps it will have some child objects as well, if for example the service subelement can repeat). So you get a HashMap of Customer objects, with the clientID as the index into the hashmap.

  • Java Caching techniques..

    How can any one please provide me the pointers for Java caching techniques for performance enhancement of a a code.
    Thanks
    Naxy

    [Commons Pool|http://commons.apache.org/pool/]?
    What are you caching and why?

  • Java Cache Viewer shows duplicate URL with different versions

    In doing some testing lately we have come across a couple of situations where the same URL is showing in the JAVA cache viewer with different versions to them.  In the case of a 1.7 JRE this is not causing any adverse effects however when utilizing a 1.6 JRE we are getting messages about mixed mode for the JAR files.
    The jar file is signed as below:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.8.2
    Application-Library-Allowable-Codebase: *
    Application-Name: named_applet
    Built-By: relbuild
    Permissions: all-permissions
    Created-By: 1.6.0_17-b04 (Sun Microsystems Inc.)
    Caller-Allowable-Codebase: *
    Codebase: *
    understanding the need to change the wildcard's to domains as we move forward.  I am wondering why the jar file is being listed and called twice and why it is being recognized as signed one time and not the next.
    The URL is identical in the cache viewer and the java console says it is not found in the cache when it is used the second time, even though previously in the session is finds it with the correct version.
    Any advice would be helpful

    that i even know, but the problem is that i do not have that version of java re installed, but i found distribution 07 of the same java version, i'll try it out with that.
    but when it still doesn't work, then i still would like to find the link where i can download java version 1.4.2_06.

  • Java Cache Issue on SAP MII 12.1 SP09 (Build 116)

    Hi All,
    Has anybody experienced this issue before?
    Problem Description
    This installation is a central MII instance, which is HP hosted in Swindon, UK. On Login we are experiencing a delay in loading the Java Applets, i.e. iGrids, iCharts, iCommands etc. After the first screen load the performance improves. When we close the session and re-enter, the performance on the first screen is delayed.
    Problem Investigation
    We have compared this project to other MII instances and investigated the cache loading of each of the MII installations. What we have noticed is that the Java is not being cached on the client side for the MII server V12.1 SP09 (Build 116). We had three MII servers, with this version, and we are experiencing the same issue. We have other instances of version 12.1.7, 12.1.8, and 12.2.0 and the cache functionality is working fine.
    To view the cache we are opening the Java Cache viewer on the Java Control Panel, and we are looking for the file u201Cillum8.zipu201D which is the MII Java library. This investigation was done using the same Client Java Runtime version and IE Version.
    Software Versions used: JavaRuntime version: 1.0.6_22 & Internet Explorer 8.0
    Any advice/help much appreciated.
    Regards,
    Henry

    Hi Henry,
    Not sure this has any bearing, but what NW version and SP is MII sitting on top of?
    Thanks,
    Mike

  • Java Media Framework fails on Windows 7

    I wrote a Java program to manage and play my MP3 files. This program works fine on Windows XT and Windows Vista but does not work on the new laptop I just purchased with Windows 7. The Java Media Framework cannot play my MP3 files running on Windows 7. Does anyone know of a fix? I saw some very old forum posts where the poster asked if anyone knew how to obtain the source code for the Java Media Framework. If I could get my hands on the source, I would debug the problem and provide the fix to the Java community. So does anyone know of a fix to Windows 7 problems or know how to get the Java Media Framework source code????

    I believe you are right. I didn't know how much native support the JMF code requires but that must be the problem because it doesn't work on Windows 7. I think I would get some other error if the native libraries needed by JMF were not available on Windows 7. Appears that the native code is invoked but fails for some reason resulting in the JMF ControllerEventError that I get when attempting to play my MP3 files. I always had an error on a very few MP3 files that I have downloaded using LimeWire but the songs were playable by Windows Media. So whatever native support JMF uses, it is not the same as Windows Media or JMF is just not using the native MP3 support correctly. I guess I will just have to keep my Music Library on one of my older computers and not use my Java program on Windows 7 to play my MP3 files. Do you have any idea if the programmers who wrote the JMF code are still maintaining it? Perhaps they would be interested in fixing the Windows 7 problem in a new release??

  • Support for Java Activation Framework?

    Hi,
    Can anyone quickly tell me which version of JAF (java activation framework)in
    WLS 7.0 ?
    thanks a lot in advance
    manoj

    Hello Kumar,
    Yes, these are part of HTTP 1.1 extensions. In case this is not currently supported, would really appreciate if you could let me know if it is planned in the future releases.
    Regards,
    Prasad Shetty
    Kumar Allamraju <[email protected]> wrote in message news:[email protected]..
    Are these extensions part of HTTP 1.1?
    Prasad Shetty wrote:
    Hi,
    I need to use some headers defined in HTTP Extension Framework
    (RFC 2274). Does Weblogic provide support for this extension
    framework ? If so which version of Weblogic should i be using ?
    Thanks & Regards,
    Prasad Shetty
    [att1.html]

  • Which is the best java /j2ee framework

    Hi all
    Anyone can tell me which framework is the best java/j2ee framework? and Which framework is the best implementation of the core j2ee pattern?
    Thanks

    thanks for the support.
    now on to the other correct answers for this thread:
    which is the best IDE: the one in March
    which is the best TV show: Welcome Back Kotter
    radio show: none, that's why t.v. was invented
    song of all time: 'Afternoon Delight' by Starland
    Vocal Band
    dlgrasseNow here I would disagree
    which is the best TV show: Everybody loves Raymond
    radio show: none, Howard Stern
    song of all time: Hotel California
    &#9824

Maybe you are looking for