spring integration - Create programatically message-driven-channel-adapter to process the messages on queue -


i process message programmatically using message-driven-channel-adapter. here scenario have implement: application during startup read configuration service. configuration provides information queues contain messages. hence create message-driven-channel-adapter each queue listen messages asynchronously.

any example initializes spring integration context programatically instead of using xml useful.

if going programmatically, i'd suggest bypass spring integration magic , use defaultmessagelistenercontainer directly.

afterwards can send messages existing messagechannel directly messagelistener implementation or using messaging gateway.

please, careful programmatic configuration not miss important attributes applicationcontext or invocation afterpropertiesset().


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -