java ee quickstart
1.0.0
Project goal is to observe core Java EE technologies in the sample CRUD application.
WILDFLY_HOME environment variable to point to the Wildfly installation directory.DROP DATABASE IF EXISTS jee;
CREATE DATABASE jee;
DROP USER IF EXISTS jee;
CREATE USER jee WITH PASSWORD 'jee';
GRANT ALL PRIVILEGES ON DATABASE jee to jee;Using command shell navigate to current folder.
Execute following commands:
start %WILDFLY_HOME%binstandalone.bat
%WILDFLY_HOME%binjboss-cli.bat --connect
These commands should be executed in jboss-cli
module add --name=org.postgres --resources=.libpostgresql-9.4.1211.jar --dependencies=javax.api,javax.transaction.api
/subsystem=datasources/jdbc-driver=postgres:add(driver-name="postgres",driver-module-name="org.postgres",driver-class-name=org.postgresql.Driver)
data-source add --name=JavaEEDS --jndi-name=java:jboss/datasources/JavaEEDS --driver-name=postgres --connection-url=jdbc:postgresql://localhost:5432/jee --user-name=jee --password=jee
For Windows execute following command:
start %WILDFLY_HOME%binstandalone.bat
For Unix-based execute following command:
%WILDFLY_HOME%/bin/standalone.sh &jee-4-jsf and execute command:mvn wildfly:deployFor Windows start the Service with name PostgreSQL 9.6 Server or similar for other PostgreSQL versions.
For Windows execute following command:
start %WILDFLY_HOME%binstandalone.bat
For Unix-based execute following command:
%WILDFLY_HOME%/bin/standalone.sh &jee-4-jsf and execute command:mvn wildfly:deploy