Guest User

Untitled

a guest
Feb 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. # With static connectors and three nodes - artemis-1,artemis-2,artemis-3
  2.  
  3. ```
  4. # We have to create the core queue for the core bridge even though we create the JMS queue
  5. # later (with the required JNDI bindings). We need to explicitly create the core queue because
  6. # core bridges are deployed before JMS artifacts and if the core queue isn't available then the
  7. # bridge will not be deployed (race).
  8.  
  9. /subsystem=messaging-activemq/server=default/queue=jms.queue.exampleQueue:add(queue-address=jms.queue.exampleQueue)
  10. jms-queue add --queue-address=exampleQueue --entries=java:/jms/queue/exampleQueue,java:jboss/exported/jms/queue/exampleQueue
  11.  
  12. /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=remote-artemis-1:add(host=artemis-1, port=61616)
  13. /subsystem=messaging-activemq/server=default/remote-connector=remote-artemis-1:add(socket-binding=remote-artemis-1)
  14. /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=remote-artemis-2:add(host=artemis-2, port=61616)
  15. /subsystem=messaging-activemq/server=default/remote-connector=remote-artemis-1:add(socket-binding=remote-artemis-2)
  16. /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=remote-artemis-3:add(host=artemis-3, port=61616)
  17. /subsystem=messaging-activemq/server=default/remote-connector=remote-artemis-1:add(socket-binding=remote-artemis-3)
  18.  
  19. /subsystem=messaging-activemq/server=default/bridge=exampleQueueBridge:add(\
  20. static-connectors=[remote-artemis-1 remote-artemis-2 remote-artemis-3],\
  21. queue-name=jms.queue.exampleQueue,forwarding-address=exampleQueue,\
  22. ha=true,retry-interval=10000,user=$ARTEMIS_USER, password=$ARTEMIS_PASSWORD)
  23. ```
Add Comment
Please, Sign In to add comment