blob: def83524fe1cf4990e7ba2d8807144d33cfb6492 [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>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 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
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Importing EJB JAR files</title>
</head>
<body id="teimp"><a name="teimp"><!-- --></a>
<h1 class="topictitle1">Importing EJB JAR files</h1>
<div><p>You can import beans and other metadata from an EJB JAR file into
a new or existing EJB project.</p>
<div class="section"> <div class="tip"><span class="tiptitle">Tip: </span>In the Project Explorer view you can also copy
enterprise beans by dragging and dropping them from one EJB project to another
EJB project. The import wizard will open to help you merge existing enterprise
beans.</div>
<div class="tip"><span class="tiptitle">Tip: </span><img src="../images/ycwin.gif" alt="The following paragraph applies to Windows." /> You can quickly drag
and drop an EJB JAR file from the Windows<sup>®</sup> Explorer or desktop onto the
Project Explorer view. The Import wizard will open with appropriate fields
already populated. If you drop on an existing EJB module, the wizard will
import into that EJB module. If you drop on an enterprise application, the
wizard will bind the new EJB module to this EAR.</div>
<p>To import an EJB
JAR file into an EJB project using the Import wizard:</p>
</div>
<ol><li class="stepexpand"><span>In the J2EE perspective, click <span class="menucascade"><span class="uicontrol">File</span> &gt; <span class="uicontrol">Import</span> &gt; <span class="uicontrol">EJB JAR file</span></span> and
click <span class="uicontrol">Next</span>.</span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">EJB JAR file</span> combination box, enter
the location and name of the EJB JAR file that you want to import. You can
click the <span class="uicontrol">Browse</span> button to select the JAR file from
the file system.</span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">EJB module</span> combination box, type
a new project name or select an EJB module from the drop-down list. </span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">Target server</span> drop-down list, select
the application server that you want to target for your development. If no
Target servers exist, create one using the <span class="uicontrol">New</span> button.</span> The target server choice affects the run time settings by modifying
the class path entries for the project.</li>
<li class="stepexpand"><span>Specify whether you want to add the new module to an enterprise
application (EAR) project.</span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">EAR application</span> combination box,
type a new project name or select an existing enterprise application project
from the drop-down list. Or, click the <span class="uicontrol">New</span> button to
launch the New Enterprise Application Project wizard.</span> <div class="note"><span class="notetitle">Note: </span>If
you type a new EAR project name, the EAR project will be created in the default
location with the lowest compatible J2EE version based on the version of the
project being created. If you want to specify a different version or a different
location for the enterprise application, you must use the New Enterprise Application
Project wizard.</div>
</li>
<li class="stepexpand"><span>Click <span class="uicontrol">Finish</span> to import the
EJB JAR file.</span></li>
</ol>
<div class="section"><div class="note"><span class="notetitle">Note: </span>The .ser files in an EJB 1.0 JAR are converted into the ejb-jar.xml
file for EJB 1.1 during an import.</div>
</div>
</div>
<p>
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.
</p>
</body>
</html>