Is there a way in JBoss 3.2.3 (or higher) to programmatically create and delete MDBs with a specific message selectors at run-time? Also, if these dynamically created MDBs could also remain deployed (until programmatically deleted) even in the event of a server bounce, that would be desireable as well.
I basically want to be able to control/throttle message consumption via JMS message property keys for each job whose keys are not established until run-time (IE, I cannot just deploy a static MDB with a set message selector). After the process flow for the job is done, I want to remove the consumer MDB off the queue to free resources for new jobs coming into the system.
I know this can be done with non-MDB based JMS subscribers, but I was hoping to leverage what MDBs bring in terms of lifecycle management and CMT integration inside the container.