Hi,
i'm trying the new JBoss 6 M5 Server and would like to Deploy some EJBs inside of an EAR and a WebApp.
In JBoss 5.1.0.GA i was able to inject these EJBs like
@EJB(mappedName="PersistenceEAR/CustomerBean/local")
CustomerBeanLocal customerBean;
The JNDI-View on JBoss 6 shows:
Global JNDI Namespace
...
+- PersistenceEAR (class: org.jnp.interfaces.NamingContext)
...
| +- CustomerBean (class: org.jnp.interfaces.NamingContext)
| | +- local (class: Proxy for: de.hd.lobster.api.CustomerBeanLocal)
| | +- local-de.hd.lobster.api.CustomerBeanLocal (class: Proxy for: de.hd.lobster.api.CustomerBeanLocal
As far as i know everything should work as before, but at deploying the WebApp I get the Error:
11:15:20,916 WARN [org.jboss.deployment.MappedReferenceMetaDataResolverDeployer] Unresolved references exist in JBossWebMetaData:
[#web-app:AnnotatedEJBReferenceMetaData{name=de.hd.kiwi.backingBean.Search/customerBean,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=PersistenceEAR/CustomerBean/local,resolved-jndi-name=null,beanInterface=interface de.hd.lobster.api.CustomerBeanLocal},
...]
I also tried to inject without a given mappedName and by directly referencing the global JNDI Namespace via
java:global/PersistenceEAR/CustomerBean/local
Has anyone an Idea how to lookup these Beans from the JNDI?
Greetings
Michael