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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple demo application to show how to work with the default technologies of JavaEE version 7.
3
+
A simple demo application to show how to work with the default technologies of JavaEE version 8. This conceptual architecture makes use of the following technologies:
4
4
5
-
This conceptual architecture makes use of the following technologies:
- Apache Delta Spike JPA and Data Module for database querying and repositories management
13
10
- Apache Shiro 1.4 through [ShiroEE](https://github.com/arthurgregorio/shiro-ee) for Security with LDAP/AD and database authentication support
14
-
- Maven for building and dependency management
15
-
- Flyway for database migrations
16
-
17
-
The extras:
18
-
11
+
- Maven for dependency management and build
12
+
- Flyway 5.2 for database migrations
19
13
- Database audit with Hibernate Envers 5
20
14
- Hibernate Validator for Bean Validation
21
-
- Omnifaces and PrimefacesExt for JSF utilities
22
-
- Jackson for JSON support
23
-
- Lombok, Google Guava and Coomons Lang for class level utilities
15
+
- Omnifaces 3 and PrimefacesExt for JSF utilities
16
+
- Jackson for JSON support
17
+
- Lombok, Google Guava and Apache Commons-lang for class level utilities
24
18
- Mustache for e-mail templating
19
+
- Webservices with JAX-RS (RestEasy)
25
20
26
-
The demo makes use of a custom implementation of [AdminLTE](https://adminlte.io/) integrated with Boostrap 3 and Primefaces for a better UI with modern features and mobile support.
21
+
The demo makes use of a custom implementation of [AdminLTE](https://adminlte.io/) integrated with Boostrap 3 and Primefaces for a better UI, modern features and mobile support.
27
22
28
-
And also, inside the application you can find (already functional) a simple CRUD of Users and User Groups with permission based authentication and LDAP/AD integration with local bind accounts, all of this provided by ShiroEE.
23
+
Also, inside the application you can find (already functional) a simple CRUD of Users and User Groups with permission based authentication and LDAP/AD integration with local bind accounts, all of this provided by ShiroEE.
29
24
30
-
It's not much say, that if you want a **production ready architecture**, this is the project that you are looking for.
25
+
It's not much say, that if you want a **production ready architecture**, this is the project you are looking for.
31
26
32
27
## How to: configure
33
28
34
-
First of all, you will need to download the latest version of Wildfly application server. This is the homologated version, maybe, with a little bit of changes ~~or no~~ you can run this on Payara, Glassfish or any other JEE 7 server.
29
+
First of all, you will need to download the latest version of Wildfly application server. This is the homologated version, maybe, with a little bit of changes ~~or no~~ you can run this on Payara, Glassfish or any other JEE 7+ server.
35
30
36
31
Download Wildfly [here](http://wildfly.org/downloads/) and configure the datasource for the application by editing the ``` standalone.xml``` or ```standalone-full.xml``` (you will know which one to change) to add this lines to the datasource section of the file:
37
32
@@ -61,7 +56,10 @@ Download Wildfly [here](http://wildfly.org/downloads/) and configure the datasou
61
56
</datasource>
62
57
```
63
58
64
-
And these lines to the mail subsystem (search for ```mail-session```) to enable the demo sending e-mail messages:
59
+
> **Quick note**: the datasource will not work if you don't have the PostgreSQL driver enabled in the wildfly modules. To do this, follow [this blog post](https://bok.stenusys.com/index.php/2018/02/12/how_to_setup_postgresql_datasource_with_wildfly/).
60
+
61
+
62
+
If you want to send e-mails, these lines should be added to the mail subsystem (search for ```mail-session```):
@@ -77,7 +75,7 @@ And the e-mail socket to the ```socket-binding-group``` at the end of the file:
77
75
</outbound-socket-binding>
78
76
```
79
77
80
-
After this, create the database on you local instance of PostgreSQL 9+ to match the Wildfly configurations and enable the deployment of the application:
78
+
After this, create the database on you local instance of PostgreSQL 10+ to match the Wildfly configurations and enable the deployment of the application:
81
79
82
80
```sql
83
81
-- the user
@@ -101,7 +99,15 @@ CREATE USER sa_library WITH
101
99
CONNECTION LIMIT=-1;
102
100
```
103
101
104
-
The tables and the initial data (default user, group and authorizations) will be created by Flyway with the migrations strategy.
102
+
The tables and the initial data (default user, group and authorizations) will be created by Flyway with the migrations strategy. If you want to run this application
103
+
in development mode, Hibernate will create the tables, but you should create the schemes by hands on PgAdmin or another similar software:
If no profile is used, this will tell maven to build the development version with no migrations and the database need to be initialized manually like is said above.
140
125
141
-
The configuration also have other profiles for you to configure according to your need:
126
+
The build configuration also have other profiles for you to configure according to your need:
142
127
143
128
-*BETA* for beta releases
144
129
-*RC* for release candidate releases
145
130
-*RELEASE* for the final, production ready releases
146
131
147
-
To use a specific profile, run the maven build with:
148
-
149
-
```shell
150
-
mvn -P(the-profile) clean package
151
-
```
152
-
153
-
After the build, open the wildfly admin console on the web browser and in the deployments section, upload the war file created by the build in the target folder (named *library-1.0.0-(selected-profile)*) inside the project and access it on the default URL: https://localhost:8080/, and you're done! Enjoy the demo.
132
+
After the build, open the wildfly admin console on the web browser and in the deployments section, upload the war file created by the build in the target folder (named *library-1.0.0-(selected-profile)*) inside the project and access it on the default URL: https://localhost:8443/, and you're done! Enjoy the demo.
0 commit comments