Package de.netseeker.ejoe.examples.remoting

Source Code of de.netseeker.ejoe.examples.remoting.AddressServer

/*********************************************************************
* 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 );
        }
    }
}
TOP

Related Classes of de.netseeker.ejoe.examples.remoting.AddressServer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.