|
|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SYS-CON.TV |
TOP THREE LINKS YOU MUST CLICK ON FrontPage Feature
Systems Integration with Openadaptor
Business system integration with little or no custom programming
By: Kris Lachor
Apr. 22, 2008 11:00 AM
Digg This!
Page 3 of 5
« previous page
next page »
System integrators can look to Openadaptor integration toolkit to provide ease-of-use and reliability; Openadaptor aspires to be a viable alternative to commercial solutions that may require considerable upfront licensing fees as well as to other, possibly overwhelming, open source products. Let's now look at what an adaptor is in more detail.
Architectural Overview
Processors are components for the manipulation of records. A given processor takes a record as input and generates zero or more records as output. Openadaptor comes with a number of ready-to-use processors, many of which act upon objects called ordered maps or XML (explained in the Internal Data Representation sidebar). The primary types of processors implement the IDataProcessor interface; these processors are the workhorse of Openadaptor. Other types of processors can manipulate records by enriching them with more data from an external resource, such as a database or an XML document. These are known as enrichment processors and implement the IEnrichmentProcessor interface. A subgroup of data processors is convertors, whose only purpose is to change the format of the data rather than the data itself. Convertors could, for example change an ordered map into an XML document or a fixed-width delimited String to an ordered map. Bespoke business logic can be implemented either with standard processors that support scripting languages such as JavaScript, or by implementing new Java processors. This may be very useful, especially for implementing more complex algorithms or for when the desired business logic has already been implemented and packaged up as a Java archive. Script processors have the option of invoking Java methods (say from Java archives) to access such algorithms. Figure 1 shows four key interfaces. Most Openadaptor users shouldn't need to resort to writing custom Java code as the set of connectors and processors shipped with Openadaptor distribution is rich and comprehensive. Developers who elect to write custom Java code may do that either by direct implementation of one of these interfaces, or through the extension of Openadaptor components that most closely match their criteria. These interfaces represent primary component types that may be arranged in a processing pipeline to form an adaptor. Adaptors are typically assembled using the Spring dependency injection mechanism by creating an XML configuration that defines connectors, processors, and linkages between them. The framework also permits configuration values to be specified as placeholders, allowing the substitution of the actual runtime values separately. This is extremely useful for deploying from test to production environments. A processing pipeline that reads from JMS and outputs to a delimited string file might be configured as a JMS read connector linked to a processor that modifies the data in some way and which itself is linked to a file write connector. A JMS message would be turned into an Openadaptor message and make its way through Openadaptor until it reaches the last component. In its simplest form, an adaptor would consist of two components (see Figure 2): a read connector directly linked to a write connector: More often, however, the adaptor would also contain a data processor. In a more complex form, as depicted in Figure 3, an adaptor could implement a fan-out to process the same message through two different branches (messages 3a and 3b onwards in Figure 3) that write to distinct external resources. It would typically have data format convertors and an exception handler (for more information on exception handling see the Exception Handling sidebar). Finally, it may even use an enrichment processor to enrich messages with relevant data from an external resource. Step by step, each component in the pipeline will take the output of the preceding component, perform an operation on it, and pass the result to its successor.
JMX
Transactions Page 3 of 5 « previous page next page » LATEST JAVA STORIES & POSTS
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK SPONSORED BY INFRAGISTICS
BREAKING JAVA NEWS
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||