Lightning talk by Navin Surtani (Consultant, C2B2 ) presented at the London JBoss User Group event on the 14th of January 2015.
For more information see Navin's blog post 'Clustering Websockets on WildFly' here: http://blog.c2b2.co.uk/2014/12/clustering-websockets-on-wildfly.html
2. What are we talking about?
• Defining things
• Front-end setup
• Back-end setup
• Demo (hopefully it works!)
3. Jargon
• WebSockets:
• “WebSockets is an advanced technology that makes it
possible to open an interactive communication session
between the user's browser and a server”
• One of the new features in Java EE7
• WildFly:
• Open source Java EE7 compliant application server
4. Front-end
• Web-form:
• Enter a number, the square root of which we will
calculate.
• JavaScript:
• Creates WS object
• Reads form input and sends message to back-end
• Displays result returned from back-end
5. Back-end
• @ServerEndpoint
• Class-level annotation specifying the endpoint name
• @OnMessage
• Method-level annotation stating which method to call
• Deals with message from client
• Returns information to the client