Book Image

JBoss ESB Beginner's Guide

By : Len DiMaggio, Kevin Conner, Magesh Kumar B, Tom Cunningham
Book Image

JBoss ESB Beginner's Guide

By: Len DiMaggio, Kevin Conner, Magesh Kumar B, Tom Cunningham

Overview of this book

<p>You may often have wondered if there is a better way to integrate disparate applications than error-prone "glue code". JBoss ESB is just that solution as it can help solve common but difficult problems: writing new code that can be re-used and maintained, and integrating together new and old systems. JBoss ESB takes care of routing and processing service requests, leaving you to concentrate on your system's design and development.</p> <p>The JBoss ESB Beginner’s Guide gets you up and running quickly with JBoss ESB to build your own service-based applications, with enhanced communication and organization. You will learn how to create new applications or to integrate combinations of new and legacy applications. Detailed examples get you creating your own services, and deploying and administering them with other JBoss Open Source tools.</p> <p>Through hands-on examples, this book shows you how JBoss ESB enables you to design your system as services that are loosely coupled together by sending and receiving messages. Your services can execute your own custom code, or make use of JBoss ESB’s extensive set of out-of-the-box actions to perform specific tasks. The JBoss ESB Beginner’s Guide shows you the tools you can use to build re-usable and maintainable service-based applications with JBoss ESB, and teaches you by example how to use these tools.</p>
Table of Contents (18 chapters)
JBoss ESB
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Prologue—the need for an ESB
Preface
Index

Anatomy of a deployment


Before we take an in-depth look at one quickstart, it's important to understand the deployment requirements for any JBoss ESB service-based application. When we discussed the types of archives that are deployable to the JBoss AS servers in the first chapter, we briefly talked how in addition to WAR files (.war), EAR files (.ear), and SAR files (.sar), JBoss ESB added the .esb archive. Let's now take a look at just what has to be in a .esb archive, in order for it to be deployed.

Note that the quickstarts all create complete and deployable .esb archives. The base-build.xml file includes the definition of the "deploy" task and this creates the deployable .esb archives.

If you look inside a JBoss ESB .esb archive, you'll see a similar directory tree of files and directories:

Defining the providers, services, and listeners

The most important part of the configuration file for an .esb archive is jboss-esb.xml. Depending upon the complexity of your application, jboss-esb.xml...