Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3804

Improve error handling when mailetContainer misses a processor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.7.0
    • 3.8.0
    • Mailet Contributions
    • None

    Description

      Today, if I specify a mailet pointing to a processor that do not exist, James will start, and the failure will be managed at runtime: upon processing, each mail needed to be processed by the unspecified processor will instead go to the error processor.

      Recovering data from such a failure is quite a journey in itself.

      Example of such configuration:

      <mailet matcher="All" class="ToProcessor">
          <processor>notFound</processor>
      </mailet>
      

      Instead of handling such failures at runtime, we could instead abort James startup.

      Given we add a new method on the mailet interface, for a mailet to give the list of processor it needs, we can trivially implement such a check in the mailet container.

      Definition of dome: Have an integration test with configuration specified above, james should fail to start.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              btellier Benoit Tellier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m