MessageDriven (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.ejb Annotation Type MessageDriven


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

Component-defining annotation for a message driven bean.


Optional Element Summary
 ActivationConfigProperty[] activationConfig
          Activation config properties.
 String description
           
 String mappedName
          A product specific name(e.g. global JNDI name of a queue) that this message-driven bean should be mapped to.
 Class messageListenerInterface
          Message-listener interface.
 String name
          ejb-name for this bean.
 

name

public abstract String name
ejb-name for this bean.

默认值:
""

messageListenerInterface

public abstract Class messageListenerInterface
Message-listener interface.

默认值:
java.lang.Object.class

activationConfig

public abstract ActivationConfigProperty[] activationConfig
Activation config properties.

默认值:
{}

mappedName

public abstract String mappedName
A product specific name(e.g. global JNDI name of a queue) that this message-driven bean should be mapped to. Application servers are not required to support any particular form or type of mapped name, nor the ability to use mapped names. The mapped name is product-dependent and often installation-dependent. No use of a mapped name is portable.

默认值:
""

description

public abstract String description
默认值:
""

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.