spring integration tutorial (part 7) - service activators

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

Upload: intertech-training

Post on 29-Nov-2014

404 views

Category:

Software


2 download

DESCRIPTION

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.

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.