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.1 specification

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

name

public abstract String name
Name of this MDB.

Default:
""

messageListenerInterface

public abstract 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 String mappedName
Product specific.

Default:
""

description

public abstract String description
Description of this MDB.

Default:
""


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.