WSO2 Business Process Server v3.1.0 Documentation

##### Overview

- Home
- Release Note
- WS-BPEL Compliance
- License

##### Downloads

- Releases

##### Installation Guide

- Installing WSO2 BPS

##### Quick Start Guide

- Modeling the process
- Deploying the process
- Testing the process

##### User Guide

- Deploying BPEL Processes
- Deploying Human Tasks
- Managing BPEL processes
- Managing BPEL process instances
- QoS for BPEL processes
- Securing BPEL processes
- Invoking secured partner services
- Versioning
- Management API

##### Human Task Guide

- Human Tasks Quick Start Guide
- Deploying HumanTasks
- Managing Tasks
- Developing a Human Task Artifact
- Human Task Management and Configuration
- Human Task Concepts

##### Administrator Guide

- External data sources Configuration
- Registry Configuration
- Events
- Unified Endpoints
- BPEL Extensions
- Transaction Factory Configuration
- Message Exchange Interceptors
- OpenJPA specific properties
- JMS Transport Configuration
- Process Instance Cleanup Tasks
- Process Hydration and Dehydration
- Enabling Peer-to-Peer(P2P) Communication
- Setting up a BPS Cluster

##### Best Practices

- Process Deployment Best Practices

##### Concepts

- Process Versioning
- Process instance events
- Partner links

##### WS-BPEL Extensions

- Activity Failure and Recovery
- Extension Activities and Extensible Assign Operations
- XPath Extensions
- Iterable ForEach
- Flexible Assigns
- BPEL4People Extension

##### Samples

- HelloWorld
- If-Else
- ForEach
- While
- Repeat Until
- Flow and Links
- Pick
- Synchronous and Asynchronous Service Invocations
- Fault Handling
- Split
- XslTransform
- Compensation Handler
- Event Handler

##### Resources

- FAQ
- External Articles
- Library
- Source Code

##### Community

- Forum
- Mailing Lists

##### Project Information

- Issue Tracking

# Carbon Data Sources

## Content

## Introduction

Carbon Data Source feature in Data Services Server can be used to create data sources which can be used inside data services directly through the name of the Carbon Data Source. The datasources created using Carbon Data Source feature will be persisted, and can be used when ever required.

## Create Carbon DataSource

To create the carbon data source click on the Data Sources menu item under the configuration.

Figure 1: Create Carbon Data Source menu

Click on 'Add Data Source' link in Data Sources page which will direct you to a page where you can enter the details for the data source.

You can select a datasource provider from the highlighted combo box. For the 'default' Data Source Provider, given connection properties Driver, URL, User Name and Password need to be entered.

Figure 2: Creating the Carbon Data Source

If you need to add a data source supported by an External Datasource Provider class such as com.mysql.jdbc.jdbc2.optional.MysqlXADataSource, select 'external' as the Data Source Provider. Then enter the name and value of connection properties by clicking 'Add Property'. Given below is an example data source of External Datasource Provider with eneterd values.

Figure 3: Creating the Carbon Data Source of External Data Source Provider

After entering the details you can test the connection by click on 'Test Connection' button on bottom of the page. Then click 'Add' to save the data source.

Once you have created the carbon data source, you can use it inside the data service. Select the 'Carbon Data Source' as the type of the data source in Add data source page in the data services wizard. Select the carbon data source name which you have created from the drop down list.

Figure 4: Creating the data source for Carbon Data Source

## Expose as a JNDI Data source

The adding data source can be exposed as a JNDI Data Source as well. Expand 'Expose as a JNDI data source' and enter the required values. If the data source will be using Data Source Factory, click on the checkbox 'Use Data Source Factory' and define the JNDI properties. Given below is an example JNDI configuration.

Figure 5: Expose as a JNDI Data source

When creating the data service select the data source type as 'JNDI' and enter the values to be used to connect to the previously created JNDI enabled data source.

Figure 6: Creating the data source for JNDI

## Defining Data Source Configuration Parameters

By expanding the 'Data Source Configuration Parameters' you can set the jdbc-pool properties for the data source.

Figure 7: Expanding Data Source Configuration Parameters

Data Source Configuration Parameters with default values is showing below.

Figure 8: Data Source Configuration Parameters