{
log.debug( "Listening on port " + port );
}
JGConnectionHolder holder = JGConnectionHolder.getInstance(ilca);
Channel javagroups = holder.getChannel();
RpcDispatcher disp = holder.getDispatcher();
if ( javagroups == null )
{
log.error( "JavaGroups is null" );
throw new IOException( "javagroups is null" );
}
while ( true )
{
if ( log.isDebugEnabled() )
{
log.debug( "Wating for messages." );
}
Message mes = null;
try
{
Object obj = javagroups.receive( 0 );
if ( obj != null && obj instanceof org.javagroups.Message )
{
mes = ( Message ) obj;
log.info( "Starting new socket node." );
new Thread( new LateralJGReceiverConnection( mes, ilcl ) ).start();