public void exceptionReceived(Conversation conversation, ExceptionMessage msg) {
}
};
Acceptor acc = new MinaAcceptor();
acc.open( new InetSocketAddress( "127.0.0.1",
8000 ),
accHandler,
l );
ConversationManager cm = new ConversationManagerImpl( new GridImpl("peer"),
l );
Conversation cv = cm.startConversation( "s1",
new InetSocketAddress( "127.0.0.1",
8000 ),
"r1" );
BlockingMessageResponseHandler blockHandler = new BlockingMessageResponseHandler();
cv.sendMessage( "hello",
blockHandler );
Message msg = blockHandler.getMessage(100, 5000 );
System.out.println( msg.getBody() );
cv.endConversation();
if ( acc.isOpen() ) {
acc.close();
}
assertEquals( false,
acc.isOpen() );
}