What is Message Bridge?

Message Bridge compiles schemas into Java classes during design and binds specific XML documents to specific Java objects at runtime, as shown in Figure 1-3.

Figure 1-3: Message Bridge design and runtime

Message Bridge helps developers build applications that make use of structured messages, such as XML documents or messages exchanged between enterprise systems or business partners. Message Bridge improves developer productivity by modeling the schema of a document or message as Java classes. When used in an application, these classes provide an intuitive way to access and manipulate message content in memory, and to read and write messages to and from the network.

Message Bridge provides a schema compiler that binds a document or message schema into Java classes. Each class provides access to the data content of the corresponding schema component through accessor (get) and mutator (set) methods similar to those used in standard JavaBeans. Because these classes model the data content of a document or message instance, we refer to them as DataBeans. In short, a DataBean is a Java binding of a particular schema.