[
https://issues.apache.org/jira/browse/OWB-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234789#comment-13234789
]
Mark Struberg commented on OWB-655:
-----------------------------------
Hi Rogerio!
What parts of OpenWebBeans do you use?
OWB is built in a modular fashion. Our webbeans-impl.jar will only serve basic
Java SE injection. If you add further plugins, e.g. webbeans-resource,
webbeans-ee, etc then you will get more features.
Injecting EJBs into CDI beans is one such 'extended' feature. If you use
OpenWebBeans together with OpenEJB then your sample should work.
How does your container setup look like currently? If you are using tomcat +
OpenEJB + OpenWebBeans then you might try out TomEE [1] which is a pre-packaged
EE Web-Profile for exactly such scenarios.
hope that helps!
LieGrue,
strub
[1] http://tomee.apache.org
> 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