Top.Mail.Ru
April 28th, 2002 - Java developers — LiveJournal
? ?

Java developers

April 28th, 2002
 

06:19 pm - Imagechandra - New to Java - Need help

I'm working on an assignment that is supposed to be a Client and a Server in Java. I'm using JCreator to do this assignment. Instructions say that the Client program should be written to run as an applet that runs in a conventional browser.

I took the Client and Server example from the book and I hope to be able to modify it to fit my project needs.

My question is...

What is the difference bewteen

public class Client extends Applet

and

public class Client extends JFrame

My EXTREMELY limited knowledge of applets tells me I gotta use Applet to create a Client applet. But, what is JFrame? Why did they use that in the textbook? And can I transform it into an Applet?

ARRGGGGHHHH!!! I can't wait to graduate...two more weeks, two more weeks, two more weeks, two more...
 

06:59 pm - Imagechandra - Still need help...part 2

Here's a little more information if you want to read into it.

Server code works fine.

Client code needs to be an applet.
 

10:26 pm - Imageex_ilyavinar899 - RMI question

Hello.

I am writing an RMI server class that accepts an array of objects as a parameter, and returns the same array of objects (it need to return them because RMI calls are by value). These objects are instances of classes that are loaded with a custom class loader on the client side. The class loader has a URL that is also accessible on the server side, so in principle it should be possible to recreate the objects there.

There are two problems with this:

1. The RMI deserializer on the server side doesn't know about the custom class loader.
2. The RMI deserializer on the client side doesn't know about the custom class loader.

For both 1. and 2., it should be easy to subclass ObjectInputStream, and overload resolveClass to call the custom class loader. But how do you plug this class into the RMI skeleton?

All comments will be greatly appreciated.
Powered by LiveJournal.com
Image