Hello community,
I'm tring to do a stupid example: call a EJB 3 (defined by annotation) in an other EAR.
The EJB has a local and a remote interface. His name and mappedName is also defined.
When I do a lookup with the entire JNDI name it's work. Good news.
ie:
SimpleEJBLRRemote test = (SimpleEJBLRRemote) ctx
.lookup("TestEJB3ObjectEAR/SimpleEJBLocalAndRemoteName/remote-com.lge.test.SimpleEJBLRRemote");
BUT
When I'm triing to define the reference in the web.xml as follow:
<ejb-ref>
<description />
<ejb-ref-name>myEJBWEB_RefRemoteWithSimpleBinding</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home />
<remote>com.lge.test.SimpleEJBLRRemote</remote>
</ejb-ref>
I get at deployment the exception:
Deployment "vfszip:/[bblablabla]TestEJB3ClientsEAR.ear/" is in error due to the following reason(s): java.lang.IllegalStateException: Failed to find ContainerDependencyMetaData for interface: com.lge.test.SimpleEJBLRRemote
Any suggestion?
Thanks by advance.
Regards
PS: French power!