Results 1 to 2 of 2

Thread: Restart of bean-managed MDB

  1. #1
    Join Date
    May 2007
    Posts
    14

    Default Restart of bean-managed MDB

    This is a real value-add to many projects! Great news. How much of the re-start challenge facing MDB-triggered multi-commit batches is solved out-of-the-box? Thinking of a batch processing a large inbound message, committing every 10 logical messages, hit by a server crach. After start-up the roll-backed message hits the business logic a second time, which needs to fast-forward to the first logic record of the roll-backed transaction.

  2. #2
    Join Date
    Jun 2005
    Posts
    4,241

    Default

    Part of the purpose of Spring Batch infrastructure is to provide simple (but extremely effective) optimisations of the sort you describe. There is a MessageListenerContainer that might meet your needs.

    Also it is relatively simple to roll your own container using the underlying infrastructure and get even more control over the commit / exception handling. There are currently some integration tests that demonstrate this kind of approach, and it is also being tested by a client. If there is sufficient demand and we can add some value we will solidify the basic messaging container in the product.

    If you want a message-based / staged / pipeline-oriented architecture, and also need traceability, monitoring and management of job instances, you will be interested in the idea of a container based on an ESB (e.g. Mule). We are definitely also going to be working on that, but not just yet.

Posting Permissions

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