Spring Integration

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Spring Integration - Presentation Transcript

    1. Spring Integration 1.0.X and whats coming in 2.0 Jonas Partner OpenCredo Principle Consultant Spring Integration Committer www.opencredo.com Tuesday, 20 October 2009
    2. Agenda • Enterprise Integration Patterns • Why Spring Integration • What Spring Integration provides • Whats new in SI 2.0 • Questions © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    3. Enterprise Integration Patterns • Book by Gregor Hohpe and Bobby Wolf • Documents – Styles of Integration database, file, messages and channels – Patterns • Splitter • Router • Transformer © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    4. Messages Generic package for data (the Message payload) that can be transported via channels Headers provide information to other components that consume from channels Sequence Number Headers Sequence Size ... Payload © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    5. Channels Channels deliver messages from producers to consumers Producer Channel Consumer © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    6. Why use messaging 1/2 • Louse coupling – Localise impact of changes – Improve separation of concerns • Easy Interception – Mediation – Filtering – Reroute © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    7. Why use messaging 2/2 • Performance – Less blocking since async – Efficient use of resources • Threads • DB Connections – More effective use of multi core processors © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    8. Agenda • Enterprise Integration Patterns • Why Spring Integration • What Spring Integration provides • Whats new in SI 2.0 • Questions © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    9. Why Spring Integration • Spring goodness in the integration space – Light weight, not a server – Non invasive POJO programming model – Builds on strong foundation, Spring • Reusable Enterprise Integration Pattern implementations • Message and Channel approach useful for non integration applications © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    10. Light Weight • Spring Integration != Spring ESB • Simply components in applications context – Wiring together through dependency injection – Channels beans, adapters beans ... – Follows application context lifecycle • Simple adoption © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    11. Agenda • Why Spring Integration • Enterprise Integration Patterns • Spring Integration provides – Enterprise Integration Patterns implementation – Message and Channel framework – Adapters • Whats new © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    12. Transformer @Transformer public Document convert(Document doc){ return convertToNewFormat(doc); } © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    13. Splitter @Splitter public List<Document> orderItems(Document doc){ return splitOrder(doc); } © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    14. Router @Router public String resolveDrinkChannel(Drink drink) { return (drink.isIced()) ? "coldDrinks" : "hotDrinks"; } © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    15. Chain <chain input-channel="input" output-channel="output"> <filter ref="someSelector" throw-exception-on-rejection="true"/> <header-enricher error-channel="customErrorChannel"> <header name="foo" value="bar"/> </header-enricher> <service-activator ref="someService" method="someMethod"/> </chain> © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    16. Agenda • Why Spring Integration • Enterprise Integration Patterns • Spring Integration provides – Enterprise Integration Patterns implementation – Message and Channel framework – Adapters • Whats new © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    17. Adapter © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    18. Current Adapters • JMS • RMI • Http Invoker • HTTP • File • Spring Web Services • Mail Spring Application Events © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    19. Agenda • Why Spring Integration • Enterprise Integration Patterns • Spring Integration provides – Enterprise Integration Patterns implementation – Message and Channel framework – Adapters • Whats new in 2.0 © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    20. Spring Integration 2.0 1/2 • Due late this year – JDBC – Twitter?? – Suggestions/requests/contributions • Improved testing framework • Spring 3.0 expression language © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    21. Spring Integration 2.0 2/2 • XQuery • JMS Backed channel (not an adapter) • Other patterns – Claim Check – Scatter Gather – Process Manager.... © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    22. Also Spring Extensions • Home to FTP adapters and other contributions – http://www.springsource.org/extensions/ se-sia • Spring Integration .Net – http://www.springsource.org/extensions/ se-springintegration-net – Nearly a port of java.util.concurrent http://www.springsource.org/extensions/ se-threading-net © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    23. Questions and the usual book plug © 2009 Open Credo Ltd www.opencredo.com Tuesday, 20 October 2009
    SlideShare Zeitgeist 2009

    + Andrew ChalkleyAndrew Chalkley Nominate

    custom

    219 views, 0 favs, 1 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 219
      • 203 on SlideShare
      • 16 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 7
    Most viewed embeds
    • 16 views on http://www.cakesolutions.net

    more

    All embeds
    • 16 views on http://www.cakesolutions.net

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories