Re: Processing Streamed Data
Niclas Hedhman <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
On Friday 13 May 2005 01:39, Robert DiFalco wrote: > Is there already an established protocol > (besides marshalling) that I could use to do this with RMI? I find this request a bit amusing. "established protocol" + "do with RMI" leaves you with JRMP or IIOP, but since you are not an ordinary newbie around, I don't think this is what you want to hear. MarshalledObject is only needed if you are concerned about the codebases. If you by other means can guarantee the availability of the classes, the simple ObjectXyzputStream would also work. But if I were you an had a little bit time on it, I would opt for a funkier solution. I assume that there must be a reason for not doing the processing on the server (such as CPU constraints). Since you at some point convert the database data into objects, why not transfer that to the client. And by dynamically creating a Proxy on the server with a "reconnectable" inputstream assigned to it, prior to transport to the client, you would have "pure bytes" over the network, yet have a centrally administered "Data Processor/Object Convertor" which is executed on clients. This would save even more CPU cycles on the server, have less network bandwidth overhead due to JRMP or similar, AND provide the client code with a non-remote interface for the object delivery. That I call funky! :o) All of the above is a lot easier to get to work properly if you invest the time in a Jini infrastructure. Even without JavaSpaces, Jini discovery/lookup will by you a lot of convenience for these kind of funky arrangements. Good Luck, and let me know if you need any help. (always available :o) ) Niclas =========================================================================== 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