Win a copy of 97 Things Every Java Programmer Should Know 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Not a MUST to use Java Serialization ?

Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that it is not a MUST to use Java Serialization for bean passivation and activation. The container is allowed to use an equivalent method/technique.

What about serializing a Java object for transferring over a remote call (over a network) ?
1) object passed in as parameter to a remote method call
2) object passed back as a return object as a result of a remote method call.

Is it the same ? Is it not a must to use Java Serialization too ?

Author & Gold Digger
Posts: 7617
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All objects that ever get passed back and forth from the server to the client or between two remote interfaces in the same server are ALWAYS passed by value and MUST be legal types for RMI/IIOP. So the conventional RMI serialization rules apply here. The two synchronization types you mention have nothing in common here and serve completely different purposes.

What happens on the boundary of the server (serialization of travelling objects) is ruled by the spec and what happens within it (serialization of passivated beans) is not and is left open to the vendors.
Your mother is a hamster and your father smells of tiny ads!
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic