Hi,
I have the following code.
//My remote component interface.
public interface Test extends ILibrary,javax.ejb.EJBObject {
//no method definition here.
}
//my business interface
public interface ILibrary {
public
String getName()throws RemoteException;
}
public class LibraryDelegate implements ILibrary {
ILibrary ilib=null;
LibraryDelegate(){
//lookup the
ejb and get the reference to the ILibrary Interface.
}
public String getName() throws DesignException {
String s=null;
try {
s= ilib.getName();
} catch (RemoteException e) {
throw new DesignException(e.getMessage());
}
return s;
}
}
The getName() method in the above delegate class give me compilation error saying "Exception DesignExcpetion is not compatible with the throws clause in ILibrary.getName() method". Am i doing something thing wrong ? Thanks for your help.