Hi Mauro, this https://github.com/apache/tomee/tree/master/examples/simple-stateful works. This sounds like a project setup issue.
Side note: your project is not runnable cause it depends on netbeans Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-11-21 11:00 GMT+01:00 mauro2java2011 <mauro2java2...@gmail.com>: > hi. i would try to test a ejb stateful from tomee examples > so into netbeans i have: > > setted a server tomee > created a web project > > inserted the ejb statefull from tomee example > > tried the testfrom the example but not working. > > > i have added a my class into source test named MyTest.java > > used the @Inject for get the ejb > > added a debug brekpoint at line 65. > the variable counterA at line 65 is all times null. > > Also whit a lookup with all named JNDI that tomee print into the consolle > during the deploy when i test it output all time not found into jndi name > global/simplestatefull/Counter > > note: i would use the embedded EJBContainer and not arquillan for get the > test plus simple and speed. > tank you in advance > > > my github project: > https://github.com/maurojava/simple-stateful > > nb: i have also tried to add to test classpath all jars inside the > tomee/lib but not working) > Mauro > > > > -- > View this message in context: http://tomee-openejb.979440. > n4.nabble.com/test-of-simple-stateful-example-not-working- > into-netbeans-tp4680604.html > Sent from the TomEE Users mailing list archive at Nabble.com. >