-
Bug
-
Resolution: Unresolved
-
Major
-
1.0.0.CR7
-
None
-
None
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...
@Stateless public class Foo { public void ping() { } }
... EJBInjectionEnricher tries to lookup following JNDI names:
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,
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.