Link to home
Start Free TrialLog in
Avatar of talltk

asked on

Implementing RMI and Object Serialization Without Java Facilities

Dear experts

I have been given a school project to implement marshaling/unmarshaling without using any RMI,CORBA and Java Object Serializations without any Java facilities.

Meaning I'm not allowed to import any RMI or Serialization packages/libraries.

I totally don't have an idea of how to start! Could any experts please advice

Avatar of MicheleMarcon
Flag of Italy image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CEHJ
Sounds more like a second degree project ;-)

Start by studying the Java class file spec and classloading in detail
Avatar of PascalHeraud

You can go through class definition using java reflection :

Iterating over attributes, you will have to write them a Stream using encoding like Michele suggested.
You can also use the data output stream that is able to marshall /unmarshall objects into a stream ( not a Serialization stuff ;) )