This is a Java Middlware that facilating client to requst services in various servers.
-
compile & Run Middleware
javac Middleware.java java Middleware
-
compile & run Server.Here it register the server's all services in Service directory .(currently implemented two servers). Available services:
Server: addService, encryptionService
Server2: findGCDService, guestLuckyNumberServicejavac Server.java java Server
-
compile & run Client.
client can lookup the services.javac Client.java java Client lookupService <ServiceName> ex: java Client lookupService addService
client can requst the services
java Client addService 12 45 java Client encryptionService password java Client findGCDService 12 45 java Client guestLuckyNumberService 3