Hi,
I have an
EJB project where I am using a SessionBean (stateless) to persist an item, the problem I am having is, when an item is added with the same primary key value, the method is supposed to throw a EntityExistException, but it is not throwing any exception, instead the caller is thrown a EJBException, I am calling this Session Bean from a different Web project. I tried adding try/catch block in the EJB to check what exception is thrown. The catch bloack doesn't get executed even when catching the generic Exception object. I am using container managed persistence? Could you please help me out with this please. Regards
[ May 17, 2008: Message edited by: Ransika deSilva ]