Announcement Announcement Module
Collapse
No announcement yet.
Batch update using jdbc outbound gateway? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Batch update using jdbc outbound gateway?

    Hi Gary,
    Is it possible to do a batch update using the jdbc outbound gateway based on a queue size or a timed release? Basically if the number of incoming messages reach a pre configured size, then do a batch update or if a predetermined time period has reached, then do the batch update? This would help in the performance of the application.

    Regards,
    Anoop

  • #2
    Not with the standard adapters, but it's easy to configure a group size - based aggregator, with a MessageGroupStoreReaper to release partial groups that time out before being filled.

    Then invoke a custom bean with a <service-activator/>; where the custom bean can use a JdbcTemplate and one of its batch methods.

    You could probably reuse some code from the Spring Batch "JdbcBatchItemWriter".

    Comment


    • #3
      Thanks Gary!

      Comment

      Working...
      X