activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgliu <sheng...@sina.com>
Subject Re: Topic In Visual C++,Who can help me?
Date Mon, 13 Nov 2006 05:40:07 GMT

http://www.activemq.com/site/activemq-c-clients.html
Above sample,I want finish durable subscription.I don't konw how about
modification.
I change createQueue() to createTopic(),but only archieve non-durable
subscription.
If I change main function to follow three function,I will receive nothing.
  void Produce() 
 { 
     HelloWorldProducer producer( 5 ); 
     Thread producerThread( &producer ); 
     producerThread.start(); 
     producerThread.join(); 
 } 
 void Consumer() 
 { 
      HelloWorldConsumer consumer( 3000 ); 
      Thread consumerThread( &consumer ); 
      consumerThread.start(); 
      consumerThread.join(); 
 } 
 int main(int argc, char* argv[]) 
 { 
      Produce(); 
      Consumer(); 
 }
How can I do?

-- 
View this message in context: http://www.nabble.com/Topic-In-Visual-C%2B%2B%2CWho-can-help-me--tf2606196.html#a7311736
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message