![]() |
Building solutions | Table of contents | Indexes | Internet Electronic Data Interchange with XML and JAVA | ![]() |
|||
Constructing distributed applications using Xbeans |
| Martin, Bruce |
| Bruce Martin |
| Software Guru |
California ![]() San Mateo ![]() USA ![]() jGuru | jGuru,
2755 Campus Drive, Suite 130 San Mateo California 94403 USA Phone: (650) 577-8101 Fax: (650) 577-8102 email: martin@jguru.com web site: www.jguru.com |
| Biography |
| Abstract |
Introduction |
DTDs, Document Type Definitions ![]() | At the same time, standards groups representing almost every human endeavor are agreeing upon XMLDTDs for exchanging data. One of many examples is the International Press Telecommunications Council" These vertical market standards will allow diverse applications to exchange data in unforeseen ways. |
DOM, Document Object Model ![]() | To the end of accessing XML data from different programming languages, the W3C has defined theDOM standard . The DOM is an application programmer's interface to XML data. It is available from many programming languages, including Java. Thus, Java programs can access XML data via the DOM API. |
Xbeans |
| As illustrated in , an Xbean consumes XML as input, processes it in some fashion and then produces XML as output. |
|
|
|
Applications of Xbeans |
| We now illustrate the power of the Xbean paradigm with a few distributed application examples: |
Data exchange between enterprises |
| Enterprises want to exchange data. Industry specific standards efforts are defining XML Data Type Definitions (DTDs). These DTDs represent the semantics and format of the data to be exchanged. |
| illustrates a simple data exchange between enterprises using Xbeans. The blue boxes represent different Xbeans. |
|
Purchase order |
Distributed work flow |
| With a rich set of configured Xbeans that represent control flow and interact with users, Xbeans can be configured to create distributed work flow applications. |
Web news channels |
Xbean interfaces |
| TheDOMListener interface, as given in , defines a single operation,documentReady (DOMEvent evt) , for passing the XML document to the Xbean. |
|
|
Source and sink Xbeans |
| As illustrated in , an Xbean thatimplements theDOMSource interface anduses theDOMListener interface is called a "source Xbean", that is it is a source of XML data. |
|
| An Xbean that implements theDOMListener interface is called a "sink Xbean", that is it receives XML data. |
|
| For maximum flexibility, most Xbeans are both sources and sinks of XML data. (See .) |
Configuring Xbeans into distributed applications |
Generic Xbeans |
| Generic Xbeans process any kind of XML document using the DOM API. Many generic Xbeans are configured using the standard Java Bean mechanisms of property editors and customizers. |
Document type specific Xbeans |
Xbeans.org |
| Xbean.org is looking for contributors of the Xbeans outlined here as well asany useful Xbean imaginable. |
| Bibliography |
|
|
|
|
|
|
|
|
|
|
|
|
|
![]() |
Building solutions | Table of contents | Indexes | Internet Electronic Data Interchange with XML and JAVA | ![]() | |||