YOUR FEEDBACK
The Cloud Wars - Is Guitar Hero a Cloud?
Roland Judas wrote: I am following the cloud discussions for some months n...


2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
TOP THREE LINKS YOU MUST CLICK ON


Systems Integration with Openadaptor
Business system integration with little or no custom programming

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
An adaptor is a convenient assembly of Openadaptor components that function together as a unit. Components may be broadly divided into:

  • Connectors that provide mechanisms by which an adaptor communicates with the external environment. Read connectors and write connectors, respectively, accept data from, and output data to, the environment in which the adaptor is operating.
  • Processors that provide mechanisms to filter, route, transform, and enrich data as it traverses an adaptor.
Openadaptor's connectors are components built to normalize communications between external systems and the adaptor. Read connectors and write connectors facilitate incoming and outgoing communications, respectively. The framework comes with several connectors available as standard, including connectors to SQL databases, JMS, flat files, Web services, RMI, HTTP, and JNDI. These can be configured via their JavaBeans properties. Also, either through implementing simple interfaces or extending existing connectors, users can easily add connectors of their own, enabling bespoke systems with non-standard interfaces to feed data into or collect data from Openadaptor. There is no assumption as to what platform the integrated systems run on (see Non-Java Based Systems Integration sidebar for details). Where appropriate, under the hood Openadaptor leverages other well-established open source projects to handle particular technologies, for example, Web services connectors will use the XFire embeddable SOAP framework and HTTP connectors will use the popular open source Jetty web server (see Resources).

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
When a standard Openadaptor JMX bean is added to an adaptor's configuration, individual components will be exposed as MBeans for remote access via a JMX console. This provides an easy way of inspecting a running adaptor's configuration. Information such as an adaptor's build details and runtime environment are readily available. The console also allows for the graceful stopping of running adaptors and dynamic adjustments of logging levels.

Transactions
Openadaptor implements a transaction management abstraction that uses JTA (Java Transaction API, a high-level API by Sun Microsystems that defines interfaces between a transaction manager and the parties involved in a distributed transaction system). Out-of-the-box Openadaptor uses the open source transaction manager JOTM (see Resources); this can be overridden by any other JTA-compliant transaction manager. It's also possible to delegate transaction management, via Spring transaction abstractions, to any enclosing container other than that which Openadaptor happens to be deployed to (including JEE containers).



Page 3 of 5   « previous page   next page »

About Kris Lachor
Kris Lachor is a senior software developer at Dresdner Kleinwort.

LATEST JAVA STORIES & POSTS
Saving Your Investment: Transforming J2EE applications into Web 2.0 using GWT
The pressure is on to keep pace with Web 2.0 entrants into the marketplace. Rewriting is expensive; adding AJAX widgets results in a complex, unmaintainable application. Both require you to hire scarce JavaScript developers. Google Web Toolkit -- the SDK that allows you to write
WSRP Really Works! - Part 2
A standard from OASIS called Web Services for Remote Portlets (WSRP) is used so portlets can be decoupled from a portal. In part one (JDJ, Volume. 13, issue 3) of this article, we introduced the relevant standards and specifications and then demonstrated WSRP's capabilities by co
Adobe's Kevin Lynch and Microsoft's Scott Guthrie to Keynote AJAX World RIA Conference & Expo
Two of the biggest launches in Rich Internet Application history took place in 2007/2008 when Adobe launched AIR 1.0 in February '08 and Microsoft launched Silverlight (September '07). At the 6th International AJAXWorld RIA Conference & Expo in October SYS-CON Events is delighted
Sun Expects Q4 Earnings Above Estimates
On Tuesday evening Sun issued a fourth-quarter guidance range largely above analysts' estimates. The company pre-announced that revenue for its fiscal fourth quarter ended June was $3.725 billion to $3.8 billion, with gross margin in the 44-45% range. Sun expects non-GAAP profits
Virtualization Conference Keynote Webcast Live on SYS-CON.TV
Brian Stevens, the Chief Technology Officer and Vice President of Engineering of Red Hat, delivered his Virtualization Keynote 'The Future of the Virtual Enterprise' at SYS-CON's Virtualization Conference & Expo 2007 West in San Francisco. 'Virtualization is the hottest subject
The Beauty of JavaScript
JavaScript is one of the most interesting and misunderstood programming languages in common use today. Most developers will go their entire careers without realizing its full potential. It's not often that you get a language that supports the feature set that JavaScript does, whi
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

SYS-CON FEATURED WHITEPAPERS

SPONSORED BY INFRAGISTICS
SOA in a JVM: OSGi Service Platform - A Dynamic Component System for Java
There are many forces that influence technological evolution. After a decade of building enterprise
AJAX and Enterprise RIA Tools - JSF, Flex, and JavaFX
2008 is going to be an important year for Rich Internet Applications. Most organizations are deliver
Final Voting Phase on OpenAjax Browser Wishlist
The OpenAjax Alliance is developing an Ajax industry wishlist for future browsers, using a dedicated
AJAX World RIA Conference News - Netflix UI Guru To Present on Crafting Rich Web Interfaces
In every field of design one of the first things students do is learn from the work of others. They
Infragistics Releases CTP UI Components for Microsoft Silverlight Beta 2
Infragistics announced the availability of two Community Technology Preview (CTP) User Interface (UI
Yahoo User Interface 2.5.2 Released
The YUI development team has released version 2.5.2; you can download the new release from SourceFor
ADS BY GOOGLE
BREAKING JAVA NEWS
Domark International, Inc. Completes Its Acquisition of Javaco, Inc.
Domark International, Inc. (OTCBB:DOMK) announced today that it has completed its acqui