Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # With static connectors and three nodes - artemis-1,artemis-2,artemis-3
- ```
- # We have to create the core queue for the core bridge even though we create the JMS queue
- # later (with the required JNDI bindings). We need to explicitly create the core queue because
- # core bridges are deployed before JMS artifacts and if the core queue isn't available then the
- # bridge will not be deployed (race).
- /subsystem=messaging-activemq/server=default/queue=jms.queue.exampleQueue:add(queue-address=jms.queue.exampleQueue)
- jms-queue add --queue-address=exampleQueue --entries=java:/jms/queue/exampleQueue,java:jboss/exported/jms/queue/exampleQueue
- /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=remote-artemis-1:add(host=artemis-1, port=61616)
- /subsystem=messaging-activemq/server=default/remote-connector=remote-artemis-1:add(socket-binding=remote-artemis-1)
- /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=remote-artemis-2:add(host=artemis-2, port=61616)
- /subsystem=messaging-activemq/server=default/remote-connector=remote-artemis-1:add(socket-binding=remote-artemis-2)
- /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=remote-artemis-3:add(host=artemis-3, port=61616)
- /subsystem=messaging-activemq/server=default/remote-connector=remote-artemis-1:add(socket-binding=remote-artemis-3)
- /subsystem=messaging-activemq/server=default/bridge=exampleQueueBridge:add(\
- static-connectors=[remote-artemis-1 remote-artemis-2 remote-artemis-3],\
- queue-name=jms.queue.exampleQueue,forwarding-address=exampleQueue,\
- ha=true,retry-interval=10000,user=$ARTEMIS_USER, password=$ARTEMIS_PASSWORD)
- ```
Add Comment
Please, Sign In to add comment