# Configuring ProducerTemplate

Available in...

* Cloud API Services Platform
* Cloud Data Fabric
* Data Fabric
* Data Services Platform
* ESB
* MDM Platform
* Real-Time Big Data Platform

## About this task

You can create ProducerTemplate to send message exchanges to endpoints using Java code. To do so:

## Procedure

1. In the test case design workspace, right-click the blank area and select Config ProducerTemplate in the context menu.

   ![Config ProducerTemplate option in the context menu.](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/studio_di_esb-route-test_case-config_producertemplate1.png)
2. The Config ProducerTemplate wizard opens. In the Code area, type in the Java code to implement the message exchange.

   ![Config ProducerTemplate wizard.](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/studio_di_esb-route-test_case-config_producertemplate2.png)

   You can click the Sample Code... button to see some examples. For more information about ProducerTemplate, you can click the ProducerTemplate link on the wizard to go to the Apache online documentation on ProducerTemplate.