/*********************************************************************
* AddressServer.java
* created on 17.03.2005 by netseeker
* $Source: /cvsroot/ejoe/EJOE/examples/de/netseeker/ejoe/examples/remoting/AddressServer.java,v $
* $Date: 2006/11/28 21:47:23 $
* $Revision: 1.2 $
*********************************************************************/
package de.netseeker.ejoe.examples.remoting;
import java.io.IOException;
import de.netseeker.ejoe.EJServer;
import de.netseeker.ejoe.handler.DefaultRemotingHandler;
/**
* Simple Example which demonstrates how to implement
* a basic address managment using remote reflection with EJOE.
*
* @author netseeker
*/
public class AddressServer
{
public static void main( String[] args )
{
EJServer server = new EJServer( new DefaultRemotingHandler() );
server.setMaxReadProcessors( 1 );
server.setMaxWriteProcessors( 1 );
server.enableNonBlockingIO( true );
server.enablePersistentConnections( true );
try
{
server.start();
}
catch ( IOException e )
{
e.printStackTrace();
System.exit( -1 );
}
}
}