views:

552

answers:

1

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

+3  A: 

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.

Robin