Re: RMI Marshalling
Fred Oliver <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
Can you serialize the appropriate sets of objects into a byte array on the client side, and pass the byte array as an argument to the remote call? The marshalling and unmarshalling of the byte array should be trivial compared to the marshalling of the original objects. Fred Robert DiFalco wrote: > Well, I have some data I send from a client to a server. RMI serializes > these. Once they get over to the server, the server just serializes some > of them again to a database. Seems wasteful to deserialize on the > server since I never use the deserialized object form of the data before > I just write them again to the database. > > Also, I have various dictionaries that map things like classes and > strings to integers. I've written my own custom ObjectInput and > ObjectOutput streams that overwrite stuff like read/writeObject, > read/writeClassDescriptor, resolveClass, etc to take advantage of these > dictionaries. Since they work pretty well, I would also like to use them > for marshalling data between clients and servers. But to do that, I > would have to be able to replace the default ObjectInput and > ObjectOutput streams that RMI uses for marshalling. > > R. > > > -----Original Message----- > From: Peter Jones - JavaSoft East [mailto:[email protected]] > Sent: Monday, April 25, 2005 10:07 PM > To: Robert DiFalco > Cc: [email protected] > Subject: Re: RMI Marshalling > > >>Is there a way in the J2SE RMI implementation to customize the object >>input and output streams that are used to marshal arguments and return > > >>values? > > > With J2SE RMI (JRMP), not really. What are you trying to accomplish? > > -- Peter > > =========================================================================== > To unsubscribe, send email to [email protected] and include in the body > of the message "signoff RMI-USERS". For general help, send email to > [email protected] and include in the body of the message "help". > > For a list of frequently asked RMI questions please refer to: > http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html > > To view past RMI-USERS postings, please see: > http://archives.java.sun.com/archives/rmi-users.html =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html