This is a discussion on Generics support for EJB3 in weblogic 10 - Weblogic ; Does anyone know if weblogic 10 supports generics for ejb3. i.e. can i do something like this. @Local public interface Service { public T doSomething(S source) ; } @Stateless public class ServiceBean implements Service { public String doSomething(String source) { ...
Does anyone know if weblogic 10 supports generics for ejb3.
i.e. can i do something like this.
@Local
public interface Service{
public T doSomething(S source) ;
}
@Stateless
public class ServiceBean
implements Service{
public String doSomething(String source) {
......
}
}
I tried doing it but i keep getting the following :
weblogic.ejb.container.compliance.ComplianceExcept ion: Method public
abstract void doSomething(java.lang.Object arg0) in local business
interface Service has not corresponding matching in bean class
ServiceBean
although the weblogic doc says something else. (http://e-docs.bea.com/
wls/docs100/ejb30/implementing.html). Read the part about using
generics and ejb.