Hi guys,

I am having a strange problem using Java RMI. I am building a chat program in Java 5 Tiger, using the RMI framework and Java seems to be caching one of my interface implementations, as when I change a line of code, it still seems to use a previous one.

An example is:

the first line of code i had, which i was using to test that the server side was sending RMI messages back to the client side, which worked and printed the message out as required.


Code:
public void recvBroadcast(String userName,String message) throws  java.rmi.RemoteException{
        System.out.println(userName + "says: " + message);
}
I then changed the code to below, but I still got the same message printed out to screen, rather than to the required textPane.

Code:
public void recvBroadcast(String userName,String message) throws  java.rmi.RemoteException{
        gui.txtPaneChat.setText(userName + "says: " + message);
}
I am thinking that perhaps i need to clear the java cache, or rmiregistry or something but I do not know how to do this.

Please help, this is very frustrating!

Cheers guys