Skip to content

danizzvargas/solace-simple-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solace simple client

A simple client for Solace.

Overview

Client to connect with Solace using publish-subscribe or request-reply patterns.

Getting started

It is necessary to have Apache Maven installed.

  1. Compile the project using Maven: mvn package
  2. Execute the generated .jar with dependencies: java -jar target/solace-client-jar-with-dependencies.jar

Additional configuration

Passing params in one line

Option can be passed on the same line the program is executed as follows:

java -jar target/solace-client-jar-with-dependencies.jar 0    # JCSMP is chosen
java -jar target/solace-client-jar-with-dependencies.jar 0 c  # JCSMP consumer is chosen
java -jar target/solace-client-jar-with-dependencies.jar 1 0  # Request/Reply requestor is chosen

Overwriting properties

Properties can be overwritten using the -D as follows:

java -jar \
    -Dsolace.topic_name='other.topic' \
    -Dsolace.host='tcps://my.custom.domain:55443' \
    -Dsolace.ssl.truststore='/path/to/my/truststore.jks' \
    -Dsolace.ssl.truststore.password='my-secure-pass' \
    target/solace-client-jar-with-dependencies.jar

References

The examples are based on Solace documentation:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages