Skip to content

Fix for Java demos, WSS issues 571, 972 & 973#14

Merged
dpwspoon merged 5 commits intokaazing:developfrom
zahariaca:fixForJavaDemosWSSProblem
Mar 14, 2017
Merged

Fix for Java demos, WSS issues 571, 972 & 973#14
dpwspoon merged 5 commits intokaazing:developfrom
zahariaca:fixForJavaDemosWSSProblem

Conversation

@zahariaca
Copy link
Contributor

@zahariaca zahariaca commented Feb 2, 2017

Fixed problem with connecting to wss in all 3 j2se demos, also cleaned up the projects, also added functionality for starting the program with a user inputed URI, username and password.

The JMS, AMQP and WS where not running OOTB because they where setup with a wss://sandbox.kaazing.net/* . This would cause a problem because it could not find the certificate in the Java cacert and the connection could never be established and the apps would either crash or just not function at all.
Also because the URI was hard coded in the app, it was not user friendly. I made changes to the app so that it will start with ws://sandbox.kaazing.net/* by default, but now the user can also give arguments to the programs to start them with their own URI, username and passwords. I decided to change the URI from WSS to WS because using actual SSL connection in java is hard, the user would have to add sandbox.kaazing.net certificate into their local java cacert. The user could still use a WSS if they would input it the WSS URI as a command line argument and if they would import the appropriate certificate in java cacert.
Added a guide for starting each app inside the appropriate README.md and in the actual program in case someone inputs the wrong number of command line arguments.
Also all the demos had all they're functionality inside the class constructor, so I changed that to better reflect Java best practices.

@zahariaca zahariaca changed the title Fix for demo WSS issues 571, 972 & 973 Fix for Java demo WSS issues 571, 972 & 973 Feb 8, 2017
@zahariaca zahariaca changed the title Fix for Java demo WSS issues 571, 972 & 973 Fix for Java demos, WSS issues 571, 972 & 973 Feb 8, 2017
@dpwspoon dpwspoon assigned robinzimmermann and unassigned dpwspoon Feb 9, 2017
@dpwspoon dpwspoon merged commit aaf0aa4 into kaazing:develop Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants