activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patlap <>
Subject The synchronous receive memory link
Date Fri, 29 Nov 2013 19:18:09 GMT

I use the CMSTemplateReceiver.cpp example provided with active MQ. This
class implement a simple synchronous receiver. (no onMessage Listener

BytesMessage* cmsMessage = (BytesMessage*)cmsTemplate->receive();
if( cmsMessage ) {
    printf( "%s received a message\n", cmsMessage->getBodyBytes() );
    delete cmsMessage;

Each time the cmsMessage is deleted, the process always take more memory. 

The only difference with the example provided with activeMQ is I use a
BytesMessage instead of a TextMessage.

Thanks for help

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message