Results 1 to 2 of 2

Thread: Handling exceptions thrown during initialization

  1. #1
    Join Date
    Mar 2005
    Posts
    1

    Default Handling exceptions thrown during initialization

    I would like to be able to assign error codes, localize messages, provide context parameters, etc. before logging and generating events when configuration problems occur due to unavailable or missing resources when Spring creates all the beans.

    How do I get in the middle of the exception handling? Am I stuck doing it in Log4j?

    Tony

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    One possibility would be to bootstrap Spring yourself and catch exceptions exceptions there. However, this will limit the ability to deploy Spring in different environment.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Similar Threads

  1. Replies: 0
    Last Post: Sep 29th, 2005, 12:39 AM
  2. Context initialization failed
    By kanonmicke in forum Container
    Replies: 7
    Last Post: Sep 29th, 2005, 12:35 AM
  3. Replies: 2
    Last Post: Mar 29th, 2005, 07:45 AM
  4. Replies: 2
    Last Post: Feb 13th, 2005, 12:42 PM
  5. Replies: 2
    Last Post: Dec 20th, 2004, 04:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •