[jira] [Commented] (OWB-655) CDI doesn´t inject stateless EJB by abstract class.
[ https://issues.apache.org/jira/browse/OWB-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235012#comment-13235012 ] Rogerio Baldini commented on OWB-655: - OK Mark. Thanks for your help. I am waiting for a solution. Rogerio. > CDI doesn´t inject stateless EJB by abstract class. > --- > > Key: OWB-655 > URL: https://issues.apache.org/jira/browse/OWB-655 > Project: OpenWebBeans > Issue Type: Bug > Components: Enterprise Web Beans >Affects Versions: 1.1.3 >Reporter: Rogerio Baldini >Assignee: Gurkan Erdogdu > > I have these classes: > public abstract class PlcBaseDAO {} > public abstract class PlcBaseJpaDAO extends PlcBaseDAO {} > @Stateless > public class AppJpaDAO extends PlcBaseJpaDAO {} > And this injection doesn´t work. > @Named > public class AppCDI { > @Inject > private PlcBaseDAO baseDao; > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (OWB-655) CDI doesn´t inject stateless EJB by abstract class.
[ https://issues.apache.org/jira/browse/OWB-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234921#comment-13234921 ] Rogerio Baldini commented on OWB-655: - If i can be able to inject an interface, I should be able to inject an abstract class as well, rigth? At truth, both are acting the same way. So CDI should be able to do this. Thanks > CDI doesn´t inject stateless EJB by abstract class. > --- > > Key: OWB-655 > URL: https://issues.apache.org/jira/browse/OWB-655 > Project: OpenWebBeans > Issue Type: Bug > Components: Enterprise Web Beans >Affects Versions: 1.1.3 >Reporter: Rogerio Baldini >Assignee: Gurkan Erdogdu > > I have these classes: > public abstract class PlcBaseDAO {} > public abstract class PlcBaseJpaDAO extends PlcBaseDAO {} > @Stateless > public class AppJpaDAO extends PlcBaseJpaDAO {} > And this injection doesn´t work. > @Named > public class AppCDI { > @Inject > private PlcBaseDAO baseDao; > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (OWB-655) CDI doesn´t inject stateless EJB by abstract class.
[ https://issues.apache.org/jira/browse/OWB-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234886#comment-13234886 ] Rogerio Baldini commented on OWB-655: - Ok Romain, it works, thanks. I can´t use this way, because sometimes my concrete class could be ejb sometimes just a common bean. So is my example wrong or is a OWB/OpenEJB bug? Rogerio > CDI doesn´t inject stateless EJB by abstract class. > --- > > Key: OWB-655 > URL: https://issues.apache.org/jira/browse/OWB-655 > Project: OpenWebBeans > Issue Type: Bug > Components: Enterprise Web Beans >Affects Versions: 1.1.3 >Reporter: Rogerio Baldini >Assignee: Gurkan Erdogdu > > I have these classes: > public abstract class PlcBaseDAO {} > public abstract class PlcBaseJpaDAO extends PlcBaseDAO {} > @Stateless > public class AppJpaDAO extends PlcBaseJpaDAO {} > And this injection doesn´t work. > @Named > public class AppCDI { > @Inject > private PlcBaseDAO baseDao; > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (OWB-655) CDI doesn´t inject stateless EJB by abstract class.
[ https://issues.apache.org/jira/browse/OWB-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234825#comment-13234825 ] Rogerio Baldini commented on OWB-655: - Eric, I could change this implementation but it´s more complex than that, and I don´t have time enough to do this. If it worked in some way, it´d be fabulous. Thansk, Rogerio. > CDI doesn´t inject stateless EJB by abstract class. > --- > > Key: OWB-655 > URL: https://issues.apache.org/jira/browse/OWB-655 > Project: OpenWebBeans > Issue Type: Bug > Components: Enterprise Web Beans >Affects Versions: 1.1.3 >Reporter: Rogerio Baldini >Assignee: Gurkan Erdogdu > > I have these classes: > public abstract class PlcBaseDAO {} > public abstract class PlcBaseJpaDAO extends PlcBaseDAO {} > @Stateless > public class AppJpaDAO extends PlcBaseJpaDAO {} > And this injection doesn´t work. > @Named > public class AppCDI { > @Inject > private PlcBaseDAO baseDao; > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (OWB-655) CDI doesn´t inject stateless EJB by abstract class.
[ https://issues.apache.org/jira/browse/OWB-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234812#comment-13234812 ] Rogerio Baldini commented on OWB-655: - Hi Mark, Thanks for your answer. I don´t intent to use another framework for transtion. I just want to use what is specified in JEE6/EJB3.1. Another important information: this example works fine with jBoss WELD. Thanks again, Rogerio. > CDI doesn´t inject stateless EJB by abstract class. > --- > > Key: OWB-655 > URL: https://issues.apache.org/jira/browse/OWB-655 > Project: OpenWebBeans > Issue Type: Bug > Components: Enterprise Web Beans >Affects Versions: 1.1.3 >Reporter: Rogerio Baldini >Assignee: Gurkan Erdogdu > > I have these classes: > public abstract class PlcBaseDAO {} > public abstract class PlcBaseJpaDAO extends PlcBaseDAO {} > @Stateless > public class AppJpaDAO extends PlcBaseJpaDAO {} > And this injection doesn´t work. > @Named > public class AppCDI { > @Inject > private PlcBaseDAO baseDao; > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (OWB-655) CDI doesn´t inject stateless EJB by abstract class.
[ https://issues.apache.org/jira/browse/OWB-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234802#comment-13234802 ] Rogerio Baldini commented on OWB-655: - Hi LieGrue, This error occurs in Tomee-plus-1.0.0-beta-2. This injection just works if I inject concrete class. Thanks, Rogerio > CDI doesn´t inject stateless EJB by abstract class. > --- > > Key: OWB-655 > URL: https://issues.apache.org/jira/browse/OWB-655 > Project: OpenWebBeans > Issue Type: Bug > Components: Enterprise Web Beans >Affects Versions: 1.1.3 >Reporter: Rogerio Baldini >Assignee: Gurkan Erdogdu > > I have these classes: > public abstract class PlcBaseDAO {} > public abstract class PlcBaseJpaDAO extends PlcBaseDAO {} > @Stateless > public class AppJpaDAO extends PlcBaseJpaDAO {} > And this injection doesn´t work. > @Named > public class AppCDI { > @Inject > private PlcBaseDAO baseDao; > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira