i new spring integration. have specific requirement.
- i have 2 database fetch.
- created 2 sp.
- 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:
- configure
<int-jdbc:stored-proc-outbound-gateway>
call first sp - configure
<int:enricher>
request-channel
sub-flow call second sp similar way previous one - with
<int:enricher>
able store additional info incustomer
model property (whichpayload
) orheaders
- 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
Post a Comment