bm stands for beanmanager without being the beanmanager ;) but well i'm open to any improvement on it
- Romain 2012/6/15 Thiago Veronezi <[email protected]> > "beans" is a short for "enterprise beans", but probable "ejbs" is better. > :O) > > I was thinking the same thing. Maybe we can replace both > "BeanManagerHelper" and "beans" (or "ejbs") by an utility object that does > the lookup of the ejb only when we need it. I like... > > container.lookup("name") > > []s, > Thiago. > > > On Fri, Jun 15, 2012 at 7:19 AM, Romain Manni-Bucau > <[email protected]>wrote: > > > maybe a utility object: container.lookup("name") or sthg like that is > > better > > > > thoughts? > > > > > > - Romain > > > > > > 2012/6/15 Romain Manni-Bucau <[email protected]> > > > > > why "beans" and not ejbs or something else? the point is beans sounds > CDI > > > and in fact cdi beans are not managed here. > > > > > > - Romain > > > > > > > > > 2012/6/15 Thiago Veronezi <[email protected]> > > > > > >> It seems buildbot didnt like the changes. :) > > >> Checking it... > > >> > > >> > > >> On Fri, Jun 15, 2012 at 6:36 AM, Thiago Veronezi <[email protected] > > >> >wrote: > > >> > > >> > I did a small change in your code. > > >> > Please check if you are OK with it: > > >> > http://svn.apache.org/viewvc?rev=1350565&view=rev > > >> > > > >> > []s, > > >> > Thiago > > >> > > > >> > > > >> > On Fri, Jun 15, 2012 at 5:25 AM, Romain Manni-Bucau < > > >> [email protected] > > >> > > wrote: > > >> > > > >> >> just tried and i didnt get an error > > >> >> > > >> >> i updated the code with some todo, can you have a look and say me > > what > > >> do > > >> >> you think? > > >> >> > > >> >> - Romain > > >> >> > > >> >> > > >> >> 2012/6/15 Thiago Veronezi <[email protected]> > > >> >> > > >> >> > Hi Romain, > > >> >> > I needed to revert the changes for the script executor. The > > >> >> > "OpenEJBScripter" object keeps returning an exception. Can you > > check > > >> it? > > >> >> > > > >> >> > * go to http://localhost:8080/tomee/index.html > > >> >> > * right-click one of the jndi names and save is as "a" > > >> >> > * execute util.save('result', util.get('a').getMovies().size()); > > >> >> > * if you hit the "load" buttom of the "Saved Objects" panel, you > > >> should > > >> >> be > > >> >> > able to see the "result" value > > >> >> > > > >> >> > This is what "OpenEJBScripter" gives me. > > >> >> > java.lang.InternalError: > > java.lang.reflect.InvocationTargetException > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.openejb.util.proxy.LocalBeanProxyGeneratorImpl.createProxy(LocalBeanProxyGeneratorImpl.java:121) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.openejb.util.proxy.LocalBeanProxyGeneratorImpl.createProxy(LocalBeanProxyGeneratorImpl.java:95) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.openejb.util.proxy.LocalBeanProxyFactory.newProxyInstance(LocalBeanProxyFactory.java:33) > > >> >> > at org.apache.openejb.util.proxy.ProxyEJB.proxy(ProxyEJB.java:32) > > >> >> > at > > >> >> > > >> > org.apache.openejb.util.OpenEJBScripter.binding(OpenEJBScripter.java:87) > > >> >> > at > > >> >> > > > >> >> > > >> > > org.apache.openejb.util.OpenEJBScripter.evaluate(OpenEJBScripter.java:64) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.tomee.webapp.servlet.ConsoleServlet$1.call(ConsoleServlet.java:78) > > >> >> > at > > org.apache.tomee.webapp.JsonExecutor.execute(JsonExecutor.java:42) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.tomee.webapp.servlet.ConsoleServlet.doPost(ConsoleServlet.java:40) > > >> >> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) > > >> >> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) > > >> >> > at > > >> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) > > >> >> > at > > >> >> > > > >> >> > > >> > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > > >> >> > at > > >> >> > > > >> >> > > >> > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > > >> >> > at > > >> >> > > > >> >> > > > >> >> > > >> > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > > >> >> > at java.lang.Thread.run(Thread.java:662) > > >> >> > > > >> >> > []s, > > >> >> > Thiago > > >> >> > > > >> >> > > >> > > > >> > > > >> > > > > > > > > >
