forked from apache/incubator-kie-docs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QE review changes for AMQ Streams integration (#137) (apache#3246)
* QE review changes for AMQ Streams integration * Further work on custom serializer classes * further QE correction on custom serializers * peer review fixes
- Loading branch information
Showing
8 changed files
with
69 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
doc-content/jbpm-docs/src/main/asciidoc/Kafka/custom-serializer-proc.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[id='custom-serializer-proc_{context}'] | ||
= Adding a custom serializer class for the `KafkaPublishMessages` custom task | ||
|
||
If you want to use a custom serializer class for the `KafkaPublishMessages` custom task, you must upload the source code and configure the class. | ||
|
||
.Procedure | ||
|
||
. Prepare a Java source file with the custom serializer class, for example, `MyCustomSerializer`. Use the package name for your space and project, for example, `com.myspace.test`. Also prepare the source files for any other required custom classes. | ||
. In {CENTRAL}, enter your project and select the *Settings* -> *Dependencies* tab. | ||
. Add any dependencies that your custom classes require, for example, `org.apache.kafka.kafka-clients`. | ||
. Select the *Assets* tab. | ||
. For each of the class source files, complete the following steps: | ||
.. Click *Import Asset*. | ||
.. In the *Please select a file to upload* field, select the location of the Java source file for the custom serializer class. | ||
.. Click *Ok* to upload the file. | ||
. Select the *Settings* -> *Deployments* -> *Work Item Handlers* tab. | ||
. In the `KafkaPublishMessages` line, modify the `Value` field to add the `classLoader` parameter. For example, the initial value of this field can be the following string: | ||
+ | ||
-- | ||
---- | ||
new org.jbpm.process.workitem.kafka.KafkaWorkItemHandler("127.0.0.1:9092", "jbpm", "com.myspace.test.MyCustomSerializer", "com.myspace.test.MyCustomSerializer") | ||
---- | ||
|
||
In this example, change the value to the following string: | ||
|
||
---- | ||
new org.jbpm.process.workitem.kafka.KafkaWorkItemHandler("127.0.0.1:9092", "jbpm", "com.myspace.test.MyCustomSerializer", "com.myspace.test.MyCustomSerializer", classLoader) | ||
---- | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters