Hi Jose,
I figure that the last command of yours is wrong because of this:
--desttype -T queue
-T is an alias for --desttype
so use either -T or --desttype
second, are you certain the destination exists?
asadmin list-jmsdest gives you a list of existing destinations.
if asadmin does not work for you you can use the imq tools directly
in $glassfish_home/imq/bin
use the imqcmd tool like this to see which destinations exist:
./imqcmd list dst -b localhost:7676 (i'm assuming you're in a unix
shell here, and that the broker is running on localhost, if not either
then substitute as appropriate)
then to purge the queue (deleting all messages) do:
./imqcmd purge dst -b localhost:7676 -n CrawlerQueue -t q
.trond
glassfish_at_javadesktop.org wrote:
> Hi guys,
>
> Im trying to flush a jms destination but i cant. All times I got same message:
>
> CLI137 Command flush-jmsdest failed.
>
> Commands tried:
> asadmin> flush-jmsdest --user admin --passwordfile C:/glassfish/domains/domain4/
> config/domain-passwords --host localhost --port 4848 --desttype queue CrawlerQue
> ue
>
> asadmin> flush-jmsdest --user admin --passwordfile passwords.txt --host localhos
> t --port 4848 --desttype -T queue CrawlerQueue
>
> What I have to do? I think its an important feature because my mbeans could process large tasks and I have to purge some messages some times.
>
> Thank you
> [Message sent by forum member 'josecarlosbarros' ]
>
> http://forums.java.net/jive/thread.jspa?messageID=375138
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
--
Trond Strømme
Application Platform Ambassador
Sun Microsystems Nordic, Professional Services
+47 975 09 388
http://blog.sun.com/tronds