I want to send the same object for two clients. I use object write unshared method and read unshared. The class of my object is:
package servidor;
import java.i
When you serialize an object, your only serialize the fields of that object, not static
fields. You could serialize static
fields by adding writeObject and readObject but this is generally a very bad idea.
I suggest you avoid using mutable static
fields in general for multiple reasons, this being just one of them. In this case it would fix your problem.