Hello,
I'm new here, so i hope this is the right place for my question.
I've got a problem concerning serialization with JBoss.
I want to serialize an object and deserialize it later. My Class implements Serializable-Interface and got the method
private void writeObject(ObjectOutputStream out) throws IOException {
this.setName("xxx");
out.writeObject(this);
}
as it is needed.
the line: this.setName("xxx"); sets an attribute of the object.
The problem is that during serialization this value ("xxx") somehow is getting lost and the object's got a null-entry in this field...
Any help or solution?
Thanks!!
Not an AS question but I don't think you should be calling writeObject(this) in the writeObject. One would think that applying google to the problem should produce som examples.