javax.ejb
Annotation Type MessageDriven


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface MessageDriven

Defines a Message Driven Bean when applied on a bean's class.

Since:
EJB 3.0 version.
Author:
Florent Benoit
See Also:
EJB 3.0 specification

Optional Element Summary
 ActivationConfigProperty[] activationConfig
          Properties to configure the activation object (it may include destination, destinationType, etc).
 java.lang.String description
          Description of this MDB.
 java.lang.String mappedName
          Product specific.
 java.lang.Class messageListenerInterface
          Class used as Message Listener Interface, for JMS MDB, it is javax.jms.MessageListener class.
 java.lang.String name
          Name of this MDB.
 

name

public abstract java.lang.String name
Name of this MDB.

Default:
""

messageListenerInterface

public abstract java.lang.Class messageListenerInterface
Class used as Message Listener Interface, for JMS MDB, it is javax.jms.MessageListener class.

Default:
java.lang.Object.class

activationConfig

public abstract ActivationConfigProperty[] activationConfig
Properties to configure the activation object (it may include destination, destinationType, etc).

Default:
{}

mappedName

public abstract java.lang.String mappedName
Product specific.

Default:
""

description

public abstract java.lang.String description
Description of this MDB.

Default:
""


Copyright © 2008. All Rights Reserved.