Amit Ajmani [http://community.jboss.org/people/amitajmani1] created the discussion
"Re: JBoss5.1.0 + JPA = Object not persists" To view the discussion, visit: http://community.jboss.org/message/630222#630222 -------------------------------------------------------------- Actually i tried to answer line by line.... ok , here my code **@Remote** **public** *interface* UserService { * public* List<User> getRegisteredUsers();** public** *void* registerUser(User user); @Stateless @TransactionManagement(TransactionManagementType.CONTAINER) *public class* UserServiceImpl **implements** UserService { private UserServiceCoreImpl userService; *public* UserServiceImpl(){ userService = new UserServiceCoreImpl(); } *public* List<User> getRegisteredUsers(){ return userService.getRegisteredUsers(); } *public* void registerUser(User user){ userService.registerUser(user); } } *public class* UserServiceCoreImpl **implements** UserService{ private GenericDao dao; *public* UserServiceCoreImpl(){ dao = new GenericDaoImpl(); } *public* GenericDao getDao(){ return dao; } *public* void registerUser(User user){ getDao().persist(user); } ........................... ............................. } } -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/630222#630222] Start a new discussion in Beginner's Corner at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
