Example in http://www.activemq.org/site/cms.html I only change destination = session->createQueue( "TEST.FOO" ); into destination = session->createTopic( "mytopic" ); In producer and consumer,I both change it.
I also changed HelloWorldProducer producer( 1000 ); into HelloWorldProducer producer( 1); Programe run no error.But I see nothing in consumer,see nothing prompt message in producer also. J2SE 5.0 Monitoring & management Consol prompt: In ActiveMQ.Advisory.Consumer.Topic.mytopic ConsumerCount=0,DequeueCount=0,QueueSize=0 these code , queue sucess,but topic ? How can I do? ---------------------------------------------------------------------------------------------------------------------------------- James.Strachan wrote: > > On 11/10/06, sgliu <[EMAIL PROTECTED]> wrote: >> >> but how create topic? >> Only change createQueue() to createTopic()? > > Yes > >> I try it,but not succeed. > > What happens? > >> (can send ,but can not receive) > > Try looking in the JConsole or Web Console or the Visualisation Plugin > to see who's producing and consuming from what destinations. > > http://activemq.org/site/how-can-i-monitor-activemq.html > -- > > James > ------- > http://radio.weblogs.com/0112098/ > > -- View this message in context: http://www.nabble.com/Topic-In-Visual-C%2B%2B%2CWho-can-help-me--tf2606196.html#a7288600 Sent from the ActiveMQ - User mailing list archive at Nabble.com.
