Secure Echo Sample

This application presents Echo sample. The user sends a text message, server concatenates text " (from your server)" to the message and sends it back. All data is secured with ssl.

Contents

The application utilizes endpoint org.glassfish.tyrus.sample.echo.https.EchoEndpoint to receive messages, add the text and send it back.

Running the Example

Run the example as follows: deploy:

$AS_MAIN/bin/asadmin start-domain
$AS_MAIN/bin/asadmin deploy --force ./target/*war

From a web browser, visit:

https://localhost:8181/sample-echo-https

Executing test via maven:

mvn clean test -Djavax.net.ssl.trustStore=$AS_MAIN/domains/domain1/config/cacerts.jks -Djavax.net.ssl.trustStorePassword=changeit -Dtyrus.test.host=localhost -DskipTests=false -Dtyrus.test.port=8181 -Djavax.net.debug=all

# Note: you can add -Djavax.net.debug=all for SSL related debug info.

Java client SSL properties can be configured separately to JVM configuration, see TYRUS-146. SSL Configuration is Tyrus proprietary API and might be changed in the future (current version directly depends on Grizzly API).