Server User Manual
Table Of Contents
- Developing Applications for J2EE™ Servers
- Contents
- Ch 1: Introduction
- Ch 2: Programming for the Java 2 Platform, Enterprise Edition
- Ch 3: Creating applications with J2EE technologies
- Ch 4: Configuring the target server settings
- Ch 5: Using JBuilder with Borland servers
- Configuring Borland servers in JBuilder
- Making the ORB available to JBuilder
- Configurations, partitions, partition services, and J2EE APIs
- Starting the configuration or server
- Remote deploying
- Remote debugging
- Web module workarounds
- Displaying the Borland Management Console in JBuilder
- International issues
- Borland servers and JDataStore 7.0
- Ch 6: Using JBuilder’s CORBA tools
- Ch 7: Using JBuilder with BEA WebLogic servers
- Ch 8: Using JBuilder with IBM WebSphere servers
- Ch 9: Using JBuilder with JBoss servers
- Ch 10: Using JBuilder with Tomcat
- Ch 11: Editing J2EE deployment descriptors
- Ch 12: Integrating with Enterprise Information Systems
- Ch 13: Building J2EE modules
- J2EE modules
- Setting module build properties
- Adding custom file types
- Sample build scenarios
- EJB JAR without any bean classes
- EJB JAR with custom files
- EJB JAR without EJB designer XML descriptors
- WAR with custom descriptor(s) in the WEB-INF directory
- WAR without any classes
- WAR with custom class filters
- WAR with custom file types
- EAR with custom files
- RAR with classes and dependencies
- Application client module with classes and dependencies
- Improving module build performance
- Index
118 Developing Applications for J2EE Servers
Sample build scenarios
To select file types to be copied over to the project’s output path and the module
directory,
1 Choose Project|Project Properties.
2 Select the Build|Resource page and select the custom file type.
3 Select the Copy option.
4 Choose OK.
Note You will need to refresh and make the project after this step before you rebuild the
module. You will have to add an include filter for this file type for all other modules
(**/*.<file type>) on the Content page of the Properties dialog box for the module.
Sample build scenarios
Here are a few common build scenarios to help you understand how to work with build
properties:
EJB JAR without any bean classes
This sample EJB JAR includes only stubs/skeletons and descriptors. The server used
is WebLogic Server. Follow these steps:
1 Right-click the EJB module in the project pane and choose Properties.
2 Select the Build|WebLogic page and uncheck the Remove Project Output Path
From Classpath option.
3 Select the Content page.
4 Remove the Java Class file type filter.
5 Choose OK.
EJB JAR with custom files
This sample adds .dat files to the EJB JAR. Please ensure that you create a .dat file in
the project’s source path for this test.
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 and select the Build|Resource page.
7 Select dat from the list of extensions and click the Copy button.
8 Choose OK.
9 Right-click the EJB module and select Properties.
10 Select the Content page and click the Add Filters button to display the Add Filters
dialog box.
11 Select from one of these methods of specifying a filter:
■
Select the Include option and specify **/*.dat in the Expression field.
■
Click the File Types tab, select Generic Resource File, and choose OK.
12 Choose OK.