activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Maher <rma...@google.com>
Subject Re: Embedded Networked Brokers
Date Fri, 14 Apr 2006 18:48:21 GMT

Not yet. The code is very simple. It looks like this:

    public EmbeddedBroker(List<String> transportConnectors, String
networkConnector) throws Exception {
        brokerService.setPersistent(false);
        brokerService.setUseJmx(false);
       
brokerService.setTransportConnectorURIs(transportConnectors.toArray(new
String[0]));
        if (networkConnector != null)
            brokerService.addNetworkConnector(networkConnector);
    }

where transportConnectors is a list of URIs such as vm://localhost,
tcp://localhost:61616, etc...
and  networkConnector is
static://(tcp://127.0.0.1:61616,tcp://127.0.0.1:61626).

Richard


--
View this message in context: http://www.nabble.com/Embedded-Networked-Brokers-t1448274.html#a3921495
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message