Configuring the Object-to-XML transformer

The Object-to-XML transformer is used to transform a Java object to XML data. In this example, you will see how to retrieve data from the database and how to store data in a particular XML file through the Object-to-XML transformer. Here, you will use the table from the previous example. We will use three components: the Database Endpoint, the Object-to-XML transformer, and the File Outbound Endpoint.

Getting ready

In this section, you will see how to configure the Database Endpoint in Mule Studio.

  1. Open Mule Studio and enter a name for the workspace as shown in the following screenshot:
    Getting ready
  2. To create a new project, ...

Get Mule ESB Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.