I need to set message expiry for my message in a JMS Topic. I have tried by setting the properties of message.setJMSExpiration() and producer.getTimeToLive() methods. But I don't think so the messages which I posted still alive in Topic which I posted.
My doubt is whether these properties are used to discard the unsubscribed message from topic after the expiration time arrived? or after the message subscribed by a particular subscriber.
I have used selector to identify the particular client.
If any of the above property is not enough to make message expire then do I need any other configuration to make the message expire in producer side?
Am using Apache ActiveMQ 5.8.0 with JDK 1.6