简体   繁体   中英

Transfer object collection between client and server

Is there a way to transfer a set of objects between a server and a client, so that if a change is made either on the server or on the client, the objects will be the same on both the server and the client? And if one object is added, with some connections to other objects, is it possible to transfer only this, and maintain these connections on the other end?

How do you transfer single objects? Are you using serializable java objects over TCP? Web service over HTTP? Something proprietary?

Anyway you can do the same with collections of objects. If you are using "standard" serialization mechanism most chances it already supports collections. For example all standard collections provided JDK are serializable and therefore can be easily sent and received. The same is about web services.

Please do not hesitate to ask more concrete questions. If you provide more data we can give you better and more concrete answers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM