4
* Copyright � 2007 Sun Microsystems, Inc. All rights reserved.
5
* Use is subject to license terms.
8
<title>Editing an Enterprise Application Client's Deployment Descriptors</title>
9
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
10
<link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
15
<h2>Editing an Enterprise Application Client's Deployment Descriptors</h2>
16
<p><small><a href="#seealso">See Also</a></small></p>
17
<p>Deployment descriptors are XML-based text files whose elements describe how
18
to assemble and deploy a module to a specific environment. The elements also
19
contain behavioral information about components that is not included directly in code.</p>
20
<p>An application client generally has the following deployment descriptors:</p>
22
<li><tt>application-client.xml</tt>. The general Java EE deployment descriptor that
23
configures deployment settings on any Java EE compliant implementation.</li>
24
<li>The server-specific deployment descriptor that configures deployment
25
settings for the application server to which you are deploying.
26
For application clients deployed to the Sun
27
Java System Application Server/GlassFish, the file is named <tt>sun-application-client.xml</tt>.
28
The IDE provides a graphical deployment
29
descriptor editor for <tt>sun-application-client.xml</tt> and automatically updates the deployment descriptor as you
31
For other application servers, you have to write the
32
server-specific deployment descriptors yourself. </li>
35
<p>The deployment descriptors for an application client are located in the project's
36
<tt>src/conf</tt> folder. You can access the deployment descriptors from the
37
project's Configuration Files node.</p>
39
<p><b>To edit <tt>application-client.xml</tt>:</b></p>
41
<li>In the Projects window, expand the Configuration Files node for your application client project.</li>
42
<li>Double-click <tt>application-client.xml</tt> to open it in the Source Editor.
43
You have to edit the XML code by hand using the IDE's XML code completion and validation.
44
There is no graphical editor for <tt>application-client.xml</tt>.</li>
47
<p><b>To edit <tt>sun-application-client.xml</tt>:</b></p>
49
<li>Double-click <tt>sun-application-client.xml</tt> to open it in the graphical editor.<br>
50
The graphical editor opens in a Source Editor tab.</li>
51
<li>Edit the deployment descriptor as necessary.</li>
52
<li>Click XML to edit the XML source for <tt>sun-application-client.xml</tt>.
53
The Source Editor provides code completion and validation for all XML files.</li>
55
<p>To edit the server-specific deployment descriptor for any other application server:</p>
57
<li>Double-click the deployment descriptor node.<br>
58
The IDE opens the XML source of the deployment descriptor in the Source Editor.</li>
61
<li>If you enter any XML syntax errors the IDE automatically alerts you. To
62
fully ensure your changes have not caused any errors, you should verify the
63
application client. </li>
66
<dt><a name="seealso">See Also</a></dt>
67
<dd><a href="appclient_about.html">About Enterprise Application Clients</a></dd>
68
<dd><a href="appclient_create.html">Creating an Enterprise Application Client</a></dd>
69
<dd><a href="../enterprise/general/add_modules_to_ent_app.html">Adding a Module to an Enterprise Application</a></dd>
70
<dd><a href="../ejb/editing/call_ejb.html">Calling an Enterprise Bean</a></dd>
71
<dd><a href="../enterprise/general/ent_app_verify.html">Verifying an Enterprise Application</a></dd>
74
<small> <a href="../credits.html">Legal Notices</a></small>
75
<table cellpadding="50" border="0">
76
<tr><td> </td></tr>
b'\\ No newline at end of file'