It abstracts away implementation details of business logic, allowing both easier testing of things that use the interfaces, and reuse of business logic in arbitrary ways.
Prannav Santhosh
Greenhorn
Joined: May 09, 2009
Posts: 29
posted
0
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 class LibraryDelegate implements ILibrary {
ILibrary ilib=null;
LibraryDelegate(){
//lookup the ejb and get the reference to the ILibrary Interface.
}
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.