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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ libs/
.DS_Store
docs/_site
/.nb-gradle/
/secure-app/build/
/secure-session/bin/
/secure-session/build/
/tcp-routes-mqtt/bin/
/tcp-routes-mqtt/build/
.idea
7 changes: 7 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ links-vcap: http://docs.pivotal.io/solace-messaging/credentials.html
links-configuring-connection: http://docs.solace.com/Solace-Messaging-APIs/Configuring-Connection-T.htm
links-best-practices: http://docs.solace.com/Solace-Messaging-APIs/Best-Practices.htm
links-cf-cli: https://docs.cloudfoundry.org/cf-cli/
links-mqtt-pubsub-tutorial: http://dev.solace.com/get-started/mqtt-tutorials/publish-subscribe_mqtt/
links-service-instances: http://docs.pivotal.io/solace-messaging/service-instances.html
links-service-keys: http://docs.pivotal.io/solace-messaging/service-keys.html
links-installing: http://docs.pivotal.io/solace-messaging/installing.html
links-installing-tcp-routes: http://docs.pivotal.io/solace-messaging/installing.html#optional_tcp_routes
links-credentials-servicekey-example: http://docs.pivotal.io/solace-messaging/credentials.html#servicekey-example

#----------------------------------------------------
# Generally don't modify items below this point
url: "solacesamples.github.io" # the base hostname & protocol for your site
Expand Down
1 change: 1 addition & 0 deletions docs/_data/tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
- spring-cloud
- secure-session
- ldap
- tcp-routes-mqtt
409 changes: 409 additions & 0 deletions docs/_tutorials/tcp-routes-mqtt.md

Large diffs are not rendered by default.

Binary file added docs/images/empty-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tcp-routes-architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/resources/Diagrams.pptx
Binary file not shown.
4 changes: 2 additions & 2 deletions java-app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
ext {
springBootVersion = '1.3.3.RELEASE'
springBootVersion = '1.4.2.RELEASE'
solaceJCSMPVersion = '10.+'
}
repositories {
Expand All @@ -14,7 +14,7 @@ buildscript {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'org.springframework.boot'

jar {
baseName = 'solace-sample-java-app'
Expand Down
4 changes: 2 additions & 2 deletions secure-session/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
ext {
springBootVersion = '1.3.3.RELEASE'
springBootVersion = '1.4.2.RELEASE'
springCloudVersion = '1.2.3.RELEASE'
solaceJCSMPVersion = '10.+'
solaceCloudVersion = '1.0.+'
Expand All @@ -16,7 +16,7 @@ buildscript {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'org.springframework.boot'

jar {
baseName = 'solace-sample-secure-session'
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include "java-app", "secure-session", "spring-cloud"
include "java-app", "secure-session", "spring-cloud", "tcp-routes-mqtt"
4 changes: 2 additions & 2 deletions spring-cloud/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
ext {
springBootVersion = '1.3.3.RELEASE'
springBootVersion = '1.4.2.RELEASE'
springCloudVersion = '1.2.3.RELEASE'
solaceJCSMPVersion = '10.+'
solaceCloudVersion = '1.0.+'
Expand All @@ -16,7 +16,7 @@ buildscript {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'org.springframework.boot'

jar {
baseName = 'solace-sample-spring-cloud'
Expand Down
39 changes: 39 additions & 0 deletions tcp-routes-mqtt/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
buildscript {
ext {
springBootVersion = '1.4.2.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'

jar {
baseName = 'solace-sample-java-app'
version = ''
}

repositories {
mavenCentral()
mavenLocal()
}

dependencies {
compile("org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}")
compile("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
compile("org.json:json:20151123")

// Eclipse MQTT paho ( https://www.eclipse.org/paho/clients/java/ )
compile("org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.0.2")
}

task wrapper(type: Wrapper) {
gradleVersion = '2.14'
}
7 changes: 7 additions & 0 deletions tcp-routes-mqtt/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
applications:
- name: solace-sample-java-app
memory: 512M
path: build/libs/solace-sample-java-app.jar
services:
- solace-messaging-sample-instance
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package com.solace.samples.cloudfoundry.javaapp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application {

public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}

}
Loading