EchoServer

Description

EchoServer
David Utza
Note by David Utza, updated more than 1 year ago
David Utza
Created by David Utza about 8 years ago
8
0

Resource summary

Page 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(); }}

Show full summary Hide full summary

Similar

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