Hmm should work (maybe the bound name is comp/env/accountbeanlocal). But why dont you use the cdi variable resolver?
This way no need of any config in web.xml - Romain Le 2 sept. 2012 01:24, "Luca Merolla" <[email protected]> a écrit : > Hi, > > I have a web application that is using Zkoss framework and the MVVM > pattern. > Basically the ViewModel classes (which are pojos) needs to call some EJBs > which are inside the same EAR folder. > In JBoss 7.1 I have configured the application in this way and it's working > > In web.xml I have all the ejbs declared in this way: > <ejb-local-ref> > <ejb-ref-name>accountBean</ejb-ref-name> > <ejb-ref-type>Session</ejb-ref-type> > <local-home>org.test.common.bean.local.AccountBeanLocal</local-home> > <local>org.test.common.bean.local.AccountBeanLocal</local> > </ejb-local-ref> > > And in the ViewModel classes I use the @WireVariable annotation (from ZK > framework) by simply matching the name and the EJB is bounded > > @WireVariable private AccountBeanLocal accountBean; > > With the latest TomEE snapshot the EJB is not bounded. I believe > ejb-local-ref are ignored or simply it does not work in the same way as > JBoss. > Do you have any advice or alternative solution to this problem? > > Thanks in advance, > Luca >
