Guest User

Untitled

a guest
Nov 24th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. # Run JBoss CLI-Client
  2. $ java -jar wildfly/bin/client/jboss-cli-client.jar
  3. You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
  4.  
  5. # Connect to WildFly Server
  6. [disconnected /] connect localhost:9990
  7. Warning! The CLI is running in a non-modular environment and cannot load commands from management extensions.
  8.  
  9. # Switch to JMS Dead-Letter-Queue (DLQ)
  10. [standalone@localhost:9990 /] cd subsystem=messaging-activemq/server=default/jms-queue=DLQ
  11.  
  12. # Show all Messages in DLQ
  13. [standalone@localhost:9990 jms-queue=DLQ] :list-messages
  14. {
  15. "outcome" => "success",
  16. "result" => [
  17. {
  18. "JMSPriority" => 4,
  19. "JMSType" => "notification",
  20. "JMSMessageID" => "ID:196e2ba8-e4b6-11e6-b830-cf0c2e98a816",
  21. "address" => "jms.queue.DLQ",
  22. "JMSExpiration" => 0,
  23. "__AMQ_CID" => "adc19a1a-e3c4-11e6-b830-cf0c2e98a816",
  24. "_AMQ_ORIG_QUEUE" => "jms.queue.ApplicationInQueue",
  25. "JMSTimestamp" => 1485538144321L,
  26. "messageID" => 129422,
  27. "JMSDeliveryMode" => "PERSISTENT",
  28. "_AMQ_ORIG_MESSAGE_ID" => 129009,
  29. "_AMQ_ORIG_ADDRESS" => "jms.queue.ApplicationInQueue"
  30. }
  31. ]
  32. }
  33.  
  34. # Remove all Messages from DLQ
  35. [standalone@localhost:9990 jms-queue=DLQ] :remove-messages
  36. {
  37. "outcome" => "success",
  38. "result" => 9
  39. }
  40. [standalone@localhost:9990 jms-queue=DLQ]
Add Comment
Please, Sign In to add comment