Server User Manual

Table Of Contents
120 Developing Applications for J2EE Servers
Sample build scenarios
EAR with custom files
This sample adds .dat files along with the archives and descriptors to an application
module (EAR):
1 Choose Tools|Preferences.
2 Select the Browser|File Types page.
3 Select Generic Resource File in the Recognized File Types list box.
4 Click the Add button to display the Add Custom Extension dialog box.
5 Enter dat and choose OK.
6 Choose Project|Project Properties.
7 Select the Build|Resource page.
8 Select dat in the list box and select the Copy option.
9 Right-click the application module and choose Properties.
10 Select the Content page and click the Add Filters button.
11 Select the Include option and add the follow filter in the Expression field: **/*.dat
12 Choose OK.
RAR with classes and dependencies
Follow these steps:
1 Right-click the connector module and choose Properties.
2 Select the Content page.
3 Select the Java Class file type and click the Add Filters button to add a new filter.
4 Select the Include option and add a new filter in the Expression field.
5 Choose OK.
6 Select the Content|Dependencies page and select the required libraries. Select the
Include All option.
7 Choose OK.
Application client module with classes and dependencies
Follow these steps:
1 Right-click the application client module and choose Properties.
2 Select the Content page.
3 Select the Java Class file type and click the Add Filters button to add a new filter.
4 Select the Include option and add a new filter in the Expression field.
5 Choose OK.
6 Select the Content|Dependencies page and select the required libraries. Select the
Include All option.
7 Choose OK.
These steps will expand the libraries into the application client JAR.