Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ What follows is a brief summary for people that want to dive straight into the c

The sample applications specify a dependency on a Solace Messaging service instance named `solace-messaging-sample-instance`. To create the required Solace messaging service instance, do the following:

cf create-service solace-messaging vmr-shared solace-messaging-sample-instance
cf create-service solace-messaging shared solace-messaging-sample-instance

### Building

Expand All @@ -38,7 +38,7 @@ For example in the following command line replace VERSION with the Solace Java A

To deploy the individual applications to Cloud Foundry:

1. cd to the project dir
1. cd to the project directory (`java-app` or `spring-cloud`)
1. `$ cf push`

## Java Application
Expand All @@ -47,7 +47,7 @@ application name: `solace-sample-java-app`

This application uses the Java library from http://www.JSON.org/ to parse the `VCAP_SERVICES` environment variable to determine the connection details for Solace messaging. For more details and example usage, see the walk through tutorial here:

* [Online Tutorial](https://solacesamples.github.io/solace-samples-cloudfoundry-java/docs/java-app/)
* [Online Tutorial](https://solacesamples.github.io/solace-samples-cloudfoundry-java/java-app/)

## Java Application using Spring Cloud Connector

Expand Down Expand Up @@ -84,7 +84,7 @@ Alternatively applications could search through the environment and discover mat

For more details and example usage, see the walk through tutorial here:

* [Online Tutorial](https://solacesamples.github.io/solace-samples-cloudfoundry-java/docs/spring-cloud/)
* [Online Tutorial](https://solacesamples.github.io/solace-samples-cloudfoundry-java/spring-cloud/)


## Try out the Applications
Expand Down
8 changes: 4 additions & 4 deletions docs/_tutorials/java-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ The Pivotal Cloud Foundry environment exposes any bound Service Instances in a J
{
"VCAP_SERVICES": {
"solace-messaging": [ {
"name": "solmessaging-shared-instance",
"name": "solace-messaging-sample-instance",
"label": "solace-messaging",
"plan": "VMR-shared",
"plan": "shared",
"tags": [
(...)
],
Expand Down Expand Up @@ -285,7 +285,7 @@ Then build the sample applications:
The sample application specifies a dependency on a service instance named `solace-messaging-sample-instance` in its manifiest (See `java-app/manifest.yml`). This must be an instance of the Solace Messaging Service which can be created with this command:

```
cf create-service solace-messaging vmr-shared solace-messaging-sample-instance
cf create-service solace-messaging shared solace-messaging-sample-instance
```

## Deploying
Expand Down Expand Up @@ -326,4 +326,4 @@ curl -X POST -H "Content-Type: application/json;charset=UTF-8" -d '{"topic": "te

# The message should have been asynchronously received by the application. Check that the message was indeed received:
curl -X GET http://$APP_URL/message
```
```
10 changes: 5 additions & 5 deletions docs/_tutorials/spring-cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ The Pivotal Cloud Foundry environment exposes any bound Service Instances in a J
{
"VCAP_SERVICES": {
"solace-messaging": [ {
"name": "solmessaging-shared-instance",
"name": "solace-messaging-sample-instance",
"label": "solace-messaging",
"plan": "VMR-shared",
"plan": "shared",
"tags": [
(...)
],
Expand All @@ -114,14 +114,14 @@ You can see the full structure of the Solace Messaging `VCAP_SERVICES` in the So

This sample use the [Spring Cloud Connectors](http://cloud.spring.io/spring-cloud-connectors/){:target="_blank"} project to retrieve the `VCAP_SERVICES` information in the form of a `ServiceInfo` object. For Solace Messaging in Cloud Foundry, there is a Spring Cloud Connectors extension in GitHub called [sl-spring-cloud-connectors](https://github.com/SolaceLabs/sl-spring-cloud-connectors). This library parses the `VCAP_SERVICES` environment variable and exposes the information by implementing the `ServiceInfo` interface in the `SolaceMessagingInfo` object.

The `init()` method retrieves the Solace Messaging Service Instance details for the service named `solace-messaging-demo-instance` as follows:
The `init()` method retrieves the Solace Messaging Service Instance details for the service named `solace-messaging-sample-instance` as follows:

```java
CloudFactory cloudFactory = new CloudFactory();
Cloud cloud = cloudFactory.getCloud();

SolaceMessagingInfo solaceMessagingServiceInfo = (SolaceMessagingInfo) cloud
.getServiceInfo("solace-messaging-demo-instance");
.getServiceInfo("solace-messaging-sample-instance");

if (solaceMessagingServiceInfo == null) {
trace.error("Did not find instance of 'solace-messaging' service");
Expand Down Expand Up @@ -259,7 +259,7 @@ Then build the sample applications:
The sample application specifies a dependency on a service instance named `solace-messaging-sample-instance` in its manifiest (See `spring-cloud/manifest.yml`). This must be an instance of the Solace Messaging Service which can be created with this command:

```
cf create-service solace-messaging vmr-shared solace-messaging-sample-instance
cf create-service solace-messaging shared solace-messaging-sample-instance
```

## Deploying
Expand Down
Binary file added docs/resources/Diagrams.pptx
Binary file not shown.