Samantha Catania
Samantha Catania

Reputation: 5316

Non Serializable Objects - Networking

I need to write a java program that sends objects over the network to a client program. The problem is that some of the objects that need to be sent are not serializable. How is this best tackled?

Upvotes: 0

Views: 251

Answers (2)

WeMakeSoftware
WeMakeSoftware

Reputation: 9162

In enterprise world there is a special pattern Transfer object pattern. It suits your case ideally.

Upvotes: 1

Jonas B
Jonas B

Reputation: 2391

Send the data needed to reconstruct the objects on the clientside.

Upvotes: 1

Related Questions