Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
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
reply
    Bookmark Topic Watch Topic
  • New Topic