Enterprise JavaAn Architecture for Making Asynchronous EJB Calls Using JMS

Listing 1. SpellCheck.java.


1  package asynch;
2  
3  import java.rmi.*;
4  import javax.ejb.*;
5  import javax.jms.*;
6  import java.util.*;
7  
8  public interface SpellCheck extends Remote, EJBObject {
9    public Boolean checkSpelling(String word, Destination answer) throws RemoteException;
10 }