Is it possible to change the message selector for an Message Driven Bean programitically at runtime?
The use case:
This is a grid computing farm that hosts many different services. The services are loaded and unloaded based on the demand for a particular service. This is an on demand services model where services consume lots of memory and take serveral minutes to load so they can not all be loaded all the time. A compute farm request will need to execute several services to fulfill the job. A request will encounter the need for a service that is not loaded on the local server but exists on another server. Therefore, as services are loaded on a particular server, I would like to change the MDB message selector to subscribe to those requests needing that particular service.
It's not supported. However, you can deploy all MDBs with all selectors at once, and then manually stop/start them using JMX. I think there's an option for this.