Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-10278

Throw an exception if an @EJB can be resolved to multiple ambiguous EJBs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.3.0.ER1
    • EAP_EWP 5.2.0 ER2
    • EJB
    • None
    • Not Required
    • NEW

    Description

      When use (@EJB(name = "XYZBean.EJB_NAME"), it specified the name under which the reference is bound in java:comp/env,
      With different JDK e.g. Oracle JDK7 and IBM JDK6/7, that could cause problem if more than one classes implement the interface and this @EJB annotation could be resolved to multiple EJBs.
      But they're still all valid choice during the bean injection. So we'd better add an explicit log warning of this ambiguity for user.

      Attachments

        Activity

          People

            chaowan@redhat.com Chao Wang
            chaowan@redhat.com Chao Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: