Java API

The Solace Messaging API for Java (also referred to as JCSMP) is a 100% pure Java implementation that delivers high message throughput and reasonably low latency.

Message Exchange Patterns

The Java API supports all common message exchange patterns.

  • Publish / Subscribe
  • Point-to-Point
  • Request / Reply

Features

The Java API supports all common API features.

  • Connection management to Solace PubSub+ event brokers
  • Addition and removal of topic subscriptions
  • Sending and receiving messages Direct and Guaranteed messages
  • Structured data types that do not rely on a specific architecture or programming language
  • Extensive support for logging and customizing through property parameters
  • Request / Reply messaging support Session Transactions
  • PubSub+ Cache Client API support
  • Queue browsing
  • Maven support
  • Message Replay

The Java API does not currently support the following features:

  • Topic dispatch
  • XA Transactions

Get Started

These tutorials will introduce you to how to develop applications using the Solace Messaging Java API for common messaging requirements, and they will get you up-to-speed and sending messages with Solace PubSub+ as quickly as possible. They cover pub/sub, message persistence, request/reply, and more.

There are three ways you can get started:

  1. If you have Solace PubSub+ event brokers already deployed, obtain the hostname, or IP address, of an event broker to test against, a username and password to access it, and a Message VPN in which you can produce and consume messages.
  2. You can go through an Initial Set Up of a software event broker.
  3. You can spin up Solace PubSub+ Cloud.

But, before you begin, consider watching this video where Solace Developer Advocate Aaron Lee demonstrates how quickly you can get started with Solace's Java Samples.

 

Start Tutorials

Java API Reference

Click below to access the API developer reference for the Solace Java API.