How do I test if a broker/server is alive in ActiveMQ-CPP? If the server is
down and I call cms::Connection::start(), it just hangs. I tried some
failover options like this and it doesn't work:
--
View this message in context:
http://activemq.2283324.n4.nabble.com/Test-if-broker-is-alive-tp4653
Thanks. I figured it out now. Here are the steps in case someone needs it. I
am building it with only VC++ 2010 Express and Windows SDK 7.1 installed.
The steps are for building ActiveMQ-CPP 3.4.1:
1. Build APR and friends. This is another hassle. The issue is the latest
apr-util (1.4.6) doesn't b
I took a peek into Makefile.win and find it references vs2005-build directory
while the package contains vs2008-build. I will go ahead and rename the
directory and see if that works.
--
View this message in context:
http://activemq.2283324.n4.nabble.com/Building-ActiveMQ-CPP-with-VC-2010-Express-
I am trying to build ActiveMQ-CPP with with VC++ 2010 Express and Windows SDK
7.1. VC++ Express has all the tools in normal VS sans the IDE. But I am not
sure where to start. I've built APR and friends. How do I set up so they can
be found by ActiveMQ-CPP build process?
--
View this message in con
Cool. That's good to know. I didn't know std::string is reference counted. I
came from some really old implementation of STL and it wasn't like that.
Thank you so much. Now I am not so afraid of copying strings. :)
--
View this message in context:
http://activemq.2283324.n4.nabble.com/ActiveMQ-C
Just went through the source files and find it actually makes 4 copies of the
text.
MarshallingSupport::readString32() makes 1 from the stream.
ActiveMQTextMessage::getText() then make another one to store in its data
member. Then it makes yet another one as return value. Finally, the
assignment i
Thanks for the warning. Yes, our connections are compressed. So this is a no
go I guess.
--
View this message in context:
http://activemq.2283324.n4.nabble.com/ActiveMQ-CPP-Getting-text-from-a-Text-Message-without-making-temporary-tp4384039p4385205.html
Sent from the ActiveMQ - User mailing list
Is there a way to access the text bytes without creating a temporary
std::string? I am dealing with some large text messages and try not to
allocate memory when making copies. For example, when I get the message:
std::string reply = myMessage->getText();
getText() makes a copy of its data on retu
tabish...@gmail.com wrote:
>
> Can you give the ActiveMQ-CPP 3.4.x branch in SVN a try, I have
> back-ported some fixes that may resolve this issue.
>
> https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.4.x
>
> Thanks.
>
Thanks for the help. I ended up using dynami
stephenju wrote:
>
> I am trying to add ActiveMQ-CPP to my Mac OS X project. The goal is to
> static link everything into the app bundle.
>
> I first installed MacPort and built and installed required parts. Then I
> built and installed ActiveMQ-CPP 3.4.0 with --enable-share
10 matches
Mail list logo