Message Driven Bean Selectors (JMS)

你说的曾经没有我的故事 提交于 2019-12-22 08:39:32

问题


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"

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

Note: I am using Glassfish v2.1


回答1:


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.



来源:https://stackoverflow.com/questions/706525/message-driven-bean-selectors-jms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!