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

Creating service definitions with the JBDS ESB editor


The "heart" of the configuration of a JBoss ESB based application is the set of services and providers that you define in the application's jboss-esb.xml file. If your application makes use of multiple services (and their actions and listeners) and providers, then this file can grow quite large and can be troublesome to maintain by editing its raw XML. JBDS, however, includes a GUI based ESB editor that makes it much easier to create and maintain an application's configuration in the jboss-esb.xml file.

To invoke the editor, simply double-click on an application's jboss-esb.xml file in JBDS. The editor looks like this (note that we'll use the "helloworld" quickstart's jboss-esb.xml file as an example):

The major configuration elements of a JBoss ESB application are its providers and its services. To define a new service, the editor presents you with a drop-down list of all the supported provider types:

A service performs its tasks through the actions that you define. For out-of-the-box actions implemented by JBoss ESB, the editor presents you with a drop-down list of the full set of supported actions:

You can edit the properties for these OOTB actions in the editor. For example:

Custom actions that you create still require you to write the custom code for the actions. The ESB editor enables you to view and modify the action properties. For example: