Created WildFly (markdown)

Jesper Pedersen 2015-04-29 14:26:06 -04:00
parent 7779544e95
commit 8bc7cb43e6
1 changed files with 69 additions and 0 deletions

69
WildFly.md Normal file

@ -0,0 +1,69 @@
[WildFly](http://www.wildfly.org) is a Java EE application server.
# DataSource configuration
```
<datasource jndi-name="java:jboss/datasources/PGSQLDS" pool-name="PGSQLDS">
<connection-url>jdbc:pgsql://localhost:5432/test</connection-url>
<connection-property name="housekeeper">false</connection-property>
<connection-property name="parsedSqlCacheSize">0</connection-property>
<connection-property name="preparedStatementCacheSize">0</connection-property>
<driver>pgsql</driver>
<security>
<user-name>user</user-name>
<password>secret</password>
</security>
<validation>
<validate-on-match>true</validate-on-match>
<valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker"></valid-connection-checker>
<exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter"></exception-sorter>
</validation>
<statement>
<track-statements>nowarn</track-statements>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
</statement>
</datasource>
```
# XADataSource
```
<xa-datasource jndi-name="java:jboss/datasources/PGSQLXADS" pool-name="PGSQLXADS">
<xa-datasource-property name="Host">localhost</xa-datasource-property>
<xa-datasource-property name="Port">5432</xa-datasource-property>
<xa-datasource-property name="Database">test</xa-datasource-property>
<xa-datasource-property name="Housekeeper">false</xa-datasource-property>
<xa-datasource-property name="ParsedSqlCacheSize">0</xa-datasource-property>
<xa-datasource-property name="PreparedStatementCacheSize">0</xa-datasource-property>
<driver>pgsql</driver>
<security>
<user-name>user</user-name>
<password>secret</password>
</security>
<validation>
<validate-on-match>true</validate-on-match>
<valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker"></valid-connection-checker>
<exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter"></exception-sorter>
</validation>
<statement>
<track-statements>nowarn</track-statements>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
</statement>
</xa-datasource>
```
# Driver configuration
```
<driver name="pgsql" module="com.impossibl.pgjdbc">
<xa-datasource-class>com.impossibl.postgres.jdbc.xa.PGXADataSource</xa-datasource-class>
</driver>
```
## module.xml
```
<module xmlns="urn:jboss:module:1.3" name="com.impossibl.pgjdbc">
<resources>
<resource-root path="pgjdbc-ng-0.5.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
```