activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: Choose Stomp instead of OpenWire
Date Fri, 31 Jul 2009 07:58:01 GMT

On 30 Jul 2009, at 19:33, Alexander L. wrote:

>
> Hello,
>
> As shown on http://activemq.apache.org/cms/, activeMQ supports both  
> Stomp
> and OpenWire.
>
> When I do
>
>        pConnectionFactory =
>
> cms::ConnectionFactory::createCMSConnectionFactory(getBrokerURI());
>
>         m_pConnection =
>                pConnectionFactory->createConnection(getUsername(),
> getPassword());
>
> I get an exception
> OpenWireFormatNegotiator::requestWire format negotiation timeout:  
> peer did
> not send his wire format.
>
> This is because there is Stomp on the other end.
>
> How can I configure activeMQ to use Stomp connector instead of  
> OpenWire?
> I can not find applicable method in API...
>
> Thanks.
> -- 
> View this message in context: http://www.nabble.com/Choose-Stomp-instead-of--OpenWire-tp24744326p24744326.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Have you enabled the broker for stomp - e.g. do you have:
<transportConnectors>
    <transportConnector name="stomp" uri="stomp://localhost:61613"/>
</transportConnectors>

inside your broker config (or something similar)?

Rob Davies
I work here: http://fusesource.com
My Blog: http://rajdavies.blogspot.com/
I'm writing this: http://www.manning.com/snyder/





Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message