Пакетная обработка спецификации активации MDB

У меня есть тема MQ с сообщениями, срок действия которых истекает через 2 часа. Одновременно на эту тему приходят тысячи сообщений.

Я использую MDB и спецификацию активации в Websphere для обработки сообщений. В спецификации активации настроено несколько экземпляров, поэтому они могут обрабатывать сообщения параллельно.

Кажется, что Websphere читает сообщения пакетами каждые 5 секунд, что выглядит так, как будто на это уходит много времени, например:

      [8/7/23 15:10:56:791 BST] 0000012d   1  Received message at 2023-08-07T15:10:56.791
[8/7/23 15:10:56:830 BST] 0000014f   1  Received message at 2023-08-07T15:10:56.830
[8/7/23 15:10:56:830 BST] 00000127   1  Received message at 2023-08-07T15:10:56.830
[8/7/23 15:10:56:966 BST] 00000132   1  Received message at 2023-08-07T15:10:56.966
[8/7/23 15:10:57:040 BST] 000000f4   1  Received message at 2023-08-07T15:10:57.040
[8/7/23 15:10:57:040 BST] 00000132   1  Received message at 2023-08-07T15:10:57.040
[8/7/23 15:10:57:040 BST] 0000012d   1  Received message at 2023-08-07T15:10:57.040
[8/7/23 15:10:57:040 BST] 00000157   1  Received message at 2023-08-07T15:10:57.040
[8/7/23 15:10:57:040 BST] 00000139   1  Received message at 2023-08-07T15:10:57.040
[8/7/23 15:10:57:040 BST] 0000014f   1  Received message at 2023-08-07T15:10:57.040
[8/7/23 15:11:02:421 BST] 0000015c   1  Received message at 2023-08-07T15:11:02.421
[8/7/23 15:11:02:456 BST] 00000127   1  Received message at 2023-08-07T15:11:02.456
[8/7/23 15:11:02:627 BST] 0000013b   1  Received message at 2023-08-07T15:11:02.627
[8/7/23 15:11:02:682 BST] 00000134   1  Received message at 2023-08-07T15:11:02.682
[8/7/23 15:11:02:756 BST] 0000014f   1  Received message at 2023-08-07T15:11:02.756
[8/7/23 15:11:02:767 BST] 00000157   1  Received message at 2023-08-07T15:11:02.767
[8/7/23 15:11:02:821 BST] 00000139   1  Received message at 2023-08-07T15:11:02.821
[8/7/23 15:11:06:967 BST] 000000f4   1  Received message at 2023-08-07T15:11:06.967
[8/7/23 15:11:07:025 BST] 0000012d   1  Received message at 2023-08-07T15:11:07.025
[8/7/23 15:11:07:036 BST] 0000015c   1  Received message at 2023-08-07T15:11:07.035
[8/7/23 15:11:07:092 BST] 0000013b   1  Received message at 2023-08-07T15:11:07.092
[8/7/23 15:11:07:122 BST] 00000134   1  Received message at 2023-08-07T15:11:07.122
[8/7/23 15:11:07:165 BST] 0000014f   1  Received message at 2023-08-07T15:11:07.165
[8/7/23 15:11:07:207 BST] 00000127   1  Received message at 2023-08-07T15:11:07.207
[8/7/23 15:11:07:247 BST] 00000139   1  Received message at 2023-08-07T15:11:07.247
[8/7/23 15:11:07:300 BST] 000000f4   1  Received message at 2023-08-07T15:11:07.300
[8/7/23 15:11:07:356 BST] 0000012d   1  Received message at 2023-08-07T15:11:07.356
[8/7/23 15:11:12:696 BST] 0000015c   1  Received message at 2023-08-07T15:11:12.696
[8/7/23 15:11:12:761 BST] 00000132   1  Received message at 2023-08-07T15:11:12.761
[8/7/23 15:11:12:827 BST] 00000134   1  Received message at 2023-08-07T15:11:12.827
[8/7/23 15:11:12:891 BST] 0000014f   1  Received message at 2023-08-07T15:11:12.891
[8/7/23 15:11:12:968 BST] 00000127   1  Received message at 2023-08-07T15:11:12.968
[8/7/23 15:11:18:327 BST] 0000015c   1  Received message at 2023-08-07T15:11:18.327
[8/7/23 15:11:18:359 BST] 0000015c   1  Received message at 2023-08-07T15:11:18.359
[8/7/23 15:11:18:359 BST] 00000127   1  Received message at 2023-08-07T15:11:18.359
[8/7/23 15:11:18:359 BST] 00000132   1  Received message at 2023-08-07T15:11:18.359
[8/7/23 15:11:18:364 BST] 0000012d   1  Received message at 2023-08-07T15:11:18.364
[8/7/23 15:11:18:368 BST] 00000127   1  Received message at 2023-08-07T15:11:18.368
[8/7/23 15:11:18:368 BST] 0000015c   1  Received message at 2023-08-07T15:11:18.368
[8/7/23 15:11:18:387 BST] 00000127   1  Received message at 2023-08-07T15:11:18.387
[8/7/23 15:11:18:423 BST] 00000157   1  Received message at 2023-08-07T15:11:18.423
[8/7/23 15:11:18:601 BST] 00000134   1  Received message at 2023-08-07T15:11:18.601
[8/7/23 15:11:18:645 BST] 0000014f   1  Received message at 2023-08-07T15:11:18.645
[8/7/23 15:11:18:673 BST] 0000014f   1  Received message at 2023-08-07T15:11:18.673
[8/7/23 15:11:18:709 BST] 0000013b   1  Received message at 2023-08-07T15:11:18.709
[8/7/23 15:11:18:745 BST] 00000139   1  Received message at 2023-08-07T15:11:18.745
[8/7/23 15:11:18:787 BST] 000000f4   1  Received message at 2023-08-07T15:11:18.787
[8/7/23 15:11:18:827 BST] 000000f4   1  Received message at 2023-08-07T15:11:18.827
[8/7/23 15:11:18:867 BST] 00000132   1  Received message at 2023-08-07T15:11:18.867
[8/7/23 15:11:18:901 BST] 0000012d   1  Received message at 2023-08-07T15:11:18.901
[8/7/23 15:11:21:992 BST] 00000127   1  Received message at 2023-08-07T15:11:21.992
[8/7/23 15:11:22:036 BST] 00000157   1  Received message at 2023-08-07T15:11:22.036
[8/7/23 15:11:22:085 BST] 00000134   1  Received message at 2023-08-07T15:11:22.085
[8/7/23 15:11:22:130 BST] 0000015c   1  Received message at 2023-08-07T15:11:22.130
[8/7/23 15:11:22:180 BST] 0000013b   1  Received message at 2023-08-07T15:11:22.180
[8/7/23 15:11:22:206 BST] 00000139   1  Received message at 2023-08-07T15:11:22.206
[8/7/23 15:11:22:218 BST] 000000f4   1  Received message at 2023-08-07T15:11:22.218
[8/7/23 15:11:22:262 BST] 0000014f   1  Received message at 2023-08-07T15:11:22.262
[8/7/23 15:11:22:300 BST] 0000012d   1  Received message at 2023-08-07T15:11:22.300
[8/7/23 15:11:22:336 BST] 00000127   1  Received message at 2023-08-07T15:11:22.336
[8/7/23 15:11:22:374 BST] 00000157   1  Received message at 2023-08-07T15:11:22.374
[8/7/23 15:11:26:414 BST] 00000134   1  Received message at 2023-08-07T15:11:26.414
[8/7/23 15:11:26:488 BST] 0000015c   1  Received message at 2023-08-07T15:11:26.488
[8/7/23 15:11:26:568 BST] 0000013b   1  Received message at 2023-08-07T15:11:26.568
[8/7/23 15:11:26:630 BST] 00000132   1  Received message at 2023-08-07T15:11:26.630
[8/7/23 15:11:26:698 BST] 000000f4   1  Received message at 2023-08-07T15:11:26.698
[8/7/23 15:11:32:124 BST] 0000014f   1  Received message at 2023-08-07T15:11:32.124
[8/7/23 15:11:32:195 BST] 0000012d   1  Received message at 2023-08-07T15:11:32.195
[8/7/23 15:11:32:214 BST] 00000157   1  Received message at 2023-08-07T15:11:32.214
[8/7/23 15:11:32:214 BST] 00000134   1  Received message at 2023-08-07T15:11:32.214
[8/7/23 15:11:32:214 BST] 00000132   1  Received message at 2023-08-07T15:11:32.214
[8/7/23 15:11:32:214 BST] 00000139   1  Received message at 2023-08-07T15:11:32.214
[8/7/23 15:11:32:215 BST] 000000f4   1  Received message at 2023-08-07T15:11:32.215
[8/7/23 15:11:32:218 BST] 000000f4   1  Received message at 2023-08-07T15:11:32.218
[8/7/23 15:11:32:251 BST] 00000134   1  Received message at 2023-08-07T15:11:32.251
[8/7/23 15:11:32:433 BST] 0000013b   1  Received message at 2023-08-07T15:11:32.433
[8/7/23 15:11:32:474 BST] 000000f4   1  Received message at 2023-08-07T15:11:32.474

Как я могу настроить спецификацию активации, чтобы не ждать так долго между пакетами?

0 ответов

Другие вопросы по тегам