Wrox Programmer Forums
|
BOOK: Professional Java Development with the Spring Framework
This is the forum to discuss the Wrox book Professional Java Development with the Spring Framework by Rod Johnson, Juergen Hoeller, Alef Arendsen, Thomas Risberg, Colin Sampaleanu; ISBN: 9780764574832
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Java Development with the Spring Framework section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 25th, 2005, 09:16 AM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CustomSQLErrorCodesTranslation

Hi

Reading p201 of the book - I would like to do my own error handling for a range of application exceptions being thrown out of an Oracle stored procedure (in the range of 20000 to 29999). Is there any way to add the customTranslations property in my own application context files or do I really have to edit the core sql-error-codes.xml ? Can I extend the customSqlErrors bean in another file ?

If I edit the sql-error-codes.xml, what happens when we need a new version of spring ? The problem is that you are asking me to make application-specific config in a core spring-project -released component. We have to remember to open up the jar and edit the file again.

Cheers

Chris

 
Old September 20th, 2005, 05:21 AM
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://static.springframework.org/sp...tionTranslator









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.