Aglet Serialization

Aglets usually be serialized and sent to the destination during its migration.

How to make it to take its data also along with it when it migrates and make it to get resume with its old state?

In simple words, is there any possibility to maintain data persistency in aglets?

thanks in advance

[317 byte] By [vengatesha] at [2007-11-26 18:33:01]
# 1
That's what Serialization does. Every data member that isn't static or transient is sent and reconstructed at the target. They must all implement Serializable too.
ejpa at 2007-7-9 6:07:06 > top of Java-index,Core,Core APIs...
# 2
thats fine, how to maintain the value of the aglet's attributes even after shutting down the machine?i.e., there is a variable "int i" in aglet, i supply 5 as its valuewhen i restart my machine, is it possible to retain the same value?please help me in this
vengatesha at 2007-7-9 6:07:07 > top of Java-index,Core,Core APIs...
# 3

Write some code that will serialize the 'aglet' (what the hell is an aglet?) to a file (or some other persistent destination).

Write some code that will deserialize the 'aglet' from the storage area.

The deserialized 'aglet''s attribute 'i' will hold the value 5.

see http://java.sun.com/developer/technicalArticles/Programming/serialization/

or http://java.sun.com/j2se/1.4.2/docs/guide/serialization/index.html

phawdona at 2007-7-9 6:07:07 > top of Java-index,Core,Core APIs...
# 4
>(what the hell is an aglet?)I guess he means [url= http://aglets.sourceforge.net/]this.[/url]
bckrispia at 2007-7-9 6:07:07 > top of Java-index,Core,Core APIs...