Putting Java EE in the browser: JBoss web framework Errai at 3.0 status
Client-side tech undergoes tweaks to Remote Procedure Call mechanism and other improvements.
In this release, Errai, which leverages several Java EE technologies such as CDI (for dependency injection,) JPA (for offline mode and local storage,) and JAX-RS, for communicating with remote servers and other services, has had a lot of the work go into adding enhancements to its RPC (Remote Procedure Call) mechanism. The framework now has a swanky global exception handler, and RPC on the server is, as of now, handled asynchronously.
Another focus in Errai 3.0 is security. To this end, the team has implemented a role-implemented role-based access control and integrated PicketLink. The access control is regulated by the annotation@ RestrictedAccess.
Additionally, the Dev Mode for the framework is now available for WildFly 8 . Errai the add-on for JBoss Forge 2 has also been extended so the add-on and also Unit and integration tests can be generated. More information can be found here. For a fully detailed explanation of key new features in Errai 3.0 it’s also worth checking out these posts by the team on RPC enhancements, Errai Security, and a summary of smaller features, as well as a description of the Forge Addon.
Java EE in the browser
Errai JBoss is an open-source web framework that makes use of the GWT compiler. It is thus possible to reuse existing Java EE code in the client. At your disposal are server-side standard APIs such as CDI in the browser. For example, you can get an injection of CDI Errai from the client directly to the server-side event system. For the UI layout, Errai uses HTML5 – serve HTML files as UI templates, while the client-side logic is in Java classes.