You can use the Java SDK to send and subscribe to messages over HTTP. This topic describes the methods for sending and subscribing to messages by using the Java SDK and provides the links that point to related sample code.
Before performing any operations, see Release notes to learn how to use Message Queue for Apache RocketMQ (RocketMQ) SDKs of multiple languages over HTTP, and the features supported in each version.
See README to learn how to prepare the environment for the Java SDK. For more information, see README.
Send and subscribe to messages
You can use the Java SDK to send and subscribe to messages over HTTP. The following table lists the message types and the latest code links.