This simple example shows how make a CRUD with Angular and a Java EE Restful webservice.
- Create a database for your DataSource.
- Create a new DataSource in your server (i've use WildFly 9.1)
- Modify the persistence.xml file and change the DataSource name:
<jta-data-source>your datasource jndi name here</jta-data-source>
. - Compile and run.