问题
Is it possible to programatically stop an MDB from listening to a queue in Weblogic 8.1?
I know this can be done in JBoss and later versions of Weblogic but I wasn't sure if it's possible in 8.x.
回答1:
This is possible with Weblogic 9.x and Weblogic 10.x through the MessageDrivenEJBRuntimeMBean
that exposes suspend/resume methods (see BEA WebLogic Server 9.0 API Reference or WebLogic Server 10.3 API Reference) as explained in this Thread: Suspending/Pausing a MDB's Consumption Programmatically. AFAIK, this feature has been introduced in version 9.0 and I don't know if it was backported to 8.1 (in a service pack or as a patch). You might want to check this with BEAOracle support.
回答2:
You can undeploy the application that contains your MDB. You can use WLST to do that.
来源:https://stackoverflow.com/questions/1532010/possible-to-stop-mdb-in-weblogic-8-x