Spring Integration Multiple Endpoints -
currently working on spring integration application has following scenario.
- there transformer transforms incoming message in particular object type
- 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.
- introduce pub-sub channel output channel of above mentioned transformer , have file-outbound, db-outbound , jms-outbound subscribers.
- 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
Post a Comment