On 23 Jul, Brian Sondergaard wrote:
> Is there a way that I can temporarily stop the delivery of messages from a queue to
>a MDB (programatically or otherwise)? Let's say the queue is 1000 messages deep, but
>for some reason I don't want to process any of those messages until later. I want the
>queue to remain available to receive new messages, but I don't want those messages
>dispatched to the MDB.
>
> I'm guessing I need to do something with the JBossMQProvider, but I don't see what.
>There seems to be no effect if I stop JBossMQProvider in the JMX Agent View -
>messages can still be sent from clients and they're still delivered to the
>appropriate MDB. Stopping JBossMQ in the Agent View seems to do what I want, but I
>can't figure out how to restart it (start and init in any combination have no
>effect). In this case, I've had to stop and restart jboss to get the queue to resume,
>and the messages are gone on startup.
>
> Any ideas are greatly appreciated.
>
> Brian
>
The only way I know of doing this is to undeploy the bean. This is
possible to do programtically (look at the test framework).
//Peter
--
Jobba hos oss: http://www.tim.se/weblab
------------------------------------------------------------
Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems Architect WWW: http://www.tim.se
Email: [EMAIL PROTECTED] WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942
------------------------------------------------------------
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user