I've set up a simple Spring app, which connects to a running HornetQ instance and sends a series of messages to a predefined queue. The problem is that the client (simple websocket client coming with HornetQ) only receives messages if it's already subscribed to a queue. Is there a way to store messages in a STOMP queue and then read them on connect with a consumer?
I've looked through both HornetQ and Stomp documentation, but since i don't really know what i'm looking for i've found only "retain" header, which seems to be proprietary with ActiveMQ and only retains last message in topic.