java ee quickstart
1.0.0
El objetivo del proyecto es observar las tecnologías de Java EE básicas en la aplicación de muestra RRUD.
WILDFLY_HOME para apuntar al directorio de instalación de WildFly. 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;Usando el comando shell navegue a la carpeta actual.
Ejecutar los siguientes comandos:
start %WILDFLY_HOME%binstandalone.bat
%WILDFLY_HOME%binjboss-cli.bat --connect
Estos comandos deben ejecutarse en 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
Para Windows ejecutar el siguiente comando:
start %WILDFLY_HOME%binstandalone.bat
Para el comando de ejecución basado en UNIX:
%WILDFLY_HOME%/bin/standalone.sh &jee-4-jsf y ejecutar el comando: mvn wildfly:deploy Para Windows, inicie el servicio con el nombre PostgreSQL 9.6 Server o similar para otras versiones PostgreSQL.
Para Windows ejecutar el siguiente comando:
start %WILDFLY_HOME%binstandalone.bat
Para el comando de ejecución basado en UNIX:
%WILDFLY_HOME%/bin/standalone.sh &jee-4-jsf y ejecutar el comando: mvn wildfly:deploy