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..
-
Singleton in clustered environment (4 messages)
- Posted by: Niraj Sonar
- Posted on: December 16 2003 10:47 EST
Threaded Messages (4)
- Singleton in clustered environment by Rajesh Natarajan on December 16 2003 12:59 EST
- can you elaborate the same by Niraj Sonar on December 18 2003 13:40 EST
- Singleton in clustered environment by Scott Carlson on December 16 2003 14:59 EST
- response by Alex Pisarev on December 18 2003 02:44 EST
-
Singleton in clustered environment[ Go to top ]
- Posted by: Rajesh Natarajan
- Posted on: December 16 2003 12:59 EST
- in response to Niraj Sonar
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. -
can you elaborate the same[ Go to top ]
- Posted by: Niraj Sonar
- Posted on: December 18 2003 13:40 EST
- in response to Rajesh Natarajan
Can you elaborate the same in detail..how to work with JNDI repository ? -
Singleton in clustered environment[ Go to top ]
- Posted by: Scott Carlson
- Posted on: December 16 2003 14:59 EST
- in response to Niraj Sonar
JNDI, as mentioned, or a database entry fronted by a Entity bean is another option -
response[ Go to top ]
- Posted by: Alex Pisarev
- Posted on: December 18 2003 02:44 EST
- in response to Scott Carlson
Another option - putting your variable into stateful session bean which is replicated in-memory.
Alex