I belive that in a clustered system, there will be many instances of the same servlet.
Hence what would need to be different for a counter servlet that would run on a cluster. Or is this not possible for a servlet alone to do without outside support from another object.
I have a similar question on Singleton classes on a cluster, can anyone explain to be whether Singleton instances can be achieved in a clustered environment ?
Thanks in advance
asankha
asankha@erunway.com
-
Servlets on clustered systems (4 messages)
- Posted by: asankha perera
- Posted on: January 23 2002 00:11 EST
Threaded Messages (4)
- Servlets on clustered systems by Henrik Engstrom on January 23 2002 08:52 EST
- Servlets on clustered systems by asankha perera on January 23 2002 22:51 EST
- Servlets on clustered systems by asankha perera on January 23 2002 22:52 EST
- Servlets on clustered systems by Henrik Engstrom on January 24 2002 04:38 EST
-
Servlets on clustered systems[ Go to top ]
- Posted by: Henrik Engstrom
- Posted on: January 23 2002 08:52 EST
- in response to asankha perera
Hello,
Regarding Singletons read this article:
http://www.javaworld.com/javaworld/jw-01-2001/jw-0112-singleton.html
HTH
/Henrik
-
Servlets on clustered systems[ Go to top ]
- Posted by: asankha perera
- Posted on: January 23 2002 22:51 EST
- in response to Henrik Engstrom
Thanks for the reply...
can you point me to a sample servlet code where a counter can be implemented for a clustered system ?
Best regards
asankha -
Servlets on clustered systems[ Go to top ]
- Posted by: asankha perera
- Posted on: January 23 2002 22:52 EST
- in response to Henrik Engstrom
Hi Henrik
Thanks for the reply...
can you point me to a sample servlet code where a counter can be implemented for a clustered system ?
Best regards
asankha -
Servlets on clustered systems[ Go to top ]
- Posted by: Henrik Engstrom
- Posted on: January 24 2002 04:38 EST
- in response to asankha perera
Hello Asankha,
I think the easiest way of doing this is to use a database that holds track on the numbers.
Although there might be some other good solutions for this. Unfortunately I do not know any sample servlet that shows this behaviour.
Best of luck
/Henrik