HornetQ automatically prefixes "jms.topic" to Topic names. I think you can try:
and see if it workds
Thanks. The producer works but looks like the consumer is not. In Jconsole I see the messages but they are not consumed.
This is the consumer code:
TopicSubscriber durableSubscriber = HornetQJMSMessagingFactory.getSession().createDurableSubscriber(HornetQTopic.createTopic("myFirstTopic"), "consumer1");
Looks like my consumer is broken. It prints only the first I sent. messageCounter keeps going up as if the messages are not acknowladged and I can't read any more messages. If I send more I see messages added and messages count go up and the running consumer doesn't get anything.
Not sure what's happened. Can you post a simple test?
My bad. I mistakenly mixed non JMS hornetq session with JMS session.
works fine now.