• 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

attribute migration doubt

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't have any plan right now.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic