| <?xml version="1.0" encoding="utf-8"?> |
| <!--Arbortext, Inc., 1988-2005, v.4002--> |
| <!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, 2006 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 |
| ************************************************************************************/ --> |
| <?Pub Caret?> |
| <link href="../../org.eclipse.wst.doc.user/common.css" rel="stylesheet" type="text/css"/> |
| <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, container-managed persistence (CMP) entity |
| 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 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, 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 with XDoclet annotation |
| support: session beans, CMP entity beans, and message-driven beans (EJB 2.0 |
| or later projects only):</p> <ul> |
| <li>Create a session bean. See <a href="tesessb.html" title="You can use a wizard to create a session bean and add it to your project.">Creating |
| session beans with XDoclet annotation support</a></li> |
| <li>Create a CMP entity bean. See <a href="teentityb.html" title="You can use a wizard to create a CMP entity bean and add it to your project.">Creating |
| container-managed persistence (CMP) entity beans with XDoclet annotation support</a></li> |
| <li>Create a message-driven bean. See <a href="temessb.html" title="You can use a wizard to create a message-driven bean and add it to your project." |
| >Creating message-driven beans with XDoclet annotation support</a></li> |
| </ul> </div> </div> </body> |
| </html> |
| <?Pub *0000003366?> |