These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to convert exceptions in JTA controlled transaction?
PostPosted: Tue Apr 25, 2006 12:44 pm 
Newbie

Joined: Tue Mar 21, 2006 9:25 am
Posts: 8
I wish to hide any Hibernate specifics from the client, including the Exceptions. In a JTA managed environment the commit occurs outside any developer supplied try/catch blocks so it is not possible to catch and convert Exceptions that occur at commit time.

I see that Hibernate has an SQLExceptionConverter interface which I presume is used regardless of whether JTA is being used or not, however this requires an instance of JDBCException to be returned rather than allowing me to use a custom Exception hierarchy.

Is there a way of converting to a custom Exception hierarchy in a JTA managed environment?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.