Step 3: Create module file for H2 database
You need to create a module file for the H2 database.
In the
h2/main
directory, create a text file namedmodule.xml
.Copy this code into the
module.xml
file, then modify it so that the name of the JDBC driver you just downloaded appears in theresource-root
path.<?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.0" name="org.h2"> <resources> <resource-root path="[Name of JDBC Jar You Downloaded Here]"/> </resources> <dependencies><module name="javax.api"/></dependencies> </module>
Save and close the
module.xml
file.
PreviousStep 2: Create module file for HSQL databaseNextStep 4: Define JNDI database connection information in JBoss
Last updated
Was this helpful?