When I want to add/remove a record from database, should I use the methods directly from Entity Bean or I should use a Session Bean to create some methods which will call the methods in the Entity Bean?
Created May 4, 2012
Alex Chaffee It depends :-)
Usually you're fine just calling the EB methods (actually, create, and sometimes remove, would be called on the EJBHome). Use the SB if you have other things you want to do at the same time, like adding/removing other dependent entity beans, or logging the action, or performing additional validation.