My environment: - JBoss 4.2.3 (maybe upgrade to JBoss 5 in the future) - JBoss Messaging - Java 5 - Redhat Enterprise OS - lots of EJB modules
I know that I can either use annotations or deployment descriptor to configure a Message Driven Bean. What I need is to subscribe an MDB to a queue dynamically at runtime. The configuration for the MDB is stored in the DB and the MDB class subscribes to different Queues. I do not want to manually subscribe to the Queue using JMS, but use the MDB features.
Has anyone an idea how to dynamically deploy an MDB, without deployment descriptor or annotations?