Results 1 to 8 of 8

Thread: Cache-based MessageStore / MessageGroupStore Implementation

  1. #1
    Join Date
    Jun 2010
    Location
    Greater Philadelphia Area, PA, USA
    Posts
    3

    Default Cache-based MessageStore / MessageGroupStore Implementation

    Can we build support into the Spring Integration framework for a Cache-based MessageStore implementation, which may be used from many components within the framework where persistence to cache (as opposed to JDBC) is desirable?

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    We have, just need to figure out how to go about it considering Gemfire is not OS

  3. #3
    Join Date
    Oct 2009
    Posts
    12

    Default

    I would like to see gemfire inbound and outbound adapters, access to a cache or gemfire backed channels.

  4. #4
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    We have prototyped the GemFire-backed MessageStore, and it will definitely fall within the scope of the issue we have for this:
    https://jira.springsource.org/browse/INT-1170

    Also, we will create inbound/outbound adapters. For the inbound adapters, we will have at least 2 GemFire types: 1) simple CacheListener 2) Continuous Query

    If you want to follow the progress, keep an eye on the Spring Integration sandbox repository where most of these prototypes will exist soon:
    http://git.springsource.org/spring-integration/sandbox

    Thanks,
    Mark

  5. #5
    Join Date
    Oct 2009
    Posts
    12

    Default

    Sounds good.

  6. #6

    Default GemFire Cache-based Message Store

    Hi guys,
    I'm almost done with using GemFire cache to override the message store available in Spring Integration. I'm able to add the message to the Caches Region. Find the code snippet below :

    public <T> Message<T> addMessage(Message<T> msg)
    {
    ....

    Cache cache = new CacheFactory().set("cache-xml-file", "config/gemfire.peer.cache.xml").create();
    Region<UUID,Message<T>> gemFireRegion = cache.getRegion("claimcheckregion");
    gemFireRegion.put(msg.getHeaders().getId(), msg);

    ....
    }


    but facing issues while fetching from the cache. It is querying the database rather than fetching from the cache. Anybody faced this issue???

  7. #7

    Default

    the code snippet for retrieving from cache is :

    public Message<?> getMessage(UUID key)
    {
    ....

    Cache cache = new CacheFactory().set("cache-xml-file", "config/gemfire.peer.cache.xml").create();
    Region<UUID,Message<?>> gemFireRegion = cache.getRegion("claimcheckregion");
    message = (Message<?>)gemFireRegion.get(key);

    ....

    }

  8. #8

    Default

    Can somebody provide me a High level design as to, how can i go forward in achieving this???

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •