Try using tcp://0.0.0.0:61616 for your broker URL. If that doesn't work, from the adm machine, type "telnet 192.168.100.30 61616". You should connect and see a few lines of garbage on the screen. If you do not, check the firewalls on the machines. If the garbage comes up, try your code again.
Brian On Dec 22, 2011, at 4:21 PM, ricardofaccioli wrote: > 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();ad > > 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.