The Java EE 5 Tutorial

Coding the Application Client:

The application client program, clientsessionmdb-app-client/src/java/, performs no JMS API operations and so is simpler than the client program in Chapter 23, A Message-Driven Bean Example. The program uses dependency injection to obtain the Publisher enterprise bean’s business interface:

static private PublisherRemote publisher;

The program then calls the bean’s business method twice.