This repository contains the sample application presented at EclipseCon EU 2016
To run this sample:
- Clone the sources
- Build (you need JDK8.x and Apache Maven) mvn clean install
- Install Tomcat 8
- Copy the built dist/tomcat/allinone/ROOT.war to the $CATALINA_HOME/webapps
- Add an user in the $CATALINA_HOME/conf/tomcat-users.xml with the role 'Everyone'
- Start Tomcat
- Access and Login to http://localhost:8080/services/standard
- Create WS Client in Chrome DevTools var logSocket = new WebSocket("ws://localhost:8080/log");
- Inspect Frames in Network/WS
- Access and Login from a second browser to http://localhost:8080/services/standard. You should see the "Hello from OSGi!" message in the frames tab
- Send a message from WS client and receive the echo logSocket.send("Hello from Client!");
###Enjoy