Creating Subdirectory Structure

For creating a module, you need to create the sub-directory structure.

Note: Create any one of the following directory structure specific to the database that you have installed:
  • For JBoss 7.1 version, the directory structure is $JBOSS_HOME\modules.
  • For JBoss EAP 6.2 version, the directory structure is $JBOSS_HOME\modules\system\layers\base\com.

Procedure

  1. For Oracle database, create the hierarchal folders in the $JBOSS_HOME\modules directory as follows:
    • com > oracle > ojdbc6 > main
  2. For SQL Server database, create the hierarchal folders in the $JBOSS_HOME\modules directory as follows:
    • com > microsoft > sqlserver > main
  3. For PostgreSQL database, create the hierarchal folders in the $JBOSS_HOME\modules directory as follows:
    • org > postgresql > main

Result

After creating the sub-directory structure, perform the following steps:

  • Place the module.xml file specific to each database in the sub-directory. For information on creating a module.xml file for each database, refer to Module Creation.
  • Place the JAR files specific to each database in the sub-directory. For information on downloading or copying JAR files for each database, refer to the JDBC Related Libraries section in "Third Party Libraries".