ObjectInputStream in,
Collection context)
throws IOException, ClassNotFoundException
{
long callId = in.readLong();
ClientHost client = null;
try {
client = (ClientHost)
ServerContext.getServerContextElement(ClientHost.class);
} catch (ServerNotActiveException e) {
}
int result = JOptionPane.showConfirmDialog(
null,
"Permit incoming remote call?" +
"\n Client: " + (client != null
? client.getClientHost() : "not active") +
"\n Object: " + obj +
"\n Method: " + method.getName() +
"\n Call id: " + callId,
"Permit incoming remote call?",
JOptionPane.OK_CANCEL_OPTION);