This content has been marked as final.
Show 2 replies
-
1. Re: generic business interface
jaikiran Oct 12, 2009 9:44 AM (in response to mlieshoff)As you can see in your post, the generics related information in your code is lost while posting. So, while posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.
-
2. Re: generic business interface
mlieshoff Oct 12, 2009 10:18 AM (in response to mlieshoff)Thank you for fast answering, the correct signatures are here :
Business interface is following :public interface Business { // returns all elements of type t founded by name List<Item> getElementsByName(String name) throws Exception; }
My remote is type for items of type Item :public interface ItemRemote extends EJBObject, Business { // returns all elements of type t founded by name List<Item> getElementsByName(String name) throws RemoteException; }
My bean :public ItemBean implements SessionBean, Business { public<Item> List getElementsByName(String name) throws RemoteException { // do some magic to get list of item } }
Deploying fails because of this reason :Bean must implement all remote interface methods : List<Object> getElementsByName(String name) throws RemoteException;