spring integration multiple stored procedure enricher pattern -


i new spring integration. have specific requirement.

  1. i have 2 database fetch.
  2. created 2 sp.
  3. i have data calling respective stored procedure , create jaxb object make webservice call.

i able call 1 sp not able call 2nd sp. think can use enricher pattern dont know how configure.

please help.

well, trying answer broad question may suggest:

  1. configure <int-jdbc:stored-proc-outbound-gateway> call first sp
  2. configure <int:enricher> request-channel sub-flow call second sp similar way previous one
  3. with <int:enricher> able store additional info in customer model property (which payload) or headers
  4. and on until ws call.

everything rest can find in spring integration reference manual , samples project.

update

i still need help.

since looks still don't understand spring integration principles properly, i'd suggest have 1 <service-activator> , call both stored procedures in custom code using spring jdbc directly.

eventually experience able refactor separate components <enricher> on board.

otoh scenario recalls me scatter-gather pattern.


Comments