This content has been marked as final. Show 1 reply
I could make it work by creating a stateless session bean like the tutorial does like:
InitialContext ctx = new InitialContext(); LoanCalculatorDaoLocal c = (LoanCalculatorDaoLocal) ctx.lookup(LoanCalculatorDaoLocal.class.getName()); c.store(lc);
However, I would like to make it work with a simpler DAO pattern where the DAO calls manager.persist(..). That is what I cannot get to work. It is not clear to me if the session bean pattern is needed to use the entity bean and if so, why it needs to be that way.