commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: Patch: RMI fixes


From: Michael Koch
Subject: FYI: Patch: RMI fixes
Date: Sun, 21 Mar 2004 11:11:17 +0100
User-agent: KMail/1.5.4

Hi list,


I just commited the attached patch that adds Norberts RMI fixes.


Michael


2004-03-21  Norbert Frese  <address@hidden>

        * gnu/java/rmi/server/RMIIncomingThread.java: New file.
        * gnu/java/rmi/server/UnicastConnection.java:
        Create a new RMIObjectOuputStream/RMIObjectInputStream for every
        rmi-message.
        (getObjectInputStream): Return object reference, throw IOException if 
null.
        (startObjectInputStream): Create new RMIObjectInputStream on top of 
'din'.
        (getObjectOutputStream): Return object reference, throw IOException if 
null.
        (startObjectOutputStream): Create new RMIObjectOutputStream on top of 
'dout'.
        * gnu/java/rmi/server/UnicastConnectionManager.java:
        (UnicastConnectionManager): Throw RemoteException if port is not 
available.
        (getInstance): Throw RemoteException.
        (run): Lookup client host and attach it to new RMIIncomingThread for 
later retrieval.
        * gnu/java/rmi/server/UnicastRef.java:
        Start a new RMIObjectInputStream/RMIObjectOutputStream for every 
rmi-message.
        Collect Exceptions which are returned by a rmi-call and fix void 
returns.
        * gnu/java/rmi/server/UnicastRemoteCall.java:
        Start a new RMIObjectInputStream/RMIObjectOutputStream for every 
rmi-message.
        * gnu/java/rmi/server/UnicastServer.java:
        (dispatch): Answer ping messages which are sent by other java 
implementions.
        (incomingMessageCall): Start a new 
RMIObjectInputStream/RMIObjectOutputStream
        for every rmi-message and fix void return problems.
        * gnu/java/rmi/server/UnicastServerRef.java
        (UnicastServerRef): Throw RemoteException.
        (exportObject): Find the class up the class hierarchy which has a _Stub 
generated by rmic.
        In some situations it is necessary to export a subclass of the class 
which has the _Stub.
        For instance when the class with has the _Stub is abstract.
        (findStubSkelClass): New method which looks for the class which has the 
_Stub.
        (getClientHost): Implementated.
        * java/rmi/server/RemoteServer.java
        (getClientHost): Implemented.
        * gnu/java/rmi/server/Makefile.am
        (EXTRA_DIST): RMIIncomingThread.java.

Attachment: rmi.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]