webfirmframework for Java Experts
wffweb Configurations
Unlike other java ee frameworks, wffweb doesn't have any direct dependency over java ee classes. And, websocket implementation is different in different servers and i.e. not all servers follow JSR 356 specification. So, we have to configure wffweb if its server client communication feature needs to be used.
Configuration steps
There are three main configurations.- Configure websocket,
- set up a session listener and
- set up a
BrowserPage
. Of course, once we have configuredBrowserPage
, we have to expose it by any servlet/rest.
Configure websocket
There must be a websocket url set up with your server, that websocket url should not be used by others. It should be dedicated for wffweb. The websocket should support sending and receiving binary data because the server client communication is done via a binary protocol called WFF Binary Message. Checkout the configuration from this sample project.
Checkout these minimal production ready projects, embed tomcat production ready projects and GraalVM production ready projects.