Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Upgraded to version 1.0.0 of the Solace cloud connector, added discussion of HA. - #17

Closed
damaru-inc wants to merge 38 commits into
SolaceSamples:masterfrom
SolaceDev:master
Closed

damaru-inc wants to merge 38 commits into
SolaceSamples:masterfrom
SolaceDev:master

Conversation

@damaru-inc

Copy link
Copy Markdown
Contributor

No description provided.

dickeyf and others added 30 commits September 28, 2016 11:08
…'s consistent with the Open Beta Solace Messaging Tile.
Updating samples so it refers to the new 'shared' service plan, so it…
Updated the service plan name in the Common Setup section to reflect the Open Beta plan name
Added the names of the project directories to the description to be more explicit.
Fixed the links for the tutorials
Updated the service instance name to align with the instructions for setting up the samples
Update a few reference to the service instance name to "solace-messaging-sample-instance".
This reverts commit 6ff051b.
Fixed the links for the tutorials
JCSMPChannelProperties cp = (JCSMPChannelProperties) properties
.getProperty(JCSMPProperties.CLIENT_CHANNEL_PROPERTIES);
cp.setReconnectRetries(-1); // try reconnecting forever
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use best practice recommendations here and not forever.

## High Availability

Solace provides the option to set up High Availability configurations, where each message router has a backup. To use this in Cloud Foundry you need to create a service of type medium-ha or large-ha, for example:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Point us to an architectural overview of HA in the PCF Tile docs with picture.


### CertificateException
>>>>>>> 2ddecceb096c1c345139b6b2f2bfb47b3348e923

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge issue. Please fix.

```

it is because the application could not validate the certificate it received from the Solace Message Router. This can happen when you install a self-signed certificate on the Solace Message Router, but didn't package it with the app, or didn't set INSTALL_CERTIFICATE to true in the sample.
it is because the application could not validate the certificate it received from the server. This can happen when you install a self-signed certificate on the router, but didn't package it with the app, or didn't set INSTALL_CERTIFICATE to true.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have reverted some text here which is not correct.

// one for the primary router and one for the backup.
JSONArray hostsArray = solaceCredentials.getJSONArray("smfHosts");
String host = hostsArray.getString(0);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks broken for HA.

final JCSMPProperties properties = new JCSMPProperties();
properties.setProperty(JCSMPProperties.HOST, solaceMessagingServiceInfo.getSmfTlsHost());
properties.setProperty(JCSMPProperties.HOST, solaceMessagingServiceInfo.getSmfHost());
properties.setProperty(JCSMPProperties.VPN_NAME, solaceMessagingServiceInfo.getMsgVpnName());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks broken for TLS.

// JCSMPChannelProperties channelProperties = (JCSMPChannelProperties) properties
// .getProperty(JCSMPProperties.CLIENT_CHANNEL_PROPERTIES);
// channelProperties.setReconnectRetries(-1);
try {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix so this follows best practices for reconnecting in an HA environment.

// .getProperty(JCSMPProperties.CLIENT_CHANNEL_PROPERTIES);
// channelProperties.setReconnectRetries(-1);

try {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow HA best practices.

@mdspielman

Copy link
Copy Markdown
Contributor

Please close this pull request, fix the commit history by rebasing and resubmit a clean pull request that addresses the issues found.

@damaru-inc damaru-inc closed this Mar 15, 2017
alyrasmy added a commit to alyrasmy/solace-samples-cloudfoundry-java that referenced this pull request May 23, 2018
mdspielman pushed a commit that referenced this pull request May 23, 2018
* Template update for new look and feel. (#5)

* Adopt a tile layout on the main docs pages. Adopt the improved CSS for the tutorial pages.
* Removed extra tutorial image no longer needed
* Added spacing on top of h2 headers. Used intro.html to keep generic intro text. Put tag line in config.yml for site summary

* Fixed hover effect issue (#6)

* changed hover effect on card to move up instead of down to match datago.io (#7)

* Removed round corners (#8)

* Add solace-cloud style header and footer. (#9)

* Add solace-cloud style header and footer.

* More padding for the tutorials

* Padding was missed.

* Adding favicon

* Update the api links for solace cloud. (#12)

* Update the api links for solace cloud.

* Arasmy/datago1066 (#13)

* Change solace cloud links to use the protocol of the site they're on. CSS files that referenced HTTP links. Fixed logo loading over HTTPS. Fixed cards when screen width is less than 993px.

* Added JavaRTO to 'Pick Another API' dropdown on dev.solace and solace cloud

* Fixed all link on config to use the protocol of the site they're on (#14)

* Updates to support adding tutorials directly into the Solace Developer Portal.

* Added header and footer to samples matching to the current one on dev.solace.com. Project now understands the Solace cloud delivery target vs dev portal so that we can deliver different CSS to Solace cloud vs dev portal.

* Added dev-solace css file

* Fixed footer to match dev solace website:

* Removed unused css stylesheet and imported ones that are not served on https. Change css import to use the same protocol of the site. Did some code clean Up. (#16)

* Fixed hover effect of the card overriding hover effect of the header menu on dev solace website (#17)

* Added support of passing in svg required dimensions as tutorial paramter (#18)

* Updated download link on header and footer of samples on dev solace website (#19)

* Rebranding samples for solace cloud website (#20)

* Rebranding samples for solace cloud website

* Rebranding of samples for the dev solace website

* Arasmy/rebranding (#21)

* Rebranding samples for solace cloud website

* Rebranding of samples for the dev solace website

* Made some css improvement to match the solace cloud and dev solace look

* changed hostname back to cloud.solace.com

* fixed hostname of the dev.solace.com

* Arasmy/rebranding (#22)

* Fixed issue with solace template link to github being hardcoded

* Arasmy/rebranding (#23)

* Rebranding samples for solace cloud website

* Rebranding of samples for the dev solace website

* Made some css improvement to match the solace cloud and dev solace look

* changed hostname back to cloud.solace.com

* fixed hostname of the dev.solace.com

* Fixed issue with solace template link to github being hardcoded

* fixed 2 minor bugs on the header and foot of the solace cloud sample (#24)

* Added back the intro to the sample
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants