journaling recovery of unrouted messages after a disaster activemq artemis

Background:
I am trying to recover messages that were sent by an application to an activemq artemis queue for a disaster related scenario. The scenario goes as such artemis broker1 is up and running talking to application1 and another application2 using jms. messages are routed from application2 to artemis to application1. During use application1 dies unexpectedly while the artemis broker1 is still receiving messages from application2 resulting in a bunch of unrouted messages stacking up. The artemis broker1 dies eventually and is restarted. application1 is restarted as well. application2 never dies. when the artemis broker1 comes up I want to recover the unrouted messages. and replay them to application1. I am having problems with recovering the unrouted messages.

Things I tried:

  1. Implemented https://activemq.apache.org/components/artemis/documentation/latest/amqp-broker-connections.html section 4.2 and section 5. Below is section 5 configuration to implement a store-and-forward mirror. this solution does not work. when replaying messages no unrouted messages are replayed.
  2. I have ensured my messages have persistance=”true” in the headers. I expected that the unrouted messages would be journal-ed after being mirrored.
  3. confirmed that the artemis broker and it’s mirror connect via the logs and the console

Expectations: I would assume if the messages are being sent between the broker and the broker’s mirror that the messages would have been journaled. Therefore after a replay I would of had the messages replayed from application2 to application1 via the replay function in the artemis broker1. Is this assumption incorrect? The reason I used the replay function was that no messages automatically triggered upon the artemis broker1 coming back up.

Configuration:

configuration for the mirror in the broker.xml is below. the acceptors have the correct ports for the mirror and the original broker

      <broker-connections>
         <amqp-connection uri="tcp://artemis-mirror:5674" name="mirror" retry-interval="1000" user="myuser" password="mypassword">
            <mirror>
            </mirror>
         </amqp-connection>
      </broker-connections>

reverse mirror


      <broker-connections>
         <amqp-connection uri="tcp://artemis-broker:5672" name="original" retry-interval="1000" user="myuser" password="mypassword">
            <mirror>
            </mirror>
         </amqp-connection>
      </broker-connections>


Journaling configuration

      <persistence-enabled>true</persistence-enabled>

      <journal-retention-directory period="6" unit="DAYS" storage-limit="10G">data/retention</journal-retention-directory>

      <journal-datasync>true</journal-datasync>

      <journal-min-files>2</journal-min-files>

      <journal-pool-files>10</journal-pool-files>

      <journal-device-block-size>4096</journal-device-block-size>

      <journal-file-size>10M</journal-file-size>



Additional details:
I am using version 2.33 of artemismq I followed the disaster recovery example from the examples for the configuration above.

New contributor

user4061776 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật