Need a good RMI working example! (Using the Stock market example)
"Albert P. Williams" <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I'm writing a project for college at the moment. I've zipped up all relevant files I'm working on at the moment & put them here (this version is working): http://www.fasnrcg.ie/temp/rmi.zip It's very easy to build & run on windows because there are batch files created for it already. 1. Just double-click buildrmistock.bat to build. 2. Double-click runserver.bat to run the server. 3. Double-click runclient.bat to run the client. Repeat step 3 as many times as u like! Change the batch file to add in a different PC if you want, just put the IP address of the server at the end of: java -Djava.security.policy=policy rmistock.StockWatchGUI in the runclient.bat i.e. java -Djava.security.policy=policy rmistock.StockWatchGUI 197.234.56.78 It's mainly a Callback example from http://www.javaworld.com/javaworld/javaqa/1999-04/05-rmicallback.html I've been trying for ages to get to put a better GUI on this example (i.e. whereby the user can select a stock to watch & remove a stock from their GUI that they no longer want to watch). But every time I try & get a better GUI in this example I end up with spaghetti code. I know there are previous examples of this kind of functionality on the net, my problem is that I have to have all this working on Java build version j2sdk1.4.2_04 It's too close for comfort to the deadline for this & I haven't even touched documentation :-( Can someone PLEASE PLEASE point me in the direction of an RMI stock example that utilizes Callbacks, Inheritance, Factory & an Activatable object! Obviously any or all would be greatly appreciated. Very kind regards, Albert. =========================================================================== 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