Re: RMI Marshalling
Robert DiFalco <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
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