Pivotal Cloud Foundry Samples
Here, you will find walk-through sample applications that will help you get started with Solace PubSub+ for Pivotal Cloud Foundry (PCF).
Solace PubSub+ messaging for PCF provides high-performance, robust, enterprise-grade messaging technology over a wide variety of open protocols (including JMS, MQTT, REST, WebSocket), qualities of service (best-effort, guaranteed, transactions), and messaging patterns (publish/subscribe, request/reply, streaming, fan-in/fan-out).
Solace PubSub+ message brokers support MQTT, which enable devices and applications running outside of Cloud Foundry to connect with Solace Messaging services running in Cloud Foundry by using the TCP Routes feature. This feature provides endpoints that allow external connections. For more information, refer to the MQTT Tutorial.The Solace Messaging Cloud Foundry tile documentation describes the TCP Routes feature.
Solace Messaging supports High Availability (HA) configurations, where each message broker is assigned a backup that takes over in case of failures. Details about how to use this feature are in the Java Application tutorial. Be sure to read the API Best Practices and Configuring Connection Time-Outs and Retries documents.
If you are new to Solace Messaging in PCF, here are a few links to get you started:
- GitHub code for the Getting Started samples
- How to download Solace Messaging for PCF
- The Solace Messaging in PCF Documentation
- A demo application using Solace Messaging for PCF
- Best Practices for developing applications that use Solace Messaging
- Configuring Connection Time-Outs and Retries
The goal of these sample applications is to illustrate various ways of consuming the `VCAP_SERVICES` environment variable from a Solace Messaging Cloud Foundry service instance.
A Java Application showing how to consume the VCAP_SERVICES environment variable.
A simple application showing how to consume the VCAP_SERVICES using Spring Cloud Connectors.
Spring Cloud Auto-Config Java
Consume Solace PubSub+ messaging as a Service provided by Solace Spring Java Auto-Configuration.
Spring Cloud Auto-Config JMS
Consume Solace PubSub+ messaging as a Service provided by Solace Spring JMS Auto-Configuration.
Spring Cloud Auto-Config JNDI
Consume Solace PubSub+ messaging as a Service provided by Solace Spring JMS Auto-Configuration using JNDI.
A sample showing how to connect with the Solace PubSub+ messaging service using Transport Level Security
How to setup an LDAP Server to work with Solace PubSub+ message brokers and some examples on how LDAP auth works.
TCP Routes for IoT - MQTT Java App
A simple application showing how to consume a SERVICE KEY for Solace PubSub+ messaging when using TCP Routes.
Consume Solace PubSub+ as a Service provided by Solace Spring Java Auto-Configuration.