Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Session Attributes

 
Ranch Hand
Posts: 765
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the attributes of session are not serialized, then session can be migrated on one machine to another machine?.
Bye.
Viki
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi viki,
didnt get ur question. do u mean to say that "if the attributes are not serialized then can a session get migrated to another machine?" or u want to ask "how" this can be done?
if it is the first question u want to ask...
when u call getAttribute() method on session u get Object as return value now whether it is serializable or not will depend upon the actual object type we have in Object. right? i've not tried what happens when we try to migrate a session to another machine and some attribute is not serializable but i'm sure it will give an error as there isnt a way to serialize the object that doesnt implement serializable or externalizable...
regards
maulin.
 
Vikrama Sanjeeva
Ranch Hand
Posts: 765
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes i want to ask first question.Thanks for reply & sorry for late response.
Bye.
Viki.
 
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I remember that I once have seen an error in the log-file when attaching an object which did not implement Serializable to a session object by session.setAttribute (theObject).
[ March 02, 2002: Message edited by: Axel Janssen ]
 
Vikrama Sanjeeva
Ranch Hand
Posts: 765
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Axel for conforming.
Bye.
Viki.
 
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic