Discussions

General J2EE: Singleton in clustered environment

  1. Singleton in clustered environment (4 messages)

    Hi,
    I am using application variable in my Web application. The application requires that variable to be refreshed. But since we are also using clustered environment there is single instance of that variable in each server instance. And the changes in one variable are not refleting in the other...
    Can anyone suggest how to put these variable in sync..

    Threaded Messages (4)

  2. Singleton in clustered environment[ Go to top ]

    have you tried using the JNDI repository. If your app server supports clustering of the JNDI repository then this should not be a problem for you.
  3. can you elaborate the same[ Go to top ]

    Can you elaborate the same in detail..how to work with JNDI repository ?
  4. Singleton in clustered environment[ Go to top ]

    JNDI, as mentioned, or a database entry fronted by a Entity bean is another option
  5. response[ Go to top ]

    Another option - putting your variable into stateful session bean which is replicated in-memory.

    Alex