FioranoMQ has support for handling expired messages on the FioranoMQ server for the PTP sub system of JMS. The Dead Message Queue (DMQ) is created on the server to handle expired messages, which were earlier deleted from the FioranoMQ server.
These programs illustrate the basic functionality of FioranoDMQ using the FioranoMQ Native CSharp Runtime Library. This directory contains the following three programs.
• Sender.cs - It implements a client application sending some data on “primaryQueue”.
Few messages sent have infinite time to live, while remaining have very small TTL.
• Receiver.cs - It receives messages synchronously from “primaryQueue”.
• ReceiverDMQ.cs - It receives messages synchronously from dead message queue.
To run these samples using FioranoMQ, do the following:
1. Before running these samples, make sure that you have set the properties named Fiorano->mq->ptp->Queues->PrimaryQueue->enableDMQ, fiorano->mq->ptp-
>queues->primaryQueue->isDbCleanupEnabled & fiorano->mq->ptp-
>queuingSubSystem->EnableNotificationOnDeadMessage to true.
2. Compile each of the source files. The %FMQ_DIR%\nativecsharp\scripts directory contains a script called csclientbuild.bat which compiles the Native CSharp program.
3. Run the ReceiverDMQ by executing ReceiverDMQ.exe executable file.
4. Run the Sender by executing the Sender.exe executable file.
5. Run the receiver by executing the Receiver.exe file.
Receiver will receive messages that had infinite time to live and remaining messages will be received by ReceiverDMQ.
Download pdf FioranoMQ Native CSharp RTL Sample Applications Guide
Related Searches: fmq, applications guide, infinite time, dmq, message queue
RSS feed for comments on this post · TrackBack URI
Leave a reply