On 5/4/07, Bai Shen <[EMAIL PROTECTED]> wrote:
jlim wrote:
>
> For topics the consumer must be created first since messages are only
> delivered to the available consumers at the time the broker receives the
> message.
>
> For durable subscribers you can create a durable subscriber, kill it,
mer so that it stays subscribed? Whenever I stop
my consumer program, it gets unsubscribed.
--
View this message in context:
http://www.nabble.com/Creating-simple-producer-and-consumer-tf3683279s2354.html#a10321741
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
For topics the consumer must be created first since messages are only
delivered to the available consumers at the time the broker receives the
message.
For durable subscribers you can create a durable subscriber, kill it,
run the producer, then start the subscriber again.
http://java.sun.co
don't quite understand the
durable part. I've read
http://activemq.apache.org/how-do-durable-queues-and-topics-work.html but
AFAIK, the PERSISTANT flag is 'sposed to be already on. I even set it, and
I still wasn't able to get things to work.
--
View this message in context:
nt shows my messages.
But I can't seem to receive them for some reason.
--
View this message in context:
http://www.nabble.com/Creating-simple-producer-and-consumer-tf3683279s2354.html#a10309773
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
if (connection != null) {
try {
connection.close();
}
catch (JMSException e) {
}
}
}
}
}
--
View this message in context:
http://www.nabble.com/Creating-simple-producer-and-consumer-tf3683279s2354.html#a10303400
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
--
James
---
http://macstrac.blogspot.com/
ception e) {
log.info("Exception occurred: " + e);
}
finally {
if (connection != null) {
try {
connection.close();
}
catch (JMSException e) {
}
}
}
Hi,
Can you check if you're calling the connection's start method
(connection.start()) before starting your consumers.
You could also try running the example consumer that is included in the
distribution to check if the problem is with your consumer.
Regards,
Jonas
Bai Shen wrote:
Okay, s
sumer.
What am I missing?
--
View this message in context:
http://www.nabble.com/Creating-simple-producer-and-consumer-tf3683279s2354.html#a10294868
Sent from the ActiveMQ - User mailing list archive at Nabble.com.