diff --git a/README.md b/README.md index b2091e1..da0cf7c 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,13 @@ it should create the jdbc driver ./subsystem=datasources/data-source=MyDataSource:add(driver-name="postgresql", jndi-name="java:/MyDataSource", connection-url="jdbc:postgresql://localhost:5432/simpleservice", user-name="simpleservice", password="simpleservice", min-pool-size=5, max-pool-size=15) +## connection factory and queue + +``` +/subsystem=messaging-activemq/server=default/connection-factory=ConnectionFactory:add(entries=[java:/ConnectionFactory],connectors=[in-vm]) +jms-queue add --queue-address=MyQueue --entries=[java:/jms/queue/MyQueue] +``` + # Useful links 1. https://thoughts-on-java.org/jpa-persistence-xml/ 2. https://www.stenusys.com/how_to_setup_postgresql_datasource_with_wildfly/ diff --git a/javaee-demo1-ear/build.gradle b/javaee-demo1-ear/build.gradle index 22fe35a..9c851ab 100644 --- a/javaee-demo1-ear/build.gradle +++ b/javaee-demo1-ear/build.gradle @@ -6,10 +6,8 @@ dependencies { } ear { - appDirName 'src/main/app' // use application metadata found in this folder - libDirName 'APP-INF/lib' deploymentDescriptor { // custom entries for application.xml: - initializeInOrder = true + initializeInOrder = false webModule('javaee-demo1-web-' + project.version + '.war', '/api') } -} \ No newline at end of file +} diff --git a/javaee-demo1-ear/src/main/webapp/WEB-INF/application.xml b/javaee-demo1-ear/src/main/webapp/WEB-INF/application.xml deleted file mode 100644 index 099ef81..0000000 --- a/javaee-demo1-ear/src/main/webapp/WEB-INF/application.xml +++ /dev/null @@ -1,17 +0,0 @@ - - JBossDukesBank - - - javaee-demo1-ejb-1.0-SNAPSHOT.jar - - - - javaee-demo1-web-1.0-SNAPSHOT.war - api - - - - \ No newline at end of file diff --git a/javaee-demo1-ejb/src/main/resources/META-INF/persistence.xml b/javaee-demo1-ejb/src/main/resources/META-INF/persistence.xml index 28fbe4a..5e5c6a0 100644 --- a/javaee-demo1-ejb/src/main/resources/META-INF/persistence.xml +++ b/javaee-demo1-ejb/src/main/resources/META-INF/persistence.xml @@ -10,4 +10,4 @@ - \ No newline at end of file +