1 Reply Latest reply on Dec 1, 2003 2:25 AM by stephanenicoll

    How to unsubscribe a MessageDrivenBean from a topic at runti

    simonej

      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?
      Thanks.
      SIM

        • 1. Re: How to unsubscribe a MessageDrivenBean from a topic at r

          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)

          Regards,

          Stephane