Discussions

News: JCACHE - Java Temporary Caching API JSR 107

  1. JCACHE - Java Temporary Caching API JSR 107 (33 messages)

    JSR 107 the JCACHE API has been approved for for futher development. Submitted by Oracle, JCACHE "Specifies API and semantics for temporary, in memory caching of Java objects, including object creation, shared access, spooling, invalidation, and consistency across JVM's".

    JCACHE - Java Temporary Caching JSR

    Threaded Messages (33)

  2. This is really cool. Once we have a complete implementation I can see developers doing things like implementing Value Object Caches in their servlet layers (minimizing EJB traffic), you could use it to implement a cache of EJBOBjects so that you would not have to call home.create() and take a potential network hit just to call a method on a Session bean.

    If vendors take this API seriously we may see some popular app. servers re-writing their own code to make use of the JCACHE API rather than using their own proprietary caches.

    What really makes me drool is this:

    "Changes to the cached objects may be sychronized across multiple JVM's on multiple hosts. However, the application designer must carefully weigh the advantages of the performance cost against the functionality gain."

      This sounds like a recipe for a 'distributed shared object cache'!

    Floyd
  3. cache an EJB? What's the meaning of cache an EJB? Does it make sense? EJB Object is running on different JVM and can be pooled at the EJB container. Cache a stub? Can somebody give the answer?
  4. Should have been clearer. I meant developers can cache EJB Ojbect Stubs on the client side using a JCACHE, and EJB Container implementors can also choose to cache EJBObjects on The Server Side (I love saying that) using a JCACHE.

    Floyd
  5. This is very interesting. A cache would certainly address one of the bug bears of EJB ie. reload of data in Commit Option B even if data has not changed eg. mainly read only data. Does this mean that the idea of 'read only' beans (hinted at at the end of EJB 2.0 spec) may be superceded by this idea ?

    Funny that Oracle, which has a proprietary data cache in its app server, has proposed this. I would have thought that this would be one of their advantages over other vendor's implementations with Oracle databases.
  6. Of course it would be nice if the spec included something about caching JDO objects. My hope would be that the caching of JDO objects within the JDO PersistenceManager instances would be compatible with JCACHE.
    This way we could get transparent caching of objects, either persistent or not, across the span of the application. THAT would be powerful!
  7. Of course it would be nice if the spec included something about caching JDO objects. My hope would be that the caching of JDO objects within the JDO PersistenceManager instances would be compatible with JCACHE.

    Both Solarmetric KODO and Hemtech JDO Genie support this functionality using the Tangosol Coherence clustered JCache implementation. Voila! Clustered JDO using JCache!

    Peace,

    Cameron Purdy
    Tangosol, Inc.
    Coherence: Easily share live data across a cluster!
  8. My team has built a fully functional caching sytem that has configuration options for ram, disk waterfall, rmi-remote store, hot-standby, data-consistency, and databse failover. It allows us to share information, display data, objects, search results, session data, etc .across vms and machines.

    I've been working on this for a year or so now. I'm interested to see what will come of this.
  9. Looking at the functional spec I see there is no place to specify a sweeping policy to be triggered when the Cache fills up, or to be a Scheduled Job runs. Policies may include first in first out, least used etc.

    I also see problems relying on the hashcode, especially for mutable objects.
  10. Real products already have this built in. Look at ATG's Dynamo 5 application server. Out of the box they already have distributed caching and a distributed cache locking mechanism. I'll bet you anything Oracle releases a Java object database soon.
  11. I represent Foedero Technologies Inc. www.foedero.com. Foedero is a member of the JSR 107 board and we build a dynamic caching API and appliance.

    We are working with the JSR-107 board members to develop a great caching standard. We do have a proprietary caching standard. This is a set of very powerful Java classes.

    Please visit us at www.foedero.com to find out more. We offer this API free to developers to develop their applications with.

    We also build a separate Java caching JDBC Plug & Play appliance.

    Thanks,

    Arvin Kamboj
    More info: Arvin at foedero dot com
    Foedero Technologies Inc.
  12. I represent Foedero Technologies Inc. www.foedero.com. Foedero is a member of the JSR 107 board and we build a dynamic caching API and appliance.

    >
    > We are working with the JSR-107 board members to develop a great caching standard. We do have a proprietary caching standard. This is a set of very powerful Java classes.

    Any news about the final specification ???
  13. JCache spec[ Go to top ]

    Any news about the final specification ???

    It's moving forward. It's hard to determine when it will emerge, though.

    Peace,

    Cameron Purdy
    Tangosol, Inc.
    Coherence: Easily share live data across a cluster!
  14. JCache Spec[ Go to top ]

    The JSR appears to be dormant for years. Any idea what's happening with it? Why is it lacking the momentum?
  15. (And please, no flaming :-) )
    How would this compare to System.Web.Caching i Asp.Net? I believe, after a quick glance, that JCache is slightly better, since it is distributed and not so coupled to a web app.

    System.Web.Caching is pretty cool, it reduces itself when memory gets low (based on a "cleaning" strategy you set), expires items, it can have dependencies to other items in the cache or to files (I've seen an example that automatically updated an item in the cache over http when a row in the database changed), yet it is still very easy to use.

    More on System.Web.Caching: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcacheapis.asp
  16. Tangosol provides a clustered JCache solution:

    http://www.tangosol.com/coherence.jsp
  17. Gemstone...[ Go to top ]

    Has anybody used Gemstone's product?

     http://www.gemstone.com/products/gemfire/distributed.html
  18. distributed cache[ Go to top ]

    we use some older gemston products. for distributed cache for java, we looked at what's available, and tangosol and gemstone were the only products worth looking at at all. i know some gemstone products already, but for distributed jcache, tangosol was easier to use and had way better cluster support. if we had one big sun server we might have used gemstone, but with a server cluster tangosol wins hands down plus it was less expensive.
  19. Wouldn't use it[ Go to top ]

    I wouldn't use. We looked at this product for several of our needs and it fell short in performance areas. Tangosol may be a better bet for you.
  20. This is just a re-packaging of Oracle's Object Caching Service for Java.

    See: http://otn.oracle.com/products/ocs4j/content.html
  21. This is just a re-packaging of Oracle's Object Caching Service for Java.

    Oracle donated their design as a starting point for the JSR. The current state of the JSR specification does not resemble the original submission at all. It is now based on the java.util.Map API, which is what most developers use to cache already (e.g. Hashtable inside a JVM).

    Peace,

    Cameron Purdy
    Tangosol, Inc.
    Coherence: Easily share live data across a cluster!
  22. Open source ?[ Go to top ]

    Are there any open source JCache implementations?
  23. Open source ?[ Go to top ]

    OSCache (http://www.opensymphony.com/oscache/) is something which looks almost like JCache, it's free and works, and uses JavaGroups or JMS to distribute State of the Caches. I'm not sure, if they plan to adhere to JCache, but it comes with very handy tags to enable Caching for JSP's, and also has a nice, lean API for General Caching
  24. RE: Open source ?[ Go to top ]

    Are there any open source JCache implementations?


    Looks to be in alpha, but this claims to be just that:

    http://sourceforge.net/projects/jcache
  25. RE: Open source ?[ Go to top ]

    And http://jakarta.apache.org/turbine/jcs/index.html
  26. JCS getting started[ Go to top ]

    http://jakarta.apache.org/jcs/getting_started/intro.html
  27. New release[ Go to top ]

    It is supposed to be an OS version of JCache. Its now in alpha 3 and has a partiall implemented CacheLoader and Disk-Spooling arcitecture.
    Homepage is at: jcache.sourceforge.net
  28. SpiritCache[ Go to top ]

    Anyone requiring reliable distributed caching (over a JMS implementation) should definitely take a look at SpiritCache:

    http://www.spiritsoft.com
  29. production usage of jcache[ Go to top ]

    Has anybody used JCache in a production environment?
    I am planning to use in a production environment. So I would appreciate if anybody can guide me for potential usage in a production environment.

    regards,
    Ranjan
    Razorsight Inc.
  30. production usage of jcache[ Go to top ]

    Has anybody used JCache in a production environment?I am planning to use in a production environment. So I would appreciate if anybody can guide me for potential usage in a production environment.regards,RanjanRazorsight Inc.

    There is no "JCache" per se; it is simply a specification (based on standards Java APIs such as the Collections API and the Connector architecture), and the specification is not complete. Implementations of the work going on in the specification process, such as our own Coherence product, are used in production. Coherence, as an example, is deployed in literally thousands of production environments.

    Peace,

    Cameron Purdy
    Tangosol Coherence: Infinite linear scalability of data throughput and capacity
  31. What are the best alternatives available in open source for Java Caching? The open source project FKache seems to be in infancy? The specification appears to changing? Most of the interfaces have been deprecated?

    Are there any standard implementations available?
    If not what is the most preferred option here?
    Is the JSR 107 standard good?
    Will compliancy to JSR 107 result in a complete and good implementation?
  32. Open source ?[ Go to top ]

    JOCache is an non-distributed in-memory caching library for Java objects. I expect I will write a JCache wrapper for it when the API is released.

    http://jcache.sourceforge.net
  33. What vendors[ Go to top ]

    I've heard good things about GigaSpaces and Tangosol for caching needs. Any thoughts on using these products? We are financial service hedge fund and looking for a distributed data messaging platform. The street tells me to look at these two products but perhaps Berkeley DB would be a better bet. Any thoughts?
  34. New simple and fast java cache library http://cache4j.sf.net