EchoServer

Descrição

EchoServer
David Utza
Notas por David Utza, atualizado more than 1 year ago
David Utza
Criado por David Utza aproximadamente 8 anos atrás
8
0

Resumo de Recurso

Página 1

import java.rmi.Naming;import java.rmi.registry.LocateRegistry;/** * Klasse EchoServer * * @version 2016-09-09 * @author David */public class EchoServer { private EchoObject eo;// private List<EchoObject> clients; public EchoServer() { try { eo = new EchoObject(); System.out.println("Der Server ist aktiv!"); LocateRegistry.createRegistry(1099); Naming.rebind("rmi://localhost:1099/testObject", eo); } catch (Exception e) { e.printStackTrace(); System.out.println("\nException"); } } public EchoObject getEchoObject() { EchoObject result; result = eo; return result; } public static void main (String[] args) { EchoServer es = new EchoServer(); }}

Semelhante

ein kleines Informatik Quiz
AntonS
Informatik
Tom Kühling
PHP Grundlagen
chrisi.0605
Wirtschaftsinformatik Teil 2
Sabrina Heckler
Informatik 1 - Einführung
Svenja
Codierung
Tom Kühling
Wirtschaftsinformatik Teil 1
Sabrina Heckler
Einführung in das Studium Informatik
Daniel Doe
Lernplan
Sandra K
Datenstrukturen
Ann-Kathrine Buchmakowsky