Commissioning an Application in Windows
Starting Producer
- Ensure that the mappings between the host names and service IP addresses of all the hosts in the remote cluster are configured in the local hosts file.
- Run Producer.java on IntelliJ IDEA, as shown in Figure 1.
- The console window appears. You can find that Producer is sending messages to the default topic (example-metric1). One piece of log is printed when every 10 messages are sent. Figure 2 Proceducer running window
Starting Consumer
- Run the Consumer.java file.
- Click Run. In the console window that appears, you can find that Producer starts after Consumer successfully starts, and then you can view messages received in real time. Figure 3 Consumer.java running window
Starting Other Code Samples
The procedures for starting other code samples are similar to the procedures for starting Producer and Consumer in this section.
Last Article: Application Commissioning
Next Article: Commissioning an Application in Linux

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.