I would like to use asyncDispatch to solve this problem. When I try to create a ConnectionFactory using the URL (in Spring configuration, if that matters at all):
brokerURL:="tcp://localhost:61616?asyncDispatch=true" I get invalid connection parameter exception. The brokerURL tcp://localhost:61616?broker.asyncDispatch=true" yields the same result. What is the correct way to opt for asyncDispatch when creating a connection factory using Spring configuration? Also, what is the difference between asyncDispatch and asyncSend? Regards /Ur -------------- Original message ---------------------- From: [EMAIL PROTECTED] > > I am using ActiveMQ 4.1.1 with a very simple peer to peer > connection. I find that after a few exchanges, the messages > from A to B stall - the clients of A seem to hang while sending > a message (FWIW, only TextMessages are used): > > Peer A: > <transportConnectors> > <transportConnector name="openwire" > uri="tcp://localhost:61616?wireFormat.maxInactivityDuration=0"/> > </transportConnectors> > > <networkConnectors> > <networkConnector name="remote-broker" uri="static://(tcp://B:61616)" > /> > </networkConnectors> > > Peer B: > <transportConnectors> > <transportConnector name="openwire" > uri="tcp://localhost:61616?wireFormat.maxInactivityDuration=0"/> > </transportConnectors> > > <networkConnectors> > <networkConnector name="remote-broker" uri="static://(tcp://A:61616)" > /> > </networkConnectors> > > I would ike to understand what could be causing this problem. > At the smetime I want to enable asyncDispatch. > > When the URL syntax > > tcp://localhost:61616?asyncSend=true > > is rejected as "bad connetion parameter". The same result with > > tcp://localhost:61616?broker.asyncSend=true > > > Please help! > > Regards > > /Ur >