Monday, September 26, 2011

How to remove those stuck messages in a Distributed Topic

If you have messages current in a Distributed Topic, and you can't persuade the consumers to consume them... and you can't delete them with WLST because there is a bug in the MBean... and you are too lazy to write a Java class...

you can




shutdown all MS

cd $DOMAIN_HOME/servers/yourServer/data/store/default
rm _WLS_YOURSERVER000000.DAT

do the same for all MS

restart

the MS should recreate an empty store.

This if your JMSServer was pointing to the default store.
If it uses a custome FileStore, delete it.

No comments: