HTTPS SSH

Wicket + Spring & WebSockets

An example project for demonstration of:

  • The Wicket and Spring co-existence.
  • Adding a "reactive-like" behavior to Wicket via WebSockets.

How to run the Wicket +Spring example

  1. Clone the repository.
  2. Run the command gradle tomcatRun (gradle jettyRun works as well).
  3. Open a browser on URL http://localhost:4040/deep-thought to see the Wicket stuff.
  4. Open a browser on URL http://localhost:4040/deep-thought/question to see the Spring stuff.
  5. Browse the source code.

How to run the Wicket & WebSockets example

  1. Clone the repository.
  2. Run the command gradle tomcatRun (no Jetty!).
  3. Open a browser on URL http://localhost:4040/deep-thought to see a page without data.
  4. Open SoapUI project from src/test/soapui.
  5. Run any request from the putPerson method.
  6. Check the browser with newly loaded data.
  7. Check the log in the console.
  8. Browse the source code.

What if you're sitting behind a proxy?

You need to modify (or create) your $HOME/.gradle/gradle.properties in following way:

systemProp.http.proxyHost=<your-proxy-host>
systemProp.http.proxyPort=<your-proxy-port>
systemProp.http.nonProxyHosts=localhost|<other-non-proxy-host>
systemProp.https.proxyHost=<your-proxy-host>
systemProp.https.proxyPort=<your-proxy-port>
systemProp.https.nonProxyHosts=localhost|<other-non-proxy-host>

License

The blog-wicket-spring-rest project is published under BSD 3-Clause license.