Thanks for the reply. So are you saying that a client (say stateless session bean), could have the following code to create and update a Customer? Only the Customer entity bean knows about DAO? Which method in entity bean contains the code to insert a customer record? Which to update?