users@glassfish.java.net

Re: Glassfishv2ur2 two machine cluster and Singleton class

From: Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>
Date: Fri, 26 Feb 2010 18:09:26 +0100

or Coherence ;)
if you want to roll your own, you could use a JMS topic to sync data from the different instances.
Of course the shared state could also be sitting in a database.
-Alexis

On 26 févr. 2010, at 17:56, Kedar Mhaswade wrote:

> Hi,
>
> Can you consider using Terracotta? That way, you could achieve distributed state management across VM's.
> IMO, this is a hard problem to solve.
>
> -Kedar
>
>
> On Fri, Feb 26, 2010 at 7:47 AM, <glassfish_at_javadesktop.org> wrote:
> Hi Kedar,
>
> thank you for replying.
>
> Yes, it is not a singleton EJB, It is just a singleton class in the EJB Container.
> So if GF V2 does not guarantees to preserve the singleton property of classes across clusters, can you please suggest some other way of achieving the singleton design pattern across cluster ?
> [Message sent by forum member 'mavula8743' (m_k_avula_at_yahoo.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=388938
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>