You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "Alexander L." <fe...@yandex.ru> on 2009/07/30 20:33:38 UTC

Choose Stomp instead of OpenWire

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.


Re: Choose Stomp instead of OpenWire

Posted by Timothy Bish <ta...@gmail.com>.
On Thu, 2009-07-30 at 11:33 -0700, 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.

To choose Stomp on the CPP client you must set a WireFormat option on
the URI as documented here:

http://activemq.apache.org/cms/configuring.html

Take a look at the main example in the CPP source bundle the code
documents the parameters needed to use Stomp.  

Be advised that that you can't use things like Failover and Temp
Destinations when you choose to use the Stomp protocol.

Regards
Tim.




Re: Choose Stomp instead of OpenWire

Posted by Rob Davies <ra...@gmail.com>.
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/