Java yafra

Yafra edited this page Jan 14, 2016 · 9 revisions

Java example

The example shows usage of an ORM / SQL approach using Apache Cayenne, server side application using Apache CXF (WS/REST) and Apache Wicket, client side using Eclipse RCP. For the server side application Apache Tomcat and OpenEJB is used.

The principle architecture is:

Assuming you have a set of data to manage via different channels (fat client gui, web interfaces, web services, batch jobs, ...) this example application shows how to use an object relational model (ORM) approach using Apache Cayenne to create the application. Using an ORM provides already an abstraction to concrete databases. Apache Cayenne offers the ability to design and create the database. First ensure you have a Database up and running. You will create the components below in order to get the example application running. The application uses a set of communication protocols like RESTful, Web Services and EJB's between the client and the server. EJB's are restricted to Java, so it is not a favorite if you want to mix with other languages.

This example has a simple user/role design to manage access and a person table with a log table to manage a sort of very simple address book. It is based on the YafraDb database schema.

The learning curve to get a Java application should be less painful and you will have all flexibility still to choose in which direction you will need to focus. You can mix as well between Java and other languages, mainly done between client and server.


Apache Wicket Demo client

Development / technical information

Follow the guidelines for Java Development.

Build is done on Shippable. A Docker image will run latest build. Tests are done with JUnit. Codecoverage is done with JaCoCo.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.