blob: 4e36a3976b84a95895d55d00c960049dbe7cffd4 [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 https://www.eclipse.org/legal/epl-2.0/. 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="Creating enterprise beans with XDoclet annotation support" />
<meta name="abstract" content="You can use a wizard to create session beans and message-driven beans that support XDoclet annotation." />
<meta name="description" content="You can use a wizard to create session beans and message-driven beans that support XDoclet annotation." />
<meta content="EJB, XDoclet annotation support, EJBs" name="DC.subject" />
<meta content="EJB, XDoclet annotation support, EJBs" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/ceover.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/tesessb.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/teentityb.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/temessb.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/txdocletconf.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="tecrte" 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>Creating enterprise beans with XDoclet annotation support</title>
</head>
<body id="tecrte"><a name="tecrte"><!-- --></a>
<h1 class="topictitle1">Creating enterprise beans with XDoclet annotation support</h1>
<div><p>You can use a wizard to create session beans and message-driven
beans that support XDoclet annotation.</p>
<div class="p"><p>Before you can create an enterprise bean, you must:</p>
<ul>
<li>Define an EJB project to contain the enterprise bean. See <a href="tecrtpro.html" title="An EJB project is used to organize the resources contained in an&#10;EJB module.">Creating EJB projects</a>.</li>
<li>Install XDoclet annotation support and enable it. See <a href="txdocletconf.html" title="To use XDoclet annotation support, or to create enterprise beans,&#10;XDoclet must be installed on your system and configured to work with the workbench. ">Configuring XDoclet annotation support</a>.</li>
</ul>
</div>
<div class="section"> <p> After you create an EJB project, you can add enterprise beans
to the EJB project in one of the following ways: </p>
<ul>
<li>Create new enterprise beans.</li>
<li>Import enterprise beans from EJB JAR files.</li>
</ul>
<p>A wizard helps you to create enterprise beans. You can use the Enterprise
Bean Creation wizard to generate an enterprise bean while avoiding the complexities
that exist between the different types of beans. The wizard helps you add
enterprise beans to you project by creating entirely new enterprise beans.</p>
<p>With
the wizard, you can create three types of enterprise beans: session beans
and message-driven beans (EJB 2.0 or later projects only): </p>
<ul>
<li>Create a session bean. For more information, see <a href="tesessb.html" title="You can use a wizard to create a session bean and add it to your&#10;project.">Creating session beans with XDoclet annotation support</a>.</li>
<li>Create a CMP entity bean. For more information, see <a href="teentityb.html" title="You can use a wizard to create a CMP entity bean and add it to&#10;your project.">Creating container-managed persistence (CMP) entity beans with XDoclet annotation support</a>.</li>
<li>Create a message-driven bean. For more information, see <a href="temessb.html" title="You can use a wizard to create a message-driven bean and add it&#10;to your project.">Creating message-driven beans with XDoclet annotation support</a>.</li>
</ul>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="../topics/tesessb.html">Creating session beans with XDoclet annotation support</a></strong><br />
You can use a wizard to create a session bean and add it to your project.</li>
<li class="ulchildlink"><strong><a href="../topics/teentityb.html">Creating container-managed persistence (CMP) entity beans with XDoclet annotation support</a></strong><br />
You can use a wizard to create a CMP entity bean and add it to your project.</li>
<li class="ulchildlink"><strong><a href="../topics/temessb.html">Creating message-driven beans with XDoclet annotation support</a></strong><br />
You can use a wizard to create a message-driven bean and add it to your project.</li>
<li class="ulchildlink"><strong><a href="../topics/txdocletconf.html">Configuring XDoclet annotation support</a></strong><br />
To use XDoclet annotation support, or to create enterprise beans, XDoclet must be installed on your system and configured to work with the workbench.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/ceover.html" title="The workbench provides a specialized environment that you can use to develop and test enterprise beans that conform to the distributed component architecture defined in the Sun Microsystems Enterprise JavaBeans (EJB) version specification. This product supports the Enterprise JavaBeans 1.1, 2.0, 2.1, and 3.0 specification levels.">EJB 2.x application development</a></div>
</div>
</div>
</body>
</html>