Home Help Center

How to deal with existing java objects?

vsonnathivsonnathi Member Venkat RamanaOrganization: Amazon.comProject: Prototype ✭✭
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

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    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.
Sign In or Register to comment.