> #### How to create a POJO data source

> 1 | In Data Explorer, right-click Data Sources, then choose New Data Source.

> 2 | In New Data Source, specify the following information:

> 1 | Select POJO Data Source from the list of data source types.

> 2 | In Data Source Name, type a name for the data source. Choose Next.

> 3 | In New POJO Data Source Profile, shown in Figure 2-26, specify the properties to connect to the POJO.

> Figure 2-26 POJO data source properties

> 1 | In Runtime Properties, specify the location of the POJO classes that define the run time properties of the data source. Click the arrow icon next to Add Jars, then select either Relative path or Absolute path.

> | Select Relative path to specify a path that is relative to the folder designated as the resource folder. By default, BIRT uses the current project folder as the resource folder.

> In Select Jars/Zips, which displays the contents of the resource folder, as shown in Figure 2-27, select the JAR file, then choose OK.

> Figure 2-27 Select Jars/Zips displaying the contents of the resource folder

> | Select Absolute path to specify the full path in the file system. Browse the file system and select the JAR file, then choose OK.

> 2 | In Design Time Properties, specify the location of the POJO classes that define the design time properties of the data source. The data set editor uses this information to list the get methods, which you select to define the column mappings for the POJO data set. Use the instructions in the previous step to specify either a relative path or absolute path to the POJO classes.

> 4 | Choose Test Connection to ensure that the connection information is correct. If Test Connection returns an error, repeat the preceding steps to correct the error.

> 5 | Choose Finish. The new POJO data source appears under Data Sources in Data Explorer.

(c) Copyright Actuate Corporation 2013