[
https://issues.apache.org/jira/browse/TOMEE-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13608189#comment-13608189
]
Mark Struberg commented on TOMEE-839:
-------------------------------------
It seems like the SessionBean gets a ServiceEndpoint set, thus it is not
treated as a auto-Local anymore.
> @Stateless EJBs which are also @WebService annotated don't get picked up in
> embedded mode
> -----------------------------------------------------------------------------------------
>
> Key: TOMEE-839
> URL: https://issues.apache.org/jira/browse/TOMEE-839
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.5.1
> Reporter: Mark Struberg
> Attachments: TOMEE-839.patch
>
>
> {noformat}
> @Stateless
> @WebService
> public class MyBean {..
> {noformat}
> This class does not get picked up as EJB. It can neither get injected via
> @Inject, nor @EJB nor manually looked up in the Context. If I remove the
> @WebService annotation, then all works fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira