Archived

This forum has been archived. Please start a new discussion on GitHub.

How to deal with existing java objects?

Hi,

I have been looking at ICE for a over a week now. We have some Java classes supplied by some 3'rd Party libraries which we pass it to the client from the Middleware. How does one deal with those objects in Slice definitions?

For e.g. We use XmlObject (From XMLBeans) to represent an xml representing a search result.

Thanks,
--Venkat.

Comments

  • You need to work out which bits of state in your Java objects you want to send between client and server and write Slice definitions that can hold that state. To send the state, you copy it from the Java objects into its Slice counterparts (such as dictionaries, sequences, classes, structs, etc) and, on receiving it, you initialize equivalent Java objects from the received state.

    Cheers,

    Michi.