Spring Integration Multiple Endpoints -


currently working on spring integration application has following scenario.

  1. there transformer transforms incoming message in particular object type
  2. once transformation done, need write log file , database table , send jms outbound adapter.

i reading spring integration reference , found out there 2 ways can approach scenario.

  1. introduce pub-sub channel output channel of above mentioned transformer , have file-outbound, db-outbound , jms-outbound subscribers.
  2. introduce recipient list router after transformer , specify file-outbound, db-outbound , jms-outbound recipients.

when comes enterprise integration patterns best way handle scenario? new suggestions , improvements welcome

thanks, keth

there no "best way" - both solutions equivalent , there little difference @ runtime. it's preference; use pub/sub simple case , rlr if recipients conditional (with selectors).


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -