Skip to main content
Skip table of contents

Apache Kafka Connector: Functions and Operationd

The adapter combines the functionality of the Apache Kafka Subscriber and Publisher and thus enables the following:

  • Subscribe to messages on a specific topic, unsubscribe or read the last message

  • Publish news on a specific Apache Kafka topic

Properties

Operation

Defines the operation executed by the adapter.

Possible values:

  • Publish: Publishes a message for a specific topic that is specified in an XML input.

Parameters

Adapter

Main adapter class (do not change!)

Possible values: de.softproject.x4.plugins.adapter.KafkaPublishAdapter: Main class (Default)

clientId

ID of the client with which the message is published

Possible values:

Client ID (integer)

The ID of the client is contained in the apachekafka-config.xml file.

During X4 Server startup, the subscriber clients are registered with their current workspace (e.g. 1) and projectName (e.g. ESBProject_1).

workspace

This parameter is set automatically with the information contained in the configuration file.

projectName

This parameter is set automatically with the information contained in the configuration file.

host

Host address of the broker

Possible values: Server host, e. g. localhost

port

Port number of the broker

Possible values: Port number, e.g. 29092

maxRequestsToBroker

The maxRequestToBroker parameter allows to define the maximum number of allowed messages that can be published without a response from the broker. This is necessary, because the clients of the .kafka configuration can be publisher and subscriber at the same time.

Possible values:

Integer, 10 (default)

Status values

1

The operation was executed successfully.

-1

The operation failed due to a technical error.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.