Skip to content

Wilma Message Search, Multiple Wilma Instance with Single Search Application

Tamás Kőhegyi edited this page Nov 28, 2019 · 1 revision

How to run multiple Wilma instances with one Wilma Message Search Application?

It may happen that there is a need of using not a single, but multiple Wilma instances, but we would like to use a single Wilma Message Search application to search for specific messages. The necessary setup is described below.

1. Copy Wilma application to different folders

For example:

../../wilmas/instance1/..

../../wilmas/instance2/..

Explanation: Do not start more instances from same location because they will write messages to the same "messages" folder and it can lead to collision because of same file names (same timestamps are in the background). Besides this, the LogFileMaintainer monitors the "messages" folder and removes files from that if it's needed. But in case more Wilma instances have started from the same place, they can delete each other's files.

2. Configure Wilma instances and Wilma Message Search to use different ports

The necessary keys which must be different:

In wilma.conf.properties:

  • internal.wilma.port
  • proxy.port

In message.search.conf.properties:

  • webapp.port
  • jms.broker.port

All Wilma instances must be the same as the jms.broker.port of Wilma Message Search.

3. Configure Wilma Message Search to monitor multiple message folders

message.folders=instance1path/messages,instance2path/messages

4. Start Wilma Message Search app first, then start all Wilma instances and have fun!

Explanation: On Linux it's needed to start Wilma Message Search first for some undiscovered reason. Otherwise they can't communicate to each other properly.

Clone this wiki locally