控制Message Driven Bean的实例数

EJB2和EJB3的不一样,而且好像和容器提供商也有关,这里给出的是适用于EJB3和JBoss4的:
@MessageDriven(activationConfig = {
        @ActivationConfigProperty(
                propertyName = "destinationType",
                propertyValue = "javax.jms.Queue"),
        @ActivationConfigProperty(
                propertyName = "destination",
                propertyValue = "queue/email"),
        @ActivationConfigProperty(
                propertyName = "maxSession",
                propertyValue = "1")})

关键的就是那个maxSession,它控制实例的最大个数。


作者: Cherami
原载: 控制Message Driven Bean的实例数
版权所有。转载时必须以链接形式注明作者和原始出处及本声明。

日志评价

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (暂无评价) --点击星星直接投票
Loading ... Loading ...


相关日志



随机日志



添加到网摘

[del.icio.us]  [新浪 VIVI]  [365key]  [YouNote]  [博采中心]  [Poco]  [SOHU狐摘]  [天极网摘]  [和讯网摘]
喜欢这个插件?

当前日志信息