I use JBOSS3.2.1. I deploy a Message Driven Bean and I subscribe it to a topic through jboss.xml.
Can I unsubscribe/subscribe the message driven bean from topic at runtime. If I can, HOW CAN I DO?
Each MDB has an MBean associated in the JMX console (I am not sure it's already the case in 3.2.1 but I think so).
If you stop this MBean, the MDB will be stopped as well (same as unsubscribe).
If you want to get the messages while you are offline you can use a durable subscriber. If not, message will be simply 'lost" (at least for that MDB)