All docs This doc

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Sample configuration

Following is a sample kafka configuration that can consume messages using the specified topic or topics:


You can add the above inbound configuration via the Management Console as well:

Kafka inbound endpoint parameters

Following are descriptions of all possible parameters that you can set in a Kafka configuration:


For more information on Kafka configuration parameters, see the Kafka Documentation.

Enabling security for Kafka producers and consumers

For detailed information on how to enable TLS authentication for Kafka brokers, producers and consumers, see Enabling Security for the Kafka Connector and Inbound Endpoint.

Working with Kafka clients/producers

Kafka versions and above support TLS. Enabling security for Kafka producers and consumers is a matter of configuration. It does not require any code changes.


The parameters you need to specify to support TLS is the same for both producers and consumers. It is required to specify the security protocol as well as the truststore and keystore information since you are using mutual authentication:


Code Block
titlefault sequence
<sequence xmlns="" name="fault">
   <log level="full">
      <property name="MESSAGE" value="Executing default 'fault' sequence"/>
      <property xmlns:ns="http://org.apache.synapse/xsd"
      <property xmlns:ns="http://org.apache.synapse/xsd"

Testing the sample scenario

The ESB debug log will display an INFO message as follows after produce a message using console producer or the connector

Analyzing the output

The ESB debug log will display an INFO message as follows: