We have the default activemq-broker.xml added to our servicemix and we have a bunch of camel contexts talking to each other through ActiveMQs. We recently did a performance test with the Java VisualVM and we discovered that our ActiveMQs were using the "org.apache.activemq.transport.tcp.TcpTransport". We want it to use the VM protocol since all our camel routes are in the same VM, but after reading a lot of documentation I'm still not sure how to change activemq-broker.xml to achieve this. More so if I read the documentation and activemq-broker.xml properly it should be using VM by default.
So I think I'm confused about how Camel, Activemq and the Spring file are all working together and just need some clarification on this. activemq-broker.xml creates the default embedded broker. activemq-broker.xml also creates the ActiveMQConnectionFactory with brokerURL vm://default... In my Camel spring Bean Xml file that contains my camel route I create the following bean. <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent" /> and in my camel route all I have <route> <from uri="activemq:queue:in-queue-a" /> <to uri="activemq:queue:out-queue-b" /> </route> In doing so I would assume that the bean activemq is getting it's configuration from the activemq-broker.xml and in doing so it would be VM by default since the activemq-broker.xml ActiveMQConnectionFactory has a url of vm://default... So why am I seeing all these tcp calls in the Java Visualizer VM 0_o ?! I'm sooo confused >_< -- View this message in context: http://servicemix.396122.n5.nabble.com/Servicemix-4-5-1-Activemq-Am-I-using-VM-protocol-by-default-tp5718379.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
