Tomee Plus instead of Glassfish

2012-06-03 Thread Marco de Booij
Hello, Nearly 2 years ago I tried OpenEJB. I wanted to use it with Tomcat. It was not such a big success for me :-( Lack of knowledge from my side. I went to Glassfish and there I managed to get an application running. I used EJB3.1 so I could pack the whole application in a single WAR and

Re: MyFaces and ViewScope, Mojarra + TomEE ?

2012-06-03 Thread Romain Manni-Bucau
Hi, I never tried but providing it in the webapp should be fine Le 2 juin 2012 19:12, marcin tomiak.mar...@gmail.com a écrit : Well, I think that I've managed to solve the problem with expiring view. The problem was that I had 3 h:forms in the page. When I put all content of the page into

Re: Tomee Plus instead of Glassfish

2012-06-03 Thread Romain Manni-Bucau
Hi, Can you share some code? Tomee supports ejb 3.1 Romain Le 3 juin 2012 16:16, Marco de Booij mdeb...@scarlet.be a écrit : Hello, Nearly 2 years ago I tried OpenEJB. I wanted to use it with Tomcat. It was not such a big success for me :-( Lack of knowledge from my side. I went to

Re: Tomee Plus instead of Glassfish

2012-06-03 Thread Marco de Booij
Hello, My EJB is like: @Local @Stateless(mappedName = CodeDao) public class I18nCodeDao extends DaoI18nCodeDto { static Logger logger = LoggerFactory.getLogger(I18nCodeDao.class); @PersistenceContext(unitName=doos, type=PersistenceContextType.TRANSACTION) private EntityManager em;

Re: Tomee Plus instead of Glassfish

2012-06-03 Thread Romain Manni-Bucau
2notes: 1) @local needs an interface (remove it) 2) mappedname is container dependent (remove it) Le 3 juin 2012 18:23, Marco de Booij mdeb...@scarlet.be a écrit : Hello, My EJB is like: @Local @Stateless(mappedName = CodeDao) public class I18nCodeDao extends DaoI18nCodeDto { static

Re: Tomee Plus instead of Glassfish

2012-06-03 Thread Marco de Booij
Thanks. The errors disappeared. Op 03-06-12 18:49, Romain Manni-Bucau schreef: 2notes: 1) @local needs an interface (remove it) 2) mappedname is container dependent (remove it) Le 3 juin 2012 18:23, Marco de Booijmdeb...@scarlet.be a écrit : Hello, My EJB is like: @Local

Re: Tomee Plus instead of Glassfish

2012-06-03 Thread David Blevins
On Jun 3, 2012, at 9:18 AM, Marco de Booij wrote: @Local @Stateless(name=I18nCodeManager) public class I18nCodeManager { @EJB private I18nCodeDao i18nCodeDao; Strangely enough we're seeing a lot of portability issues on GlassFish's handling of @Local. Some JBoss friends just