unable to compile activemq-cpp on redhat linux 4.0 with gcc 3.4
i have been trying for a while to compile activemq-cpp on redhat linux 4.0. if anybody can point me to an rpm or a binary load for the ame i will be grateful. i tried to download active-mq from the site and it did not compile even when i diabled some of the warnings. even downloading from the fue site did not help. i will post the error mesages on monday. but if any one has access to a binary or rpm it will be greatly appreciated. thx -- View this message in context: http://www.nabble.com/unable-to-compile-activemq-cpp-on-redhat-linux-4.0-with-gcc-3.4-tp15925879s2354p15925879.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: unable to compile activemq-cpp on redhat linux 4.0 with gcc 3.4
Thanks for the info . First i was able to get the active-mq-cpp to compile on ubuntu with no issues unfortunately i am still stuck on linux_redhat EL 4 ( our production problem) . In your comment i see something about copying the cppunit file . what file do you copy where ? First i modified configure.ac to comment out the -fstrict-aliasing and w-Strict-aliasing=2 and then it started compiling but however it is now stuck at "g++ -DHAVE_CONFIG_H -I. -I. -I../.. -ansi -pedantic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/local/apr/include/apr-0 -I/usr/local/apr/include/apr-0 -W -Wall -fPIC -Wno-long-long -g -O2 -MT activemq/exceptions/libactivemq_cpp_la-ActiveMQException.lo -MD -MP -MF activemq/exceptions/.deps/libactivemq_cpp_la-ActiveMQException.Tpo -c activemq/exceptions/ActiveMQException.cpp -fPIC -DPIC -o activemq/exceptions/.libs/libactivemq_cpp_la-ActiveMQException.o activemq/exceptions/ActiveMQException.h:35: sorry, not implemented: adjusting pointers for covariant returns activemq/exceptions/ActiveMQException.h:35: sorry, not implemented: adjusting pointers for covariant returns make[2]: *** [activemq/exceptions/libactivemq_cpp_la-ActiveMQException.lo] Error 1 make[2]: Leaving directory `/home/software/activemq-cpp-2.2/src/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/software/activemq-cpp-2.2' make: *** [all] Error 2" Any Help will be greatly appreciated sfred wrote: > > I had similar problems for weeks until I finally ignored the build > instructions on the ActiveMQ-CPP site and simply built with the default > redhat 4 (update 4) autotools: libtool, autoconf, automake (rather than > upgrading to the versions they recommended). The one key piece of > information that helped me was to copy the cppunit.m4 into the > activemq-cpp/m4 directory because the build scripts couldn't find my > non-standard cppunit install location. The other strange thing that > happened to me was that the tar.gz file that I downloaded had bogus > filenames that had to be fixed - specifically, there were 20 - 30 files > renamed from *.cpp to *.cpp664 and *.h to *.h664. Do a find . > -name '*.00664' to see if you get the same problem. I'm not sure where > that piece got messed up, but once I got those few things worked out, I > was able to build it without too much trouble. > > If you want more help. Tell me specifically where the build process is > failing for you. > > Scott > > > subrash wrote: >> >> i have been trying for a while to compile activemq-cpp on redhat linux >> 4.0. if anybody can point me to an rpm or a binary load for the ame i >> will be grateful. i tried to download active-mq from the site and it did >> not compile even when i diabled some of the warnings. even downloading >> from the fue site did not help. >> i will post the error mesages on monday. but if any one has access to a >> binary or rpm it will be greatly appreciated. >> thx >> > > -- View this message in context: http://www.nabble.com/unable-to-compile-activemq-cpp-on-redhat-linux-4.0-with-gcc-3.4-tp15925879p18490578.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
activemq-cpp binaries for redhat linux el4
does anybody know where i can download binaries/rpm for activemq-cpp for redhat linux el4 -- View this message in context: http://www.nabble.com/activemq-cpp-binaries-for-redhat-linux-el4-tp18490674p18490674.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Example Durable Subscription activemq-cpp
Iam new to activemq-cpp and active-mq . iam trying out the durable subscription feature. I have a publisher and a subscriber and it did not work. I expected the following to happen # a Subscriber Starts and the establishes a durable connection with a topic # A Publisher publishes to topic # The Subscribes recieves those messages # The Subscribes Closes the session # The Publisher Publishese nxt batch to topic # The Subscriber Starts up again # Subscribes reestablishes Durable Connection # Subscribes Recieves all the messages ( This did not happen ) I have basicallly modified the example code for implementing this if anybody can help me it will be great there are 4 files uploaded with this message two are just the main programs the other two are the actual classes http://www.nabble.com/file/p19056934/AsyncConsumer.C AsyncConsumer.C http://www.nabble.com/file/p19056934/Producer.C Producer.C http://www.nabble.com/file/p19056934/SimpleAsyncConsumer.C SimpleAsyncConsumer.C http://www.nabble.com/file/p19056934/SimpleProducer.C SimpleProducer.C -- View this message in context: http://www.nabble.com/Example-Durable-Subscription-activemq-cpp-tp19056934p19056934.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
No valid response received for command activemq-CPP
I have a very simple piublisher publishing 2000 messages it seems to lose connection repeatedly as send fails after some time is there some parameter i can set so that this does not happen . these errors do not occur if i use NON_PERSISTENT mode i have attached three files to this message the first is the main program SimpleProducer.C the second is class file Producer.C the third is the output file x.log the platorm is Enterprise Redhat linux 5 32 bit http://www.nabble.com/file/p20116900/Producer.C Producer.C http://www.nabble.com/file/p20116900/x.log x.log http://www.nabble.com/file/p20116900/SimpleProducer.C SimpleProducer.C -- View this message in context: http://www.nabble.com/No-valid-response-received-for-command-activemq-CPP-tp20116900p20116900.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: No valid response received for command activemq-CPP
subrash wrote: > > I have a very simple piublisher publishing 2000 messages it seems to lose > connection repeatedly as send fails after some time > is there some parameter i can set so that this does not happen . these > errors do not occur if i use NON_PERSISTENT mode > i have attached three files to this message > the first is the main program SimpleProducer.C > the second is class file Producer.C > the third is the output file x.log > the platorm is Enterprise Redhat linux 5 32 bit > http://www.nabble.com/file/p20116900/Producer.C Producer.C > http://www.nabble.com/file/p20116900/x.log x.log > http://www.nabble.com/file/p20116900/SimpleProducer.C SimpleProducer.C > the same thing happens whether i use stomp or openwire -- View this message in context: http://www.nabble.com/No-valid-response-received-for-command-activemq-CPP-tp20116900p20117482.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: No valid response received for command activemq-CPP
the activemq-cpp client version is 2.2 Timothy Bish wrote: > > What version of the client are you using? > > Regards > Tim. > > On Wed, 2008-10-22 at 11:58 -0700, subrash wrote: >> >> >> subrash wrote: >> > >> > I have a very simple piublisher publishing 2000 messages it seems to >> lose >> > connection repeatedly as send fails after some time >> > is there some parameter i can set so that this does not happen . these >> > errors do not occur if i use NON_PERSISTENT mode >> > i have attached three files to this message >> > the first is the main program SimpleProducer.C >> > the second is class file Producer.C >> > the third is the output file x.log >> > the platorm is Enterprise Redhat linux 5 32 bit >> > http://www.nabble.com/file/p20116900/Producer.C Producer.C >> > http://www.nabble.com/file/p20116900/x.log x.log >> > http://www.nabble.com/file/p20116900/SimpleProducer.C SimpleProducer.C >> > >> the same thing happens whether i use stomp or openwire > > > -- View this message in context: http://www.nabble.com/No-valid-response-received-for-command-activemq-CPP-tp20116900p20118248.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: No valid response received for command activemq-CPP
that solved the issue Timothy Bish wrote: > > I'd recommend updating to the 2.2.1 release as this will probably > resolve the issue since it still looks like you are running into a case > where producer flow control is needed to block you from producing more > messages then the broker can accommodate. > > If you still have issues after updating we can look into this further. > > Regards > Tim. > > On Wed, 2008-10-22 at 12:38 -0700, subrash wrote: >> the activemq-cpp client version is 2.2 >> >> Timothy Bish wrote: >> > >> > What version of the client are you using? >> > >> > Regards >> > Tim. >> > >> > On Wed, 2008-10-22 at 11:58 -0700, subrash wrote: >> >> >> >> >> >> subrash wrote: >> >> > >> >> > I have a very simple piublisher publishing 2000 messages it seems to >> >> lose >> >> > connection repeatedly as send fails after some time >> >> > is there some parameter i can set so that this does not happen . >> these >> >> > errors do not occur if i use NON_PERSISTENT mode >> >> > i have attached three files to this message >> >> > the first is the main program SimpleProducer.C >> >> > the second is class file Producer.C >> >> > the third is the output file x.log >> >> > the platorm is Enterprise Redhat linux 5 32 bit >> >> > http://www.nabble.com/file/p20116900/Producer.C Producer.C >> >> > http://www.nabble.com/file/p20116900/x.log x.log >> >> > http://www.nabble.com/file/p20116900/SimpleProducer.C >> SimpleProducer.C >> >> > >> >> the same thing happens whether i use stomp or openwire >> > >> > >> > >> > > > -- View this message in context: http://www.nabble.com/No-valid-response-received-for-command-activemq-CPP-tp20116900p20133056.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
activemq-cpp durable subscriptions
does anybody hav an example of a simple durable subscription using activemq-cpp. it does not seem to work correctly in my case . It seems to work fine if i use a JAVA subscriber but does not work with activem-cpp subscriber. # a Subscriber Starts and the establishes a durable connection with a topic # A Publisher publishes to topic # The Subscribes recieves those messages # The Subscribes Closes the session # The Publisher Publishese nxt batch to topic # The Subscriber Starts up again # Subscribes reestablishes Durable Connection # Subscribes Recieves all the messages ( This did not happen ) But the above happened if the SUBSCRIBER was a JAVA SUBSCRIBER Attached is my example for the following activemqcpp Publisher : SimplePublisher.C and Publisher.C activemqcpp Subscriber: SimpleAsyncConsumer.C amd AsynscConsumer.C JAVA Subscriber.java http://www.nabble.com/file/p20134409/SimpleProducer.C SimpleProducer.C http://www.nabble.com/file/p20134409/SimpleAsyncConsumer.C SimpleAsyncConsumer.C http://www.nabble.com/file/p20134409/AsyncConsumer.C AsyncConsumer.C http://www.nabble.com/file/p20134409/Producer.C Producer.C http://www.nabble.com/file/p20134409/Subscriber.java Subscriber.java -- View this message in context: http://www.nabble.com/activemq-cpp-durable-subscriptions-tp20134409p20134409.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.