Servlets on clustered systems

Discussions

Web tier: servlets, JSP, Web frameworks: Servlets on clustered systems

  1. Servlets on clustered systems (4 messages)

    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

    Threaded Messages (4)

  2. Servlets on clustered systems[ Go to top ]

    Hello,

    Regarding Singletons read this article:
    http://www.javaworld.com/javaworld/jw-01-2001/jw-0112-singleton.html

    HTH
    /Henrik
  3. Servlets on clustered systems[ Go to top ]

    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
  4. Servlets on clustered systems[ Go to top ]

    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
  5. Servlets on clustered systems[ Go to top ]

    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