You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "ali.raza" <al...@ifkaar.com> on 2011/10/15 11:25:27 UTC

Apache ActiveMQ configuration

I'm working on a project in which I need to produce messages from node.js and
consume them using a Java class. But the problem is node.js uses stomp as a
client to pub/sub message queue. And stomp uses its own protocol instead of
using TCP. On the other hand, the Java client uses TCP for it.

Can we set two transportConnectors for one broker? For Example:

<transportConnectors>
        <transportConnector name="stomp" uri="stomp://localhost:61613"/>
    </transportConnectors>

    <transportConnectors>
        <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
    </transportConnectors>


--
View this message in context: http://activemq.2283324.n4.nabble.com/Apache-ActiveMQ-configuration-tp3907097p3907097.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: Apache ActiveMQ configuration

Posted by "ali.raza" <al...@ifkaar.com>.
Hi Dejan Bosanac, 

Thanks for your reply. I have found the solution i was using two separate
tags for transport connector.
Before
<transportConnectors> 
        <transportConnector name="stomp" uri="stomp://localhost:61613"/> 
    </transportConnectors> 
 
    <transportConnectors> 
        <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/> 
    </transportConnectors> 

After

<transportConnectors> 
        <transportConnector name="stomp" uri="stomp://localhost:61613"/> 
        <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/> 
    </transportConnectors> 

now it is fixed.


--
View this message in context: http://activemq.2283324.n4.nabble.com/Apache-ActiveMQ-configuration-tp3907097p3914239.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: Apache ActiveMQ configuration

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi Ali,

yes, you can use all the connectors you need. Messages will be appropriately
converted by the broker.


Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Sat, Oct 15, 2011 at 11:25 AM, ali.raza <al...@ifkaar.com> wrote:

> I'm working on a project in which I need to produce messages from node.js
> and
> consume them using a Java class. But the problem is node.js uses stomp as a
> client to pub/sub message queue. And stomp uses its own protocol instead of
> using TCP. On the other hand, the Java client uses TCP for it.
>
> Can we set two transportConnectors for one broker? For Example:
>
> <transportConnectors>
>        <transportConnector name="stomp" uri="stomp://localhost:61613"/>
>    </transportConnectors>
>
>    <transportConnectors>
>        <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
>    </transportConnectors>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Apache-ActiveMQ-configuration-tp3907097p3907097.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>