You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Sodan <so...@sodan.dk> on 2008/09/29 08:23:35 UTC

producer->send blocks ( ActiveMQ CPP )

Hi there

Have been integrating ActiveMQ CPP client into our project, and I now have a
question.
For example: if we do 10 producer->send then each send seems to be blocking,
so
1) send
2) wait for ack?
3) goto 1
with a latency of 100ms, 10 sends take 1 second.
I am looking for nonblocking send, so 10 sends will return immediately, and
the application
can go on. The reply from the sends might come in at later time.

We have been reading here:
http://activemq.apache.org/configuring-activemq-cpp.html
and tried the useAsyncSend=true, but it makes no difference.

Are we configuring wrong? or is async send not ready yet for cpp or ?

thanx,
Søren

-- 
View this message in context: http://www.nabble.com/producer-%3Esend-blocks-%28-ActiveMQ-CPP-%29-tp19718849p19718849.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: producer->send blocks ( ActiveMQ CPP )

Posted by Sodan <so...@sodan.dk>.
ok. thanx !

-- 
View this message in context: http://www.nabble.com/producer-%3Esend-blocks-%28-ActiveMQ-CPP-%29-tp19718849p19732422.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: producer->send blocks ( ActiveMQ CPP )

Posted by Timothy Bish <ta...@gmail.com>.
In order to resolve the issues that were being seen with failures on the
client end because of producer flow control the CPP client doesn't
currently have a fully functional async send mechanism.  It is planned
to be working again in the next release.  There are several other pieces
that have to be ironed out before it can be implemented correctly so for
now its disabled. 

On Sun, 2008-09-28 at 23:23 -0700, Sodan wrote:
> Hi there
> 
> Have been integrating ActiveMQ CPP client into our project, and I now have a
> question.
> For example: if we do 10 producer->send then each send seems to be blocking,
> so
> 1) send
> 2) wait for ack?
> 3) goto 1
> with a latency of 100ms, 10 sends take 1 second.
> I am looking for nonblocking send, so 10 sends will return immediately, and
> the application
> can go on. The reply from the sends might come in at later time.
> 
> We have been reading here:
> http://activemq.apache.org/configuring-activemq-cpp.html
> and tried the useAsyncSend=true, but it makes no difference.
> 
> Are we configuring wrong? or is async send not ready yet for cpp or ?
> 
> thanx,
> Søren
> 


Re: producer->send blocks ( ActiveMQ CPP )

Posted by Sodan <so...@sodan.dk>.
ok, it actually does send async, sort of...
I am sending 30 msgs, and with a roundtrip latency of 100 ms
it will take approx 3 seconds to send, since it wont send the next
msg until it has gotten a ack from the previous.



Sodan wrote:
> 
> Hi there
> 
> Have been integrating ActiveMQ CPP client into our project, and I now have
> a question.
> For example: if we do 10 producer->send then each send seems to be
> blocking, so
> 1) send
> 2) wait for ack?
> 3) goto 1
> with a latency of 100ms, 10 sends take 1 second.
> I am looking for nonblocking send, so 10 sends will return immediately,
> and the application
> can go on. The reply from the sends might come in at later time.
> 
> We have been reading here:
> http://activemq.apache.org/configuring-activemq-cpp.html
> and tried the useAsyncSend=true, but it makes no difference.
> 
> Are we configuring wrong? or is async send not ready yet for cpp or ?
> 
> thanx,
> Søren
> 
> 

-- 
View this message in context: http://www.nabble.com/producer-%3Esend-blocks-%28-ActiveMQ-CPP-%29-tp19718849p19722696.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.