Server User Manual

Table Of Contents
Chapter 13: Building J2EE modules 119
Sample build scenarios
EJB JAR without EJB designer XML descriptors
Follow these steps:
1 Right-click the EJB module and select Properties.
2 Select the Content page and click the Add Filters page.
3 Select the Exclude option.
4 Enter this exclude filter in the Expression field: META-INF/ejb-modeler*.xml
5 Choose OK.
WAR with custom descriptor(s) in the WEB-INF directory
Perform this one step: Copy the custom descriptor(s) over to the WEB-INF directory of
the web module.
Note The descriptor must have a standard extension listed in the XML file type (Tools|
Preferences|Browser|File Types). If the file type is not recognized by JBuilder, add the
required extension to the global file types. You must do this whenever adding custom
descriptors to any J2EE module in JBuilder.
WAR without any classes
This sample will create a WAR with descriptors only. Follow these steps:
1 Right-click the web module and choose Properties.
2 Select the Content page and remove the Java Class file type filter.
3 Choose OK.
WAR with custom class filters
Follow these steps:
1 Right-click the web module and choose Properties.
2 Select the Content page and remove the Java Class file type filter.
3 Add include filters for the required classes (for example, <package name>/*.*).
4 Choose OK.
WAR with custom file types
This sample adds the .inc extension to the JSP file type:
1 Choose Tools|Preferences.
2 Select the Browser|File Types page.
3 Select JSP File in the Recognized File Types list box.
4 Click the Add button to display the Add Custom Extension dialog box.
5 Enter inc and choose OK.
6 Right-click the web modules Module Directory in the project pane and select New|
File.
7 Create a file named test1 with the extension inc in the module directory at the root
level.