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

EJBInjectionEnricher makes too strong assumptions about JNDI names in the "anonymous" case

XMLWordPrintable

      The EJBInjectionEnricher supports injecting the test instance fields annotated with javax.ejb.EJB. However, looking at the EJBInjectionEnricher.getJndiNamesForAnonymousEJB method, it makes too strong assumptions about the JNDI name. Specifically, it assumes the test.ear and test names. That doesn't necessarily have to be correct (e.g. WildFly Swarm Arquillian adapter doesn't use these names). There's an easy way to improve this for some situations: also consider the java:module portable namespace. It can't fix all situations, but it does fix some of them. (For Swarm, it's completely enough, since Swarm doesn't support EARs.)

              Unassigned Unassigned
              lthon@redhat.com Ladislav Thon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: