[ 
https://issues.apache.org/jira/browse/TOMEE-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13608720#comment-13608720
 ] 

Mark Struberg commented on TOMEE-839:
-------------------------------------

Hi Romain!
Yes, indeed there are a few fishy things going on in the spec here.
a.) @Local is not even mentioned in the EJB spec, only @LocalBean is.
b.) the JavaDoc of @Local says that it is automatically active and only 
explicitly needed if the EJB implements more than 1 interface (which is not 
from the javax.ejb package).

Thus spec wise this fix seems to be ok.
                
> @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-fix_candidate_1.patch, 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

Reply via email to