Creating a Deployment Profile for J2EE Client Modules (client JAR)
JDeveloper lets you create the deployment
profile containing the J2EE client module and its corresponding application-client.xml
deployment descriptor and packages them into a standard J2EE client JAR archive
for deployment.
To create a J2EE client module deployment profile in JDeveloper:
- In the Navigator, select the
<projectname>.jpr in which you
want to create the J2EE client module deployment profile.
- Choose File | New
to open the New Gallery.
- In the Categories tree, expand General
and select Deployment Profiles.
- In the Items list, double-click Client
JAR File - J2EE Client Module.
- Click OK.
- Specify a location for the
<appcl_name>.deploy
profile or accept the defaults.
- Click Save.
- The Client JAR Deployment Profile Settings
panel displays. Configure the settings for each page as appropriate:
- Files Page
- JAR Options Page
- Dependency Analyzer Page
- (Advanced) Filters Page: further
refinement to the Dependency Analyzer settings
- (Optional) Profile
Dependencies: if the deployment
profile depends on J2EE modules from another deployment profile.
- (Optional) Standalone OC4J: Deploying
EAR and Binding Web Apps
- Click OK when you are done.
The newly created
client deployment profile and corresponding
application-client.xml icons appear in the Navigator below the specified
project.
- To deploy the J2EE client module profile, see Deploying
a J2EE Client Deployment Archive (client JAR).
- By default, you can run and debug the client JAR components in JDeveloper's
embedded OC4J server to test the application. When you are ready to deploy
the client JAR to the target application server, make sure to create
an application server connection.
- (Optional) If you want to edit either the the
client deployment profile or the
application-client.xml deployment descriptor settings, right-click
its icon and choose Settings.
Notes:
- Oracle Application Server provides full support for J2EE Client applications.
For more information, refer to "Chapter 9, Application Clients in
the J2EE Platform Specification 1.2":
http://www.javasoft.com/j2ee/download.html
- Make sure that the client deployment descriptor is located inside the client
JAR file as follows:
META-INF/application-client.xml
Note: JDeveloper recognizes the deployment descriptor file
in the META-INF/application-client.xml
found in the first entry
of the sourcepath
. Any other names and locations for application-client.xml
file will be ignored.
Related topics
- About J2EE Applications and How They
Are Packaged and Deployed
- Deploying an Executable JAR File
- About
the OC4J Deployment Application Directory Structure
- Deploying a J2EE Client Module (client JAR)