Re: error in subscribing topic

2009-09-14 Thread czy11421
Rob Davies wrote: On 14 Sep 2009, at 00:00, czy11421 wrote: Rob Davies wrote: On 13 Sep 2009, at 20:03, czy11421 wrote: Rob Davies wrote: On 13 Sep 2009, at 17:55, czy11421 wrote: Rob, Thanks for your reply. Here is another question. If I use MessageListener, how could I start to rec

Re: error in subscribing topic

2009-09-13 Thread Rob Davies
On 14 Sep 2009, at 00:00, czy11421 wrote: Rob Davies wrote: On 13 Sep 2009, at 20:03, czy11421 wrote: Rob Davies wrote: On 13 Sep 2009, at 17:55, czy11421 wrote: Rob, Thanks for your reply. Here is another question. If I use MessageListener, how could I start to receive message ? Cod

Re: error in subscribing topic

2009-09-13 Thread czy11421
Rob Davies wrote: On 13 Sep 2009, at 20:03, czy11421 wrote: Rob Davies wrote: On 13 Sep 2009, at 17:55, czy11421 wrote: Rob, Thanks for your reply. Here is another question. If I use MessageListener, how could I start to receive message ? Coding as below, the Listener will NOT output me

Re: error in subscribing topic

2009-09-13 Thread Rob Davies
On 13 Sep 2009, at 20:03, czy11421 wrote: Rob Davies wrote: On 13 Sep 2009, at 17:55, czy11421 wrote: Rob, Thanks for your reply. Here is another question. If I use MessageListener, how could I start to receive message ? Coding as below, the Listener will NOT output message. Did I miss

Re: error in subscribing topic

2009-09-13 Thread czy11421
Rob Davies wrote: On 13 Sep 2009, at 17:55, czy11421 wrote: Rob, Thanks for your reply. Here is another question. If I use MessageListener, how could I start to receive message ? Coding as below, the Listener will NOT output message. Did I miss something ? Thanks. Edward //--

Re: error in subscribing topic

2009-09-13 Thread Rob Davies
On 13 Sep 2009, at 17:55, czy11421 wrote: Rob, Thanks for your reply. Here is another question. If I use MessageListener, how could I start to receive message ? Coding as below, the Listener will NOT output message. Did I miss something ? Thanks. Edward //---

Re: error in subscribing topic

2009-09-13 Thread czy11421
Rob, Thanks for your reply. Here is another question. If I use MessageListener, how could I start to receive message ? Coding as below, the Listener will NOT output message. Did I miss something ? Thanks. Edward //- session = conn.createTopicSession(false, To

Re: error in subscribing topic

2009-09-13 Thread Rob Davies
On 13 Sep 2009, at 17:10, czy11421 wrote: Rob Davies wrote: On 12 Sep 2009, at 23:53, czy11421 wrote: I am running ActiveMQ 5, in the admin web page, I could see "STOCKS.SUNW" in Topics, and this topic is sending out message, then how could I subscribe this topic and get the published

Re: error in subscribing topic

2009-09-13 Thread czy11421
Rob Davies wrote: On 12 Sep 2009, at 23:53, czy11421 wrote: I am running ActiveMQ 5, in the admin web page, I could see "STOCKS.SUNW" in Topics, and this topic is sending out message, then how could I subscribe this topic and get the published message ? I have tried this coding, but I get t

Re: error in subscribing topic

2009-09-12 Thread Rob Davies
On 12 Sep 2009, at 23:53, czy11421 wrote: I am running ActiveMQ 5, in the admin web page, I could see "STOCKS.SUNW" in Topics, and this topic is sending out message, then how could I subscribe this topic and get the published message ? I have tried this coding, but I get the error as botto