Load Balancing


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Load Balancing

  1. #1
    Scott A. Flaherty Guest

    Load Balancing


    In my ASP experience I have tried to avoid using variables and objects with
    Application of Session scope due to the issues they raise for Load Balancing
    a site. Do these same concerns exist for JSP Application and Session scoped
    objects?
    Share on Google+

  2. #2
    Larne Pekowsky Guest

    Re: Load Balancing

    In article <39993fd9$1@news.devx.com>,
    Scott A. Flaherty <scott@hyperactiveinc.com> wrote:
    >In my ASP experience I have tried to avoid using variables and objects with
    >Application of Session scope due to the issues they raise for Load Balancing
    >a site. Do these same concerns exist for JSP Application and Session scoped
    >objects?


    The JSP specification is the ultimate authority on questions like
    this, it can be downloaded from http://java.sun.com/products/jsp/download.html.
    Unfortunately it's a little murky on this point. Section 2.7.2 on
    synchronization issues warns that in implementations that do load
    balancing, mutable resources such as session and application scope
    objects may be changed by two or more threads simultaneously, and so
    must be protected.

    I would assume this means that if something is in the application or
    session scope, that each server is required to access the same
    instance of the object. So, if I understand this correctly, you can
    go ahead and use these scopes without worrying that different people
    will see different versions of the same object.

    At least, in theory...

    Honestly, I'm not sure how well the various JSP implementations
    support this. Knowing how stringent Sun is about licensing, I imagine
    that most products that claim JSP compliance will get it right. Just
    to be sure, you should probably check with your vendor (or potential
    vendor) to see how they deal with this issue. If they don't promise
    that everyone sees the same application-scoped value you can hit them
    over the head with the specification at them and go find a different
    vendor.


    - Larne
    Share on Google+

Similar Threads

  1. DCOM Load Balancing
    By Greg Goldman in forum Enterprise
    Replies: 1
    Last Post: 04-14-2001, 01:27 AM
  2. Replies: 0
    Last Post: 02-10-2001, 05:36 PM
  3. component load balancing
    By ranga raghunathan in forum Enterprise
    Replies: 0
    Last Post: 05-08-2000, 11:11 PM
  4. component load balancing
    By ranga raghunathan in forum Enterprise
    Replies: 0
    Last Post: 05-08-2000, 11:11 PM
  5. Re: WinNT Load Balancing Sevices....????
    By Sergey in forum Enterprise
    Replies: 0
    Last Post: 03-24-2000, 07:48 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center