1
votes

I have a working proof of concept with EHCache using JMS Replication. I am using Websphere MQ as the message broker. I am able to successfully post messages to an MQ Topic which are then replicated accross all the cache nodes within my cluster but how can I validate that each Cache is in sync with its peers?

  1. Is there a way I can utilize Websphere MQ to log each message received / sent from the topic?
  2. Does anyone know if there's a way through EHCache to achieve something like this?

I know this is a high level question but I am not sure which direction to take with this. If I find help / solutions I will be sure to include source code on how to implement it in this post.

1

1 Answers

2
votes

To answer 1.

Since you are making use of publish/subscribe, you could simply attach a further subscription to the same topic and it will also be given a copy of each message sent and then that application can then save these off as log of all the messages.