Skip to content

Backend in Java EE

Sven Loesekann edited this page Feb 5, 2018 · 6 revisions

The backend is the Java EE part of the application. It serves the Angular UI and provides the rest services.

The web module provides the rest services with the classes CrDetailResource/CrTableResource. The Jax-Rs Annotations are used to get the rest service. The DisableCaching Annotation sets the NoCache flag in the http header(Browser caching). To access the ejbs for the data they are injected in rest services.

The ejb modules provide the ejbs that access the data that is served. The data is accessed in 2 ways. On a Wildfly/Websphere Appservers the data is imported in the H2 in memory db and then accessed with Jpa. The data is in the import.sql and the setup is in the persistence.xml. The entity beans are in the model package and are converted in the Jaxb dtos with the Converter class. On other app servers the data is provided with a singleton bean that serves the data. The data is put in the Jaxb classes in the dto package. These dtos are converted by Jaxb in Json format for the browser.

Clone this wiki locally