March 2018
Intermediate to advanced
310 pages
7h 10m
English
Although Java API is convenient, this is not the only option that we have. If you are familiar with the WildFly XML configuration, or if you are migrating your application to Swarm and have a working XML file, you don't have to translate it to Java API as you can use it directly.
Let's return to our database example. You may configure the datasource using XML. In such a case, the XML configuration will look like this:
<subsystem xmlns="urn:jboss:domain:datasources:4.0"> <datasources> <drivers> <driver name="h2" module="com.h2database.h2"> <driver-class>org.h2.Driver</driver-class> <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class> </driver> </drivers> ...
Read now
Unlock full access