blob: 4c395a16e19abc1174c1dd0cc24975aabeb3c6a1 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2011" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Exporting EJB 2.x projects to EJB JAR files" />
<meta name="abstract" content="After you have tested your enterprise beans, you can export the module into an EJB JAR file." />
<meta name="description" content="After you have tested your enterprise beans, you can export the module into an EJB JAR file." />
<meta content="EJB, JAR files, exporting projects" name="DC.subject" />
<meta content="EJB, JAR files, exporting projects" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/ceresrc.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="teexp" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Exporting EJB 2.x projects to EJB JAR files</title>
</head>
<body id="teexp"><a name="teexp"><!-- --></a>
<h1 class="topictitle1">Exporting EJB 2.x projects to EJB JAR files</h1>
<div><p>After you have tested your enterprise beans, you can export the
module into an EJB JAR file.</p>
<div class="section"><p>When you export an EJB project, the contents of the project are
exported into an EJB JAR file regardless of whether deployment code has been
generated or not. You can use the exported server-side JAR file as the client
JAR file, since it contains all of the required code from both a server-side
and client-side perspective.</p>
<div class="important" id="teexp__exportEJBClientJAR"><a name="teexp__exportEJBClientJAR"><!-- --></a><span class="importanttitle">Important:</span> If
you use the Export EJB JAR file wizard to export an EJB project, the export
wizard does not include an EJB project's associated EJB client JAR project.
To include the EJB client JAR file, it is recommended that you export the
enterprise application EAR file that contains the EJB project. The resulting
EAR file will include any dependent EJB client JAR files as utility JAR files.
Alternatively, you can export the EJB client JAR project separately as a JAR
file.</div>
<p>To export an EJB project, complete the following steps:</p>
</div>
<ol>
<li><span>In the Project Explorer view of the Java™ EE perspective, right-click the EJB
project that you want to export and select <span class="menucascade"><span class="uicontrol">Export</span>
&gt; <span class="uicontrol">EJB JAR File</span></span>.</span></li>
<li><span>In the <span class="uicontrol">EJB Project</span> drop-down list, select
the project you want to export if the name is not already filled in for you.</span>
</li>
<li><span>In the <span class="uicontrol">Destination</span> field, provide the full
path and JAR file name for the exported EJB module.</span></li>
<li><strong>Optional: </strong><span>To include source files in the exported JAR
file, select the <span class="uicontrol">Export source files</span> check box.</span>
</li>
<li><strong>Optional: </strong><span>If you are exporting to an existing JAR file
and you do not want to be warned about overwriting it, select <span class="uicontrol">Overwrite
existing file</span>.</span></li>
<li><span>Click <span class="uicontrol">Finish</span>.</span></li>
</ol>
<div class="section"> <p>To deploy your EJB JAR file to an application server after you
export it, you need to use the deployment tools provided by the vendor of
that server.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/ceresrc.html" title="This topic describes resources and development tools that are commonly used in EJB version 2.x development.">EJB 2.x development resources</a></div>
</div>
</div>
</body>
</html>