Top Banner
Copyright © 2014 by Intertech, Inc. Express Spring Integration Service Activators
7

Spring Integration Tutorial (Part 7) - Service Activators

Nov 29, 2014

Download

Software

As we near the end of this eight part tutorial series on Spring Integration (SI), the topic of this seventh installment is on service activators. The name of this SI message endpoint aptly defines what it does. A service activator is an SI component that triggers (or activates) a Spring-managed service object or bean. A service activator polls a message channel looking for messages.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 1. Copyright 2014 by Intertech, Inc.
  • 2. Copyright 2014 by Intertech, Inc.
  • 3. Copyright 2014 by Intertech, Inc.
  • 4. Copyright 2014 by Intertech, Inc. public class ExampleServiceBean { public void printShiporder(Object order){ System.out.println(order); } }
  • 5. Copyright 2014 by Intertech, Inc. public void serviceMethod(Message message){ // service code } public void serviceMethod(Foo foo){ // service code }
  • 6. Copyright 2014 by Intertech, Inc. public Foo serviceMethod(Message message){ // service code }
  • 7. Copyright 2014 by Intertech, Inc.