Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-507

Multi viewed EJBs can't be auto resolved

XMLWordPrintable

      EJBInjectionEnricher does not support multi view EJB lookup. As pr spec, BeanName jndi is not bound when the bean expose multiple views.

      Spec:

      The container registers a separate JNDI name entry for each local business interface, each remote busi-
      ness interface, and any no-interface view, 2.x local home interface, and 2.x remote home interface. For
      the no-interface view, the last portion of the entry name is the fully-qualified bean class name.

      In addition to the previous requirements, if the bean exposes only one of the applicable client inter-
      faces(or alternatively has only a no-interface view), the container registers an entry for that view with
      the following syntax :

      java:global[/<app-name>]/<module-name>/<bean-name>

      current
      "java:global/test/" + fieldType.getSimpleName(),
      "java:global/test/" + fieldType.getSimpleName() + "Bean",
      
      addition
      "java:global/test/" + fieldType.getSimpleName() + "!" + fieldType.getName(),
      "java:global/test/" + fieldType.getSimpleName() + "Bean!" +  fieldType.getName(),
      

              Unassigned Unassigned
              aslak@redhat.com Aslak Knutsen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated: