How about a generalization of HandshakeCompletedListener:
| interface SocketCreatedListener
| {
| void socketCreated(Socket socket);
| }
|
An instance of SocketCreatedListener could be passed in on the client side:
| SocketCreatedListener listener = ... ;
| HashMap config = new HashMap();
| config.put(Remoting.SOCKET_CREATED_LISTENER, listener);
| Client client = new Client(locator, config);
|
and on the server side:
| SocketCreatedListener listener = ... ;
| HashMap config = new HashMap();
| config.put(Remoting.SOCKET_CREATED_LISTENER, listener);
| Connector = new Connector(locator, config);
|
The client and server invokers would be responsible for calling the listener whenever they
create a socket. A customized SocketFactory would probably be necessary for some of the
less transparent transports.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997426#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...