Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Web Tools Guide
Previous Page Home Next Page

Creating message-driven beans with XDoclet annotation support

You can use a wizard to create a message-driven bean and add it to your project.

Before you can create an enterprise bean, you must:

To create a message-driven bean, complete the following steps:

  1. In the Java™ EE perspective, click File > New > Other . Select EJB > XDoclet Enterprise JavaBean and click Next.
  2. Select the Message Driven Bean and click Next.
  3. Select the Project that will contain the new bean.
  4. In the Folder field, select the folder for the new bean.
  5. In the Java package field, enter the package name for the new bean.
  6. In the Class name field, type a name for the enterprise bean. By convention, bean names should begin with an uppercase letter.
    Note: You can use Unicode characters for the bean name, but Unicode characters are not supported for enterprise bean packages and classes associated with enterprise beans.
  7. Change the Superclass for the bean if you want it to inherit from a class other than java.lang.Object and click Next.
  8. Provide an EJB Name for the bean. This is the name of the enterprise bean class.
  9. Provide an Destination JNDI Name for the bean. This is a logical name used by the server to locate an enterprise bean at runtime.
  10. Provide an Display Name for the bean. This is a short name for the enterprise bean that is used by tools.
  11. Provide a text Description for the bean.
  12. Select a Destination for the new bean:
    • Queue specifies that the point-to-point JMS messaging model will be used.
    • Topic specifies that the publish-and-subscribe JMS messaging model will be used.
  13. Select a Transaction Type for the new bean:
    • Container specifies that the transaction demarcation is performed by the container.
    • Bean specifies that the transaction demarcation is performed by the bean.
    Click Next.
  14. Select the type of Modifiers to use for the class.
  15. Optional: Select the Interfaces you want the bean to implement. Click Add to select interfaces that you want to implement and click Remove to take away interfaces that you no longer want to implement.
  16. Select the method stubs that you want the wizard to create.
  17. Click Finish to add the new bean to the specified EJB project.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire