Questions about message logging and topic TTL
We're in the final stages of testing our application. Basically a producer application is sending small, non-persistent messages once every 10 seconds and once every second to an auto-created topic. The consumer application(s) listening are then doing data display of this 1 second and 10 second data.
Testing the client we noticed it complained of a single 10 second message not being received. We verified that the message was sent by the producer. My question is whether there is a logging setting on the IMQ server that could be used to log the receipt and delivery of every message, perhaps by JMSMessageID to a particular topic? The only idea we could think of is to use 'imqcmd metrics' to track the number of messages in/out, but this isn't as useful for us.
Any ideas you could provide would be greatly appreciated.
[854 byte] By [
guy_davis] at [2007-11-25 17:36:45]

# 1
imqbrokerd does not support tracing at this level, so metrics is probably the best approach for now.
If a subscriber is not getting a message it is usually because of one of the following:
1. The message is expiring. If you are using message expiration make sure the clocks are synchronized between the clients and the server. imqbrokerd will log a message when it has expired messages.
2. The subscriber was down when the message was produced (and it is not a durable subscriber).
3. You have set a size limit on the destination or system wide that is resulting in messages being shedded as specified by the limit behavior.
With non-persistent messages you can get an additional level of reliability by setting the following ConnectionFactory property to true:
ConnectionConfiguration.imqAckOnProduce
this adds a handshake between the server and client when a message is sent and provides a mechanism for imqbrokerd to propogate additional message production errors back to the client.
The following document at sunsolve.sun.com provides more details:
ID70117 Sun Java[TM] System Message Queue: Tuning 3.0.1 and 3.5 For Robustness
Joe
http://wwws.sun.com/software/products/message_queue/
jfdp at 2007-7-3 13:49:36 >
