Re: sync cayenne cache in two web apps

From: Mike Kienenberger (mkienen..mail.com)
Date: Wed Jul 29 2009 - 14:28:55 EDT

  • Next message: Tobias Schoessler: "Re: sync cayenne cache in two web apps"

    I've never set it up, but it's easily configurable.

    If you don't like the javagroups or JMS methodologies, you can define
    your own -- I don't know what tomcat app-data-sharing ability is
    available -- it probably depends on the container, but I don't
    remember reading about any in the past.

    However, the docs seem to indicate that using Javagroups is pretty
    painless with no external configuration to deal with.

    I have a Cayenne 1.1.x application I wrote that used remote
    notification internally to broadcast events between sessions, so I
    know it's not difficult to set up and define your own event
    broadcaster. My guess is that doing it for javagroups is pretty easy
    since it sounds like a matter of just filling in the forms on the
    modeler.

    On Wed, Jul 29, 2009 at 2:15 PM, Tobias
    Schoessler<tobias.schoessle..mail.com> wrote:
    > Thanks Mike,
    >
    > so the answer is yes, this can only be done using remote notification? is
    > this correct?
    >
    > Isn't there a way to share the cache among two web application scopes
    > without going through the hassle of setting up remote notification?
    >
    > When the two webapps are running on the same physical machine, inside the
    > same application server this seems overkill.
    >
    > Tobias
    >
    > On Wed, Jul 29, 2009 at 6:50 PM, Mike Kienenberger <mkienen..mail.com>wrote:
    >
    >> Yes,
    >>
    >> Here's a Cayenne 2.0 document on it:
    >>
    >> http://cayenne.apache.org/doc20/configuring-caching-behavior.html
    >>
    >> For 3.0:
    >>
    >> http://cayenne.apache.org/doc/configuring-caching-behavior.html
    >>
    >> On Wed, Jul 29, 2009 at 12:46 PM, Tobias
    >> Schoessler<tobias.schoessle..mail.com> wrote:
    >> > Hi,
    >> >
    >> > is it possible to sync the cayenne cache of two web applications running
    >> in
    >> > the same tomcat?
    >> >
    >> > I observe one web app showing outdated data when the other is committing
    >> > updates. Both apps are using the same mapping configuration.
    >> >
    >> > Do I need to use remote notification for this?
    >> >
    >> > thanks
    >> >
    >> > Tobias
    >> >
    >>
    >



    This archive was generated by hypermail 2.0.0 : Wed Jul 29 2009 - 17:13:01 EDT