A
Alan
I am trying out the OpenJMS client.console package examples provided
in the OpenJMS openjms-0.7.6-rc3 download from
http://openjms.sourceforge.net/.
I'm running SimplePublisher and SimpleConsumer in order to gain some
experience and understanding of JMS in general.
I'm able to run SimpleConsumer and then follow that with running
SimplePublisher to see SimpleConsumer consume the published messages
and that works ok.
But if I run SimplePublisher (with arguments "-topic topic1
-persistent") without having first started SimpleConsumer (with
arguments "-topic topic1 -persistent -ackmode auto") then
SimpleConsumer doesn't seem to see my published messages when it is
restarted.
What have I missed here, I was under the assumption that if I ran
using -persistent (deliveryMode = DeliveryMode.PERSISTENT) then it
does not matter if the Consumer is running or not - they will simple
be consumed next time the Consumer runs.
I'm also unsure what running the Publiher with
"connection.createTopicSession(false, Session.CLIENT_ACKNOWLEDGE);" is
supposed to do as I don't see any issues relating to acknoledgements
or lack of.
Can anyone assist?
Many thanks
Alan
in the OpenJMS openjms-0.7.6-rc3 download from
http://openjms.sourceforge.net/.
I'm running SimplePublisher and SimpleConsumer in order to gain some
experience and understanding of JMS in general.
I'm able to run SimpleConsumer and then follow that with running
SimplePublisher to see SimpleConsumer consume the published messages
and that works ok.
But if I run SimplePublisher (with arguments "-topic topic1
-persistent") without having first started SimpleConsumer (with
arguments "-topic topic1 -persistent -ackmode auto") then
SimpleConsumer doesn't seem to see my published messages when it is
restarted.
What have I missed here, I was under the assumption that if I ran
using -persistent (deliveryMode = DeliveryMode.PERSISTENT) then it
does not matter if the Consumer is running or not - they will simple
be consumed next time the Consumer runs.
I'm also unsure what running the Publiher with
"connection.createTopicSession(false, Session.CLIENT_ACKNOWLEDGE);" is
supposed to do as I don't see any issues relating to acknoledgements
or lack of.
Can anyone assist?
Many thanks
Alan