Sample applications that can be used to demonstrate and manually verify Spring Pulsar functionality.
To build the applications simply execute the following command from the spring-pulsar-sample-apps
directory:
../gradlew clean build
-
The components have all been built by following the Building steps.
-
Apache Pulsar standalone cluster available at
pulsar://localhost:6650
Tip
|
Some samples (those w/ a compose.yaml file) include Docker Compose support and will automatically start the Pulsar cluster. For the other sample apps the included Pulsar tools can be used to easily start a standalone cluster locally on the required coordinates.
|
Make sure the above pre-requisites are satisfied.
To run the app on the command line open a terminal and navigate to the desired sample application directory (underneath spring-pulsar-sample-apps
) and execute the following command:
../../gradlew bootRun
Tip
|
When running on the command line the add-opens JVM args are automatically configured which prevents annoying exceptions at runtime.
|