[cdi-dev] [JBoss JIRA] (CDI-571) Producer and Disposer methods as remote business methods

Tomas Remes (JIRA) issues at jboss.org
Wed Nov 11 02:24:00 EST 2015


     [ https://issues.jboss.org/browse/CDI-571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomas Remes updated CDI-571:
----------------------------
    Description: 
Currently it's possible to declare remote business method as a Producer or Disposer method:
{quote}
if a non-static method of a session bean class is annotated @Produces, and the method is not a business method of the session bean, the container automatically detects the problem and treats it as a definition error.
{quote}
The question is whether it makes sense. IMO and with regarding to https://issues.jboss.org/browse/CDI-545 It doesn't.

  was:
Currently it's possible to declare Producer and Disposal for remote business method:
{quote}
if a non-static method of a session bean class is annotated @Produces, and the method is not a business method of the session bean, the container automatically detects the problem and treats it as a definition error.
{quote}
The question is whether it makes sense. IMO and with regarding to https://issues.jboss.org/browse/CDI-545 It doesn't.



> Producer and Disposer methods as remote business methods
> --------------------------------------------------------
>
>                 Key: CDI-571
>                 URL: https://issues.jboss.org/browse/CDI-571
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>    Affects Versions: 1.2.Final, 2.0-EDR1
>            Reporter: Tomas Remes
>
> Currently it's possible to declare remote business method as a Producer or Disposer method:
> {quote}
> if a non-static method of a session bean class is annotated @Produces, and the method is not a business method of the session bean, the container automatically detects the problem and treats it as a definition error.
> {quote}
> The question is whether it makes sense. IMO and with regarding to https://issues.jboss.org/browse/CDI-545 It doesn't.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the cdi-dev mailing list