The file you posted appears to be corrupted, you may want to try that again or you can open a Jira issue and attach it there.
Regards Tim. On Mon, 2009-03-16 at 21:07 -0700, manua wrote: > I tried to copy paste the same code, but when I tried to run it, i get the > following error, > > [r...@domu-12-31-39-03-00-d3 examples]# ./simple_producer > ===================================================== > Starting the example: > ----------------------------------------------------- > No valid response received for command: Begin Class = ProducerInfo > Value of ProducerInfo::ID_PRODUCERINFO = 6 > Value of ProducerId is Below: > Begin Class = ProducerId > Value of ProducerId::ID_PRODUCERID = 123 > Value of ConnectionId = de41a612-6662-4270-935d-f807987dab85 > Value of Value = 1 > Value of SessionId = 0 > No Data for Class BaseDataStructure > End Class = ProducerId > > Value of Destination is Below: > Begin Class = ActiveMQTopic > Begin Class = ActiveMQDestination > Value of exclusive = false > Value of ordered = false > Value of advisory = false > Value of orderedTarget = coordinator > Value of physicalName = > Value of options = Begin Class activemq::util::Properties: > End Class activemq::util::Properties: > > No Data for Class BaseDataStructure > End Class = ActiveMQDestination > End Class = ActiveMQTopic > > Value of DispatchAsync = 0 > Value of WindowSize = 0 > Begin Class = BaseCommand > No Data for Class BaseDataStructure > Response Required = 1 > Command Id = 4 > End Class = BaseCommand > End Class = ProducerInfo > , check broker. > FILE: activemq/transport/filters/ResponseCorrelator.cpp, LINE: 112 > FILE: activemq/transport/filters/ResponseCorrelator.cpp, LINE: 120 > FILE: activemq/connector/openwire/OpenWireFormatNegotiator.cpp, > LINE: 107 > FILE: activemq/connector/openwire/OpenWireConnector.cpp, LINE: 1533 > FILE: activemq/connector/openwire/OpenWireConnector.cpp, LINE: 650 > FILE: activemq/core/ActiveMQSession.cpp, LINE: 358 > No valid response received for command: Begin Class = ProducerInfo > Value of ProducerInfo::ID_PRODUCERINFO = 6 > Value of ProducerId is Below: > Begin Class = ProducerId > Value of ProducerId::ID_PRODUCERID = 123 > Value of ConnectionId = de41a612-b259-5970-935d-f807987dab85 > Value of Value = 1 > Value of SessionId = 0 > No Data for Class BaseDataStructure > End Class = ProducerId > > Value of Destination is Below: > Begin Class = ActiveMQTopic > Begin Class = ActiveMQDestination > Value of exclusive = false > Value of ordered = false > Value of advisory = false > Value of orderedTarget = coordinator > Value of physicalName = > Value of options = Begin Class activemq::util::Properties: > End Class activemq::util::Properties: > > No Data for Class BaseDataStructure > End Class = ActiveMQDestination > End Class = ActiveMQTopic > > Value of DispatchAsync = 0 > Value of WindowSize = 0 > Begin Class = BaseCommand > No Data for Class BaseDataStructure > Response Required = 1 > Command Id = 4 > End Class = BaseCommand > End Class = ProducerInfo > , check broker. > FILE: activemq/transport/filters/ResponseCorrelator.cpp, LINE: 112 > FILE: activemq/transport/filters/ResponseCorrelator.cpp, LINE: 120 > FILE: activemq/connector/openwire/OpenWireFormatNegotiator.cpp, > LINE: 107 > FILE: activemq/connector/openwire/OpenWireConnector.cpp, LINE: 1533 > FILE: activemq/connector/openwire/OpenWireConnector.cpp, LINE: 650 > FILE: activemq/core/ActiveMQSession.cpp, LINE: 358 > ----------------------------------------------------- > Finished with the example. > ===================================================== > [r...@domu-12-31-39-03-00-d3 examples]# > > Please find my SimpleProducer.cpp file attached with this message. > > I modified the consumer code also in the similar fashion, but still its not > working. > Kindly look into the code and tell me your views.Thanks for your help. > > Regards, > Manu > > > > Timothy Bish wrote: > > > > On Mon, 2009-03-16 at 13:02 -0700, manua wrote: > >> I tried to implement multiple topics in activemq cpp. I modified the > >> example, > >> simpleProducer.cpp to have multiple producers and then created multiple > >> destinations (multiple topics). With each producer,pointing to a > >> different > >> topic, I am trying to send a diferent message.It compiles fine, but at > >> run > >> time goves the segmentation fault and error, no response recieved for > >> ..Producerinfo. > >> > >> Any help/(sample code) in this direction will be highly appreciated. > > > > There isn't anything that should prevent you from creating multiple > > Producers, if should be as simple as cut and paste from the sample code. > > You can post your modified source code and we can take a look and see of > > there's something going on there. > > > > Regards > > Tim. > > > > > > -- > > Tim Bish > > http://fusesource.com > > http://timbish.blogspot.com/ > > > > > > > > > > > http://www.nabble.com/file/p22552277/SimpleProducer.cpp SimpleProducer.cpp -- Tim Bish http://fusesource.com http://timbish.blogspot.com/