Search code examples
javarmi

Java - list current RMI connections


I have a rmi server and rmi clients that are built using java.rmi.*. Besides the connection is protected by server-side SSL. How can I get list of current connections on server side?


Solution

  • How can I get list of current connections on server side?

    From the point of view of RMI clients and servers there is no such thing as an RMI connection in the first place, so there is certainly no API to deal with them.

    You could probably fudge something up via the socket factories but it wouldn't be pretty: you would have to extend both SSLServerSocket and SSLSocket and delegate heavily.