In this video, see the instructor's solution for one way to configure a service activator.
(gentle music) … - [Instructor] Let us complete our code challenge together. … The challenges you recall is to add a service activator … to the message flow, … so that our status monitoring channel will automatically … cause a customer account credit to be applied. … This way the account credit functionality can be achieved … as a by-product of the existing message flow … without a manual invocation of the service … inside our business logic. … In order to achieve this, … what we need to do is add service activation configuration … to our status monitor message flow. … And that will look like this. … Leveraging the integration namespace, … we want a service activator element. … Our input channel shall be our status monitor channel. … When something comes through this channel, … we're trying to activate. … The bean that we activate here that we're referencing … is identified in line 33 as account credit service. … And the method that we want to call inside that bean … is named credit customer account. …
Skill Level Advanced
Using the exercise files2m 16s
1. Essential Project Components
2. Communicating Messages over Channels
3. Manage Messages with Endpoints
4. Connect External Systems with Endpoints
5. Advanced Spring Integration
Advanced Spring Integration2m 54s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.