System: Fedora 5.
DB: IBM db2 9.1
JVM: 5.0.9
AS. JBoss 4.0.5GA
persistence-manager: org.jboss.ejb.plugins.cmp.jdbc2.JDBCStoreManager2

In the following method in a session (facade) bean:
private void testCreate() {
  |     try {
  |             myEntityHome.create(123,1,1);
  |             System.out.println("This line executes EVEN when create 
fails!");
  |     } catch (CreateException ex) {
  |             System.out.println("This line NEVER executes!");
  |     }
  | }, upon hitting any jdbc exception, JBoss first executes the method AS IF 
no exception was thrown, including the lines after the [failed] 
myEntityHome.create and NOT the lines in the catch block, and (according to the 
log) afterwards tries the INSERT into the db which triggers (if jdbc problem) 
the exception and a variety of traces all based on the jdbc error.
How do I get JBoss to let me catch the exception and deal with it?
Thank you all.
nat


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997138#3997138

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997138
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to