The Caffeinated HelloWorld Server

Consisting of one Java interface and two classes is the server side of the Caffeine HelloWorld. The HelloWorldCaffeineImpl class implements the HelloWorldCaffeine remote interface. The HelloWorldCaffeineServer class provides a main method that initializes the server and then instantiates a single HelloWorldCaffeineImpl object (see Listing 21.2). In Listing 21.3 you'll see the HelloWorldCaffeineImplClass source code, and in Listing 21.4 you'll see the HelloWorldCaffeineServer source code.

Listing 21.2 The HelloWorldCaffeine Interface
package HelloWorldCaffeine;
public interface HelloWorldCaffeine extends org.omg.CORBA.Object
{
  public int getGreeting();
  public void setGreeting( String strNewGreeting );
}

Get JavaBeans Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.