2 Replies Latest reply on Oct 22, 2003 4:30 AM by nraghuram

    Distributed cache implementation

    msuroo

      Hi,

      I have a lot of GUI(swing) clients which work with domain objects.
      Client interacts with domain object through RMI(Stateless Session Bean).
      After domain object state has been changed all clients should be notified about it, they are notified with the help of the JMS.

      Would you be so kind pointing me some design strategy of how I could implement this.

      The main question is how I can implement domain object in order to share that state properly between Session Bean instances.

      Plus, everything should work in a cluster.

      Is it good to use JNDI to share objects between different virtual machines?

      Thanks a lot in advance

        • 1. Re: Distributed cache implementation
          alu1344

          Mount hibernate on the server side, with jcs mounted in cluster (synchronized via jms).

          http://www.hibernate.org

          This is the easiest way I know to mount what you need. Cache isn't on stateful session beans nor in the clients, but in the server data cache. JCS can take care of that.

          Better than that, investigate the cache forum here to know how can that be achieved.

          Over all, check the hibernate docos about caching. Read a lot. And good luck.

          • 2. Re: Distributed cache implementation
            nraghuram

            have u looked at the ReplicatedHashtable in JGroups. You could store your objects in the ReplicatedHashtable. Any changes will get propagated across the cluster.
            www.jgroups.org.
            raghu