Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is marshalling and unmarshaiing.what is the internal process

Status
Not open for further replies.

vasuvunnam

Programmer
Jun 27, 2004
2
0
0
US
Hai,
Can some one explain,what is the Marshalling and UnMarshalling.What is the itnernal process of this activity.

Thank u
Sreeni
 
Marshalling is the "simple" process of putting together a bytearray containing the treestructure of your etd. The exact work depends on the kind of etd you have(xsd/dtd generated, delimited or fixed size)

Unmarshalling is the exact opposite. Given an array of bytes, a treestructure will be generated/parsed (again depending on the kind of structure).

On an unmarshalled structure you can work on the parsed data; you can change data in the semantical context. The marshalled structure is a mere byte array, where you cannot manipulate data, but which can be processed by a transport layer like JMS or persitated (in a file or so).

After marshalling, you can unmarshal the byte array again (in another module) and you will get the same information as before.
The processing can be compared with the Serialization methods in Java, but works with non-Java message formats.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top