Re: Creating simple producer and consumer

2007-05-04 Thread James Strachan
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,

Re: Creating simple producer and consumer

2007-05-04 Thread Bai Shen
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.

Re: Creating simple producer and consumer

2007-05-03 Thread Jonas Lim
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

Re: Creating simple producer and consumer

2007-05-03 Thread Bai Shen
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:

Re: Creating simple producer and consumer

2007-05-03 Thread Bai Shen
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.

Re: Creating simple producer and consumer

2007-05-03 Thread James Strachan
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/

Re: Creating simple producer and consumer

2007-05-03 Thread Bai Shen
ception e) { log.info("Exception occurred: " + e); } finally { if (connection != null) { try { connection.close(); } catch (JMSException e) { } } }

Re: Creating simple producer and consumer

2007-05-02 Thread Jonas Lim
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

Creating simple producer and consumer

2007-05-02 Thread Bai Shen
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.