|
Akka/Scala example source code file (CamelExtensionTest.java)
The CamelExtensionTest.java Akka example source codepackage docs.camel; import akka.actor.ActorSystem; import akka.camel.Camel; import akka.camel.CamelExtension; import akka.testkit.JavaTestKit; import org.apache.camel.CamelContext; import org.apache.camel.ProducerTemplate; import org.junit.Test; public class CamelExtensionTest { @Test public void getCamelExtension() { //#CamelExtension ActorSystem system = ActorSystem.create("some-system"); Camel camel = CamelExtension.get(system); CamelContext camelContext = camel.context(); ProducerTemplate producerTemplate = camel.template(); //#CamelExtension JavaTestKit.shutdownActorSystem(system); } public void addActiveMQComponent() { //#CamelExtensionAddComponent ActorSystem system = ActorSystem.create("some-system"); Camel camel = CamelExtension.get(system); CamelContext camelContext = camel.context(); // camelContext.addComponent("activemq", ActiveMQComponent.activeMQComponent( // "vm://localhost?broker.persistent=false")); //#CamelExtensionAddComponent JavaTestKit.shutdownActorSystem(system); } } Other Akka source code examplesHere is a short list of links related to this Akka CamelExtensionTest.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.