Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

attribute migration doubt

 
Brijesh shah
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello;

Is it necessary to use serialization during migration of attribute from one virtual machine to another...

Regards;
Brijesh shah
scjp
target - SCWCD
 
dolly shah
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your attribute class types are Serializable, container will migrate them. But if they are not Serializable, have your attrubute class implement HttpSessionActivationListener and implement activate/passivate methods.
 
Brijesh shah
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by dolly shah:
If your attribute class types are Serializable, container will migrate them. But if they are not Serializable, have your attrubute class implement HttpSessionActivationListener and implement activate/passivate methods.


If i implement HttpSessionActivationListener and implement activate/passivate..so there will be no need of Serialization right..Please confirm me on this.
If you have tried this practically then kindly send me that information.

Hope to hear from you soon.

Regards,
Brijesh Shah
 
dolly shah
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i implement HttpSessionActivationListener and implement activate/passivate..so there will be no need of Serialization right.


-Do you have HFSJ book? If you do,Read page:258(BANG!)

It says "If you implement HttpSessionActivationListener and implement activate/passivate methods is same as you use readObject() & writeObject() respectively. "
 
Brijesh shah
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by dolly shah:


-Do you have HFSJ book? If you do,Read page:258(BANG!)

It says "If you implement HttpSessionActivationListener and implement activate/passivate methods is same as you use readObject() & writeObject() respectively. "


Thank you dolly i got it.

Well when you are planning for SCWCD exam.

Regards,
Brijesh Shah
 
dolly shah
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't have any plan right now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic