You follow these steps
- Create a durable topic subscription
- Kill the consumer
- Publish some messages to the topic
- Restart the subscriber
But you don't receive the messages?
To be able to deliver messages to offline durable topic subscribers you must mark the message as being persistent. To do this set the PERSISTENT_DELIVERY mode on the MessageProducer as described here.