Dear Team,

I am using WebSphere for both the web server and app server. The web server 
connects to Artemis ActiveMQ using JMS, while the app server connects to 
Artemis ActiveMQ using a resource adapter. Once a request comes into the web 
server, it is sent to an Artemis ActiveMQ queue, and then the request is sent 
to the consumer. However, I want to hold that message for 10 seconds before it 
is delivered to the consumer.

<address-settings>
   <address-setting match="#">
      <dead-letter-address>DLQ</dead-letter-address>
      <expiry-address>ExpiryQueue</expiry-address>
      <redelivery-delay>0</redelivery-delay>
      
<auto-create-dead-letter-resources>true</auto-create-dead-letter-resources>
      <max-size-bytes>-1</max-size-bytes>
      <message-counter-history-day-limit>10</message-counter-history-day-limit>
      <address-full-policy>PAGE</address-full-policy>
      <auto-create-queues>true</auto-create-queues>
      <auto-create-addresses>true</auto-create-addresses>
      <auto-create-jms-queues>true</auto-create-jms-queues>
      <auto-create-jms-topics>true</auto-create-jms-topics>
      <auto-delete-queues>false</auto-delete-queues>
      <auto-delete-addresses>false</auto-delete-addresses>
      <auto-delete-jms-queues>false</auto-delete-jms-queues>
      <auto-delete-jms-topics>false</auto-delete-jms-topics>
      <delay-before-consume>10000</delay-before-consume>     #this 
configuration will wait all the message in the queue for 10sec before delivery 
into consumer
      <expiry-delay>60000</expiry-delay>
   </address-setting>


Regards,
Albaasith Ahamed

Disclaimer
This e-mail (including any file attachment) contains
confidential information and/or may also be legally privileged.
It is intended solely for the use of the named addressees and
any unauthorized dissemination or use by any other person or
entity is strictly prohibited. If you are not the intended
recipient you should not transmit, copy, print, disclose or
otherwise make use of and/or place any reliance on this e-mail
and its contents. If you have received this e-mail in error,
you should immediately notify the sender by return e-mail and
delete all copies from your system. The views, opinion or
advice as may be contained herein are those of the sending
individual and do not necessary represent that of AMLAK
International or bind AMLAK International. E-mails can be
corrupted, altered or falsified and AMLAK International shall
not be liable for any alteration or falsification on this e-mail.

Reply via email to