消息驱动Bean选择器(JMS) [英] Message Driven Bean Selectors (JMS)

查看:123
本文介绍了消息驱动Bean选择器(JMS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近发现了消息选择器

I have recently discovered message selectors

@ActivationConfigProperty(
        propertyName="messageSelector",
        propertyValue="Fragile IS TRUE")

我的问题是:如何在运行时使选择器动态化?

My Question is: How can I make the selector dynamic at runtime?

让我们说一个消费者决定他们只想要属性为脆弱的错误的消息

Lets say a consumer decided they wanted only messages with the property "Fragile IS FALSE"

消费者以某种方式更改选择器而不重新部署MDB?

Could the consumer change the selector somehow without redeploying the MDB?

注意:我正在使用Glassfish v2.1

Note: I am using Glassfish v2.1

推荐答案

据我所知,这是不可能的。可能存在允许通过一些自定义服务器挂钩实现的实现,但它将依赖于实现。首先,它需要更改部署描述符,在部署EAR后不会读取。

To my knowledge, this is not possible. There may be implementations that will allow it via some custom server hooks, but it would be implementation dependent. For one, it requires a change to the deployment descriptor, which is not read after the EAR is deployed.

这篇关于消息驱动Bean选择器(JMS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆