Hello to all ! I have a mysql table locks with objId (primary key), userId and orgId. Now I want to know if there is already an entry for an object in the table or not. For getting a answer I use findByPrimaryKey now I get an ObjectNotFondException if the ObjectId is not found that is what i want and i can add the new entry ans something else. But i get also this Exception if there is a SQLException and then I want do nothing. Only in the server.log I can see that a SQLException is happening.Is there a way to differentiate between the two Exceptions or only the way to use a BMP instead a CMP entity bean? Anek ************************************ Anke Kimpel Werum GmbH Erbstorfer Landstraße 14 21337 Lüneburg Tel. 04131/8900-707 mailto:[EMAIL PROTECTED] http://www.werum.com ************************************ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user