In this tutorial, you will learn how to build a simple chat browser application. At the end of the tutorial, the application will be able to send and receive messages via a direct topic subscription. Specifically, you will learn how to build the application, connect it to Solace PubSub+ Cloud, and start publishing/receiving messages.
git clone https://github.com/SolaceTraining/fundamentals-of-solace-dev.git
git checkout remotes/origin/developer-exercise-1
mvn clean install
to compile the application.mvn spring-boot:run
to run the Web server. Make sure you are in the \web-app-server directory.You have created your application. However, it needs to connect to the PubSub+ Cloud service for it to work.
mvn spring-boot:run
to run the application.localhost:8081
to view the application.Though the application is connected to your PubSub+ Cloud service, it cannot yet publish and subscribe. In this section, you will modify the sample code to publish the messages to the Solace broker so that people who connect to it can receive them.
You have just created a chat application with Solace and sent and received messages via it. In the next part, you will learn how to modify the sample code so that the application consumes messages from a queue instead of via a direct topic subscription.