Server User Manual

Table Of Contents
86 Developing Applications for J2EE Servers
Creating a JBoss service module
3 Click Next.
4 Specify a name to identify the new module in the Name field.
5 Specify a directory name for the Directory field. By default, the wizard uses the
same name for the directory as the name you specified in the Name field. You can
use the ellipsis () button to navigate to a directory you want to use instead, if you
choose.
6 You might want to add Java source paths that are necessary to build a module. It
isnt absolutely necessary to add the source paths in this wizard, however. You can
also add additional source path directories to your project directly. If you choose to
add the source path directories using the JBoss Service Module wizard, the
directories you specify will be added to your project source path. If you choose to
add to the modules source path, click the Add button and navigate to the Java
source file directories you want to add. Continue until all source file directories are
added. You can order the source file directories using the Move Up and Move Down
buttons on the page, and you can select a previously added source file directory and
delete with the Remove button.
7 Choose Finish.
You can use an existing module in a directory outside your project; you dont have to
copy it to your current project:
1 Select the Create A JBoss Service Module For An Existing Directory Or Archive on
the first page of the JBoss Service Module DD Editor.
2 Use the ellipsis () button to browse to the location of the directory that contains the
module.
3 Click Next.