Your SlideShare is downloading. ×
Spring Integration Part 1 - Understanding Channels
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Spring Integration Part 1 - Understanding Channels

3,192
views

Published on

This is the first part of an eight part on-line tutorial that will introduce you to Spring Integration and its major components. This session will introduce you at a high level to the main components …

This is the first part of an eight part on-line tutorial that will introduce you to Spring Integration and its major components. This session will introduce you at a high level to the main components of a Spring Integration application: message endpoints, messages, and channels.

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,192
On Slideshare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
13
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1.                            Copyright  ©  2014  by  Intertech,  Inc. Express  Spring  Integration Understanding  Channels The  labs  and  additional  learning  tools  for  this  tutorial  can  be  found  on:   Intertech’s  Blog
  • 2.                            Copyright  ©  2014  by  Intertech,  Inc. Spring  Integration Producer   (Sender) Consumer   (Receiver) Pipe Message The  main  components
  • 3.                            Copyright  ©  2014  by  Intertech,  Inc. Consumer   (Receiver)   -­‐/Producer   (Sender) Spring  Integration  Applications Producer   (Sender) Consumer   (Receiver) Pipe Producer   (Sender) Pipe Pipe Consumer   (Receiver)   -­‐/Producer   (Sender) Pipe Consumer   (Receiver) Message transformfilter
  • 4.                            Copyright  ©  2014  by  Intertech,  Inc. Messages                    Message Header Payload
  • 5.                            Copyright  ©  2014  by  Intertech,  Inc. Message  Endpoints • Adapters  (connect  your  channel  to  some  other  system)   • Filter  (remove  some  messages  from  channels  based  on  header,   content,  etc.)   • Transformer  (convert  a  message  content  or  structure)   • Enricher  (add  content  to  the  message  header  or  payload)   • Service  activator  (invoke  service  operations  based  on  the  arrival  of  a   message)   • Gateway  (connect  your  channels  without  SI  coupling)
  • 6.                            Copyright  ©  2014  by  Intertech,  Inc. Message  Channels • Two  general  classifications  of  message  channels   • Pollable  Channel   • Subscribable  Channel   • While  there  are  many  subtypes,  they  all  implement  at  least  one  of   these  SI  channel  interfaces   • see  http://docs.spring.io/spring-­‐integration/reference/html/messaging-­‐ channels-­‐section.html
  • 7.                            Copyright  ©  2014  by  Intertech,  Inc. Pollable  Channels • May  buffer  its  messages     • Requires  a  queue  to  hold  the  messages   • The  queue  has  a  designated  capacity   • Waits  for  the  consumer  to  get  the  messages   • Consumers  actively  poll  to  receive  messages   • Typically  a  point-­‐to-­‐point  channel   • Only  one  receiver  of  a  message  in  the  channel   • Usually  used  for  sending  information  or  “document”  messages   between  endpoints
  • 8.                            Copyright  ©  2014  by  Intertech,  Inc. Subscribable • Allows  multiple  subscribers  (or  consumers)  to  register  for  its   messages.   • Messages  are  delivered  to  all  registered  subscribers  on  message  arrival   • It  has  to  manage  a  list  or  registry  of  subscribers.   • Doesn’t  buffer  its  messages   • Usually  used  for  “event”  messages   • Notifying  the  subscribers  that  something  happened  and  to  take   appropriate  action.
  • 9.                            Copyright  ©  2014  by  Intertech,  Inc. You  are  ready  to  tackle  Lab  1 • Lab  1  is  about  getting  to  know  and  understand  Spring  Integration   channels   • You  also  learn  how  to  create  and  configure  a  typical  Spring   Integration  application  in  Eclipse  (using  Maven)   ! If  you’re  viewing  this  presentation  on  SlideShare  you  can  click  the   link  below  to  go  to  the  page  with  links  to  the  first  lab:   Lab  1-­‐Understanding  Channels