[jboss-user] [EJB 3.0] - Can ejb3 be used with generics?
teknokrat
do-not-reply at jboss.com
Thu Apr 10 05:25:44 EDT 2008
I am trying to do the following:
I have my local business interface defines with a type parameter and all my bean classes implement it specifying a concrete class for the type parameter. e.g. public class MyClass implements MyInterface
However, the dependency injection is now getting confused as it can't seem to differentiate between the beans e.g.
| @EJB MyInterface<Integer> test1;
| @EJB MyInterface<String> test2;
|
The above fails. Does anyone know whether what i am trying to do can work?
cheers
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143095#4143095
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143095
More information about the jboss-user
mailing list