Small fixes for ear package.

master
Tomasz Półgrabia 2021-01-04 19:21:34 +01:00
parent 561396dae4
commit 708b9c3e3b
4 changed files with 10 additions and 22 deletions

View File

@ -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/

View File

@ -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')
}
}

View File

@ -1,17 +0,0 @@
<application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
<display-name>JBossDukesBank</display-name>
<module>
<ejb>javaee-demo1-ejb-1.0-SNAPSHOT.jar</ejb>
</module>
<module>
<web>
<web-uri>javaee-demo1-web-1.0-SNAPSHOT.war</web-uri>
<context-root>api</context-root>
</web>
</module>
</application>