• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HttpServletRequest , HttpServletSession are they serializable

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,
Wondering in a clusetered environment how the application servers share across the network the HttpServletRequest and HttpServletSession object ?

I tried checking the application server implementation classes and wastnt able to find implementation classes making use of the serializable interface .

Regards ,
-anagha
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The individual objects that are stored into httpsession must be serializable so that they can replicated to a secondary server.
 
author
Posts: 288
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Care should be taken to minimize size of objects stored in a session and objects stored in a session should be serializable.
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by anagha patankar:
Hello ,
Wondering in a clusetered environment how the application servers share across the network the HttpServletRequest and HttpServletSession object ?

I tried checking the application server implementation classes and wastnt able to find implementation classes making use of the serializable interface .

Regards ,
-anagha



In WebLogic there is in memory replication of session. You need to provide settings for that in weblogic.xml.

Say you have server1 & server2 in cluster. Now a session is created on server1. So server1 becomes primary for that session and session is replicated on server2, which is called secondary. When server1 goes down session automatically failsover to server2 which now becomes primary. Later if server1 is up again it will become secondary for that session.

Since all session data has to travel over network from primary to secondary so it has to be serializable.


Jass
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic