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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -