yes , it encapsulates DuplicateKeyEsception. but how does the clients knows it
client gets : Remote exception occurs......
javax.transaction.TransactionRolledbackException:
EJB Exception: : javax.ejb.DuplicateKeyException: Bean with primary key: 'P1' already exists.
at weblogic.ejb20.manager.BaseEntityManager.executeInsertStmt(Ljava.util.List;Ljavax.transaction.Transaction;Ljava.util.Set;Z)V(BaseEntityManager.java:625)
at weblogic.ejb20.manager.BaseEntityManager.executeDBOperations(Ljava.util.List;Ljavax.transaction.Transaction;Ljava.