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.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883419#3883419

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883419


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to