Java Code Examples for org.apache.activemq.camel.component.ActiveMQComponent#setBrokerURL()
The following examples show how to use
org.apache.activemq.camel.component.ActiveMQComponent#setBrokerURL() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RouteIT.java From fcrepo-camel-toolbox with Apache License 2.0 | 6 votes |
@Override protected void addServicesOnStartup(final Map<String, KeyValueHolder<Object, Dictionary>> services) { final String jmsPort = System.getProperty("fcrepo.dynamic.jms.port", "61616"); final String webPort = System.getProperty("fcrepo.dynamic.test.port", "8080"); final ActiveMQComponent component = new ActiveMQComponent(); component.setBrokerURL("tcp://localhost:" + jmsPort); component.setExposeAllQueues(true); final FcrepoComponent fcrepo = new FcrepoComponent(); fcrepo.setBaseUrl("http://localhost:" + webPort + "/fcrepo/rest"); fcrepo.setAuthUsername(FEDORA_USERNAME); fcrepo.setAuthPassword(FEDORA_PASSWORD); services.put("broker", asService(component, "osgi.jndi.service.name", "fcrepo/Broker")); services.put("fcrepo", asService(fcrepo, "osgi.jndi.service.name", "fcrepo/Camel")); }
Example 2
Source File: RouteIT.java From fcrepo-camel-toolbox with Apache License 2.0 | 5 votes |
@Override protected void addServicesOnStartup(final Map<String, KeyValueHolder<Object, Dictionary>> services) { final String jmsPort = System.getProperty("fcrepo.dynamic.jms.port", "61616"); final String webPort = System.getProperty("fcrepo.dynamic.test.port", "8080"); final ActiveMQComponent amq = new ActiveMQComponent(); amq.setBrokerURL("tcp://localhost:" + jmsPort); amq.setExposeAllQueues(true); final FcrepoComponent fcrepo = new FcrepoComponent(); fcrepo.setBaseUrl("http://localhost:" + webPort + "/fcrepo/rest"); fcrepo.setAuthUsername(FEDORA_AUTH_USERNAME); fcrepo.setAuthPassword(FEDORA_AUTH_PASSWORD); services.put("broker", asService(amq, "osgi.jndi.service.name", "fcrepo/Broker")); services.put("fcrepo", asService(fcrepo, "osgi.jndi.service.name", "fcrepo/Camel")); }
Example 3
Source File: RouteIT.java From fcrepo-camel-toolbox with Apache License 2.0 | 5 votes |
@Override protected void addServicesOnStartup(final Map<String, KeyValueHolder<Object, Dictionary>> services) { final String jmsPort = System.getProperty("fcrepo.dynamic.jms.port", "61616"); final ActiveMQComponent component = new ActiveMQComponent(); component.setBrokerURL("tcp://localhost:" + jmsPort); component.setExposeAllQueues(true); services.put("broker", asService(component, "osgi.jndi.service.name", "fcrepo/Broker")); }
Example 4
Source File: InventoryRoute.java From camelinaction2 with Apache License 2.0 | 5 votes |
/** * Setup JMS component */ @Produces @Named("jms") public static JmsComponent jmsComponent() { ActiveMQComponent jms = new ActiveMQComponent(); jms.setBrokerURL("tcp://localhost:61616"); return jms; }
Example 5
Source File: InventoryRoute.java From camelinaction2 with Apache License 2.0 | 5 votes |
/** * Setup JMS component */ @Produces @Named("jms") public static JmsComponent jmsComponent() { ActiveMQComponent jms = new ActiveMQComponent(); jms.setBrokerURL("tcp://localhost:61616"); return jms; }