Results 1 to 2 of 2

Thread: spring in a clustered environment

  1. #1
    Join Date
    Sep 2004
    Posts
    3

    Default spring in a clustered environment

    Hi

    I wanted to know if anyone has used spring in a clustered environment ? In case a spring application is deployed in a clustered environment , is there a single instance of the bean retrieved from the application context(assuming that the bean is configured to be a singleton in the XML file) across all the clusters or is there a single instance in every node in the cluster ?

    Are there any tips/gotchas to be considered while developing a spring app in a clustered environment .

    Please advise.

    Thanks

    Keith

  2. #2
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    If you're talking about a servlet clustered environment, then typically in such a setup the Servlet sessions are clustered.

    The typical ApplicationContext that is loaded via ContextLoaderListener has nothing to do with any http session, so the long and the short of it is that it would not be clustered...
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Environment Variables in Spring?
    By dleal in forum Container
    Replies: 14
    Last Post: Apr 12th, 2007, 06:33 AM
  3. Environment Variables in Spring?
    By dleal in forum Data
    Replies: 4
    Last Post: Aug 9th, 2005, 04:58 PM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Spring in clustered environment
    By dwojtas in forum Container
    Replies: 2
    Last Post: Aug 15th, 2004, 12:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •