You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Joe Bergmark (JIRA)" <ji...@apache.org> on 2011/06/03 15:56:47 UTC

[jira] [Created] (OWB-580) ObserverMethodImpl needs support for EJB's whose Bean Types do not include the EJB class

ObserverMethodImpl needs support for EJB's whose Bean Types do not include the EJB class
----------------------------------------------------------------------------------------

                 Key: OWB-580
                 URL: https://issues.apache.org/jira/browse/OWB-580
             Project: OpenWebBeans
          Issue Type: Bug
            Reporter: Joe Bergmark
            Assignee: Joe Bergmark


ObserverMethodImpl currently attempts to get a reference doing the following:

object = manager.getReference(component, component.getBeanClass(), creationalContext);

This may not work for EJB's, whose bean class itself may not be a bean type of the EJB if it does not have a NIV.  

As we already know the contextual EJB we are interested in, it may be safe to just choose one of the local interfaces as long as the underlying EJB proxy supports all local interfaces.  Otherwise we may need to try and determine which interface this observer method is from.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OWB-580) ObserverMethodImpl needs support for EJB's whose Bean Types do not include the EJB class

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg updated OWB-580:
------------------------------

    Fix Version/s:     (was: 1.1.1)
                   1.2.0

> ObserverMethodImpl needs support for EJB's whose Bean Types do not include the EJB class
> ----------------------------------------------------------------------------------------
>
>                 Key: OWB-580
>                 URL: https://issues.apache.org/jira/browse/OWB-580
>             Project: OpenWebBeans
>          Issue Type: Bug
>            Reporter: Joe Bergmark
>            Assignee: Joe Bergmark
>             Fix For: 1.2.0
>
>
> ObserverMethodImpl currently attempts to get a reference doing the following:
> object = manager.getReference(component, component.getBeanClass(), creationalContext);
> This may not work for EJB's, whose bean class itself may not be a bean type of the EJB if it does not have a NIV.  
> As we already know the contextual EJB we are interested in, it may be safe to just choose one of the local interfaces as long as the underlying EJB proxy supports all local interfaces.  Otherwise we may need to try and determine which interface this observer method is from.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (OWB-580) ObserverMethodImpl needs support for EJB's whose Bean Types do not include the EJB class

Posted by "Joe Bergmark (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bergmark resolved OWB-580.
------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.2.0)
                   1.1.4

Sorry, yes I believe this has been resolved.  The problem here was simply that an EJBs class may not be one of its BeanTypes.  Just picking a type from one of the types was a simple enough solution.
                
> ObserverMethodImpl needs support for EJB's whose Bean Types do not include the EJB class
> ----------------------------------------------------------------------------------------
>
>                 Key: OWB-580
>                 URL: https://issues.apache.org/jira/browse/OWB-580
>             Project: OpenWebBeans
>          Issue Type: Bug
>            Reporter: Joe Bergmark
>            Assignee: Joe Bergmark
>             Fix For: 1.1.4
>
>
> ObserverMethodImpl currently attempts to get a reference doing the following:
> object = manager.getReference(component, component.getBeanClass(), creationalContext);
> This may not work for EJB's, whose bean class itself may not be a bean type of the EJB if it does not have a NIV.  
> As we already know the contextual EJB we are interested in, it may be safe to just choose one of the local interfaces as long as the underlying EJB proxy supports all local interfaces.  Otherwise we may need to try and determine which interface this observer method is from.

--
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-580) ObserverMethodImpl needs support for EJB's whose Bean Types do not include the EJB class

Posted by "Mark Struberg (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246663#comment-13246663 ] 

Mark Struberg commented on OWB-580:
-----------------------------------

Joe, you did some commits. Is this now fixed?
                
> ObserverMethodImpl needs support for EJB's whose Bean Types do not include the EJB class
> ----------------------------------------------------------------------------------------
>
>                 Key: OWB-580
>                 URL: https://issues.apache.org/jira/browse/OWB-580
>             Project: OpenWebBeans
>          Issue Type: Bug
>            Reporter: Joe Bergmark
>            Assignee: Joe Bergmark
>             Fix For: 1.2.0
>
>
> ObserverMethodImpl currently attempts to get a reference doing the following:
> object = manager.getReference(component, component.getBeanClass(), creationalContext);
> This may not work for EJB's, whose bean class itself may not be a bean type of the EJB if it does not have a NIV.  
> As we already know the contextual EJB we are interested in, it may be safe to just choose one of the local interfaces as long as the underlying EJB proxy supports all local interfaces.  Otherwise we may need to try and determine which interface this observer method is from.

--
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