O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required