Chapter 24. Providing a custom class to your business application in Business Central
To interact with Red Hat AMQ Streams, your business application requires a custom class in the following cases:
- You want to use a custom message format for sending or receiving messages using message events.
You want to use a custom serializer class for the
To use a custom class in your business application, use Business Central to upload the source code and configure the class.
Alternatively, if you deploy your application on SpringBoot, you can compile the classes separately and include them in the class path. In this case, do not complete this procedure.
Prepare Java source files with the required custom classes, for example,
MyCustomSerializer. Use the package name for your space and project, for example,
- In Business Central, enter your project and select the Settings → Dependencies tab.
Add any dependencies that your custom classes require, for example,
- 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.