Hello,
I have two applications:
A broker and a adm.
I have a problem, my adm don`t connect with broker app, when a using a
broker in different computer.
I have do all using java dsl:
broker app: real ip (192.168.100.30)
BrokerService brk = new BrokerService();
brk.addConnector("tcp://localhost:61616");
brk.start();
DefaultCamelContext camelContext = new DefaultCamelContext();
camelContext.setRegistry(criarRegistro());
camelContext.addRoutes(this);
camelContext.start();
ok...
my adm:
camelContext = new DefaultCamelContext();
Map config = ConfigurationHolder.getFlatConfig();
String ip = (String) config.get("grails.ipBroker");
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory();
factory.setBrokerURL("tcp://192.168.100.30:61616?broker.useJmx=false");
camelContext.addComponent("activemq2",
ActiveMQComponent.jmsComponentAutoAcknowledge(factory));
camelContext.addRoutes(this);
camelContext.start();
i don`t know what i can do.
could anyone help me .
tks
--
View this message in context:
http://camel.465427.n5.nabble.com/Connecting-a-External-ActiveMQ-tp5095680p5095680.html
Sent from the Camel - Users mailing list archive at Nabble.com.