Announcement Announcement Module
Collapse
No announcement yet.
Replicating jdbc inbound channel adapter update with JPA Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Replicating jdbc inbound channel adapter update with JPA

    Hi there,

    How would I replicate the behaviour of the jdbc inbound channel adapter using the JPA components, specifically the extremely handy update attribute?

    The scenario is the usual:
    Code:
    select top 100 * from table where status='NEW'
    update table set status='PROCESSING' where id in (:id)
    (Followed by a splitter which breaks the batch into individual messages for further processing)

    I'm assuming my starting point is the jpa inbound channel adapter, but I'm wondering what I do next. Perhaps one should chain a JPA updating outbound gateway directly afterwards?

    Best wishes,

    Ben
Working...
X