
Designing, developing, and deploying integration solutions with JBoss Fuse Red Hat JBoss Fuse 6.1 Babak Mozaffari Consulting Software Engineer Systems Engineering Version 1.1 December 2014 100 East Davie Street Raleigh NC 27601 USA Phone: +1 919 754 3700 Phone: 888 733 4281 Fax: +1 919 754 3701 PO Box 13588 Research Triangle Park NC 27709 USA Linux is a registered tradeMark of Linus Torvalds. Red Hat, Red Hat Enterprise Linux, the ShadowMan logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are tradeMarks of Red Hat, Inc., registered in the United States and other countries. Apache, ServiceMix, CaMel, CXF, and ActiveMQ are tradeMarks of Apache Software Foundation. Any other naMes contained herein May be tradeMarks of their respective owners. All other tradeMarks referenced herein are the property of their respective owners. © 2014 by Red Hat, Inc. This Material May be distributed only subject to the terMs and conditions set forth in the Open Publication License, V1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/). The inforMation contained herein is subject to change without notice. Red Hat, Inc. shall not be liable for technical or editorial errors or oMissions contained herein. Distribution of Modified versions of this docuMent is prohibited without the explicit perMission of Red Hat Inc. Distribution of this work or derivative of this work in any standard (paper) book forM for coMMercial purposes is prohibited unless prior perMission is obtained froM Red Hat Inc. The GPG fingerprint of the [email protected] key is: CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E www.redhat.com ii [email protected] Comments and Feedback In the spirit of open source, we invite anyone to provide feedback and coMMents on any reference architectures. Although we review our papers internally, soMetiMes issues or typographical errors are encountered. Feedback allows us to not only iMprove the quality of the papers we produce, but allows the reader to provide their thoughts on potential iMproveMents and topic expansion to the papers. Feedback on the papers can be provided by eMailing [email protected]. Please refer to the title within the eMail. Staying In Touch Join us on soMe of the popular social Media sites where we keep our audience inforMed on new reference architectures as well as offer related inforMation on things we find interesting. Like us on Facebook: https://www.facebook.coM/rhrefarch Follow us on Twitter: https://twitter.coM/RedHatRefArch Plus us on Google+: https://plus.google.coM/114152126783830728030/ [email protected] III www.redhat.com Table of Contents 1 Executive SumMary......................................................................................... 1 2 JBoss Fuse 6.................................................................................................... 2 2.1 Overview............................................................................................................................ 2 2.2 Development Environment................................................................................................ 2 2.3 Dependency Injection........................................................................................................ 3 2.3.1 Spring XML.................................................................................................................. 3 2.3.2 Blueprint XML.............................................................................................................. 3 2.4 Fuse Fabric........................................................................................................................ 4 2.5 Components...................................................................................................................... 5 2.5.1 Apache Camel.............................................................................................................. 5 2.5.2 Apache CXF................................................................................................................. 6 2.5.3 Apache ActiveMQ......................................................................................................... 7 2.6 Deployment....................................................................................................................... 8 2.6.1 OSGi Bundle................................................................................................................ 8 2.6.2 Fuse Feature................................................................................................................ 9 2.6.3 Fabric Profile.............................................................................................................. 10 2.6.4 Other Options............................................................................................................. 10 3 Reference Architecture Environment.............................................................. 11 3.1 Overview.......................................................................................................................... 11 3.1.1 Order Fulfillment......................................................................................................... 11 3.2 Fabric Ensemble.............................................................................................................. 11 3.3 MySQL Database............................................................................................................ 12 4 Creating the Environment............................................................................... 13 4.1 Prerequisites.................................................................................................................... 13 4.2 Downloads....................................................................................................................... 13 4.3 Installation....................................................................................................................... 13 4.3.1 MySQL Database....................................................................................................... 13 4.3.2 JBoss Fuse................................................................................................................ 13 4.4 Configuration................................................................................................................... 14 4.4.1 MySQL Database....................................................................................................... 14 4.4.2 JBoss Fuse................................................................................................................ 15 4.5 Deployment..................................................................................................................... 15 4.6 Execution......................................................................................................................... 19 www.redhat.com iv [email protected] 4.6.1 Legacy File Drop........................................................................................................ 19 4.6.2 SOAP-based Web Service........................................................................................ 21 4.6.3 XML RESTful Service................................................................................................ 22 4.6.4 JSON RESTful Service.............................................................................................. 22 5 Design and Development............................................................................... 23 5.1 Overview.......................................................................................................................... 23 5.2 Integrated Development Environment............................................................................. 23 5.2.1 JBoss Developer Studio............................................................................................ 23 5.2.2 JBoss Fuse IDE plugins............................................................................................. 24 5.2.3 Creating a Fuse Project............................................................................................. 26 5.2.4 SaMple Project Review.............................................................................................. 27 5.2.5 SaMple Project Execution.......................................................................................... 35 5.3 Initial Project Iteration...................................................................................................... 37 5.3.1 Overview.................................................................................................................... 37 5.3.2 Project Structure........................................................................................................ 37 5.3.3 File Polling Project..................................................................................................... 37 5.3.4 Fuse Feature.............................................................................................................. 49 5.3.5 Aggregation POM...................................................................................................... 52 5.3.6 Fuse Fabric Deployment............................................................................................ 53 5.3.7 Fuse Fabric Ensemble............................................................................................... 56 5.4 Request Aggregation......................................................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages111 Page
-
File Size-