java ee quickstart
1.0.0
เป้าหมายโครงการคือการสังเกตเทคโนโลยีหลัก Java EE ในแอปพลิเคชันตัวอย่าง CRUD
WILDFLY_HOME เพื่อชี้ไปที่ไดเรกทอรีการติดตั้ง 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;การใช้เชลล์คำสั่งนำทางไปยังโฟลเดอร์ปัจจุบัน
ดำเนินการคำสั่งต่อไปนี้:
start %WILDFLY_HOME%binstandalone.bat
%WILDFLY_HOME%binjboss-cli.bat --connect
คำสั่งเหล่านี้ควรดำเนินการใน 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
สำหรับ Windows ดำเนินการคำสั่งต่อไปนี้:
start %WILDFLY_HOME%binstandalone.bat
สำหรับคำสั่งดำเนินการตามคำสั่ง UNIX:
%WILDFLY_HOME%/bin/standalone.sh &jee-4-jsf และดำเนินการคำสั่ง: mvn wildfly:deploy สำหรับ Windows เริ่มบริการด้วย Name PostgreSQL 9.6 Server หรือคล้ายกันสำหรับเวอร์ชัน postgreSQL อื่น ๆ
สำหรับ Windows ดำเนินการคำสั่งต่อไปนี้:
start %WILDFLY_HOME%binstandalone.bat
สำหรับคำสั่งดำเนินการตามคำสั่ง UNIX:
%WILDFLY_HOME%/bin/standalone.sh &jee-4-jsf และดำเนินการคำสั่ง: mvn wildfly:deploy