• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Attributes

 
Vikrama Sanjeeva
Ranch Hand
Posts: 760
  • 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
 
Maulin Vasavada
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: 760
  • 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.
 
Axel Janssen
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: 760
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Axel for conforming.
Bye.
Viki.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic