You might have a look into the quickstart log4j (#44) which demonstrates how to add a reference to a module.
A module is one (or more) simple jar archive that is located in the JBOSS/modules directory. You might add archives you want as module and add references to applications that are need it.
See the datasource example, there is the JDBC drived added as module.