[arquillian-issues] [JBoss JIRA] (ARQ-836) Enricher does not lookup EJB successfully unless the name of deployed archive is "test" or beanName/mappedName attribute is set
Martin Kouba (JIRA)
jira-events at lists.jboss.org
Thu Mar 29 04:20:47 EDT 2012
Martin Kouba created ARQ-836:
--------------------------------
Summary: Enricher does not lookup EJB successfully unless the name of deployed archive is "test" or beanName/mappedName attribute is set
Key: ARQ-836
URL: https://issues.jboss.org/browse/ARQ-836
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Martin Kouba
The problem is in the way *jndiNames* array is constructed if beanName or mappedName attribute of @EJB annotation is not set.
For following SLSB with no-interface view...
{code}
@Stateless
public class Foo {
public void ping() {
}
}
{code}
... EJBInjectionEnricher tries to lookup following JNDI names:
{noformat}
java:global/test.ear/test/FooBean,
java:global/test.ear/test/Foo,
java:global/test/Foo,
java:global/test/FooBean,
java:global/test/Foo/no-interface,
test/FooBean/local,
test/FooBean/remote,
test/Foo/no-interface,
FooBean/local,
FooBean/remote,
Foo/no-interface,
ejblocal:com.acme.ejb.Foo,
com.acme.ejb.Foo,
{noformat}
Parts like "java:global/test.ear/test/" and "java:global/test/" are hard coded. So if the name of the test archive is not "test" the SLSB is not found.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list