Hi,
You should do the following
ActiveMQConfiguration config = new ActiveMQConfiguration();
config.setBrokerURL("tcp:....");
// Use Spring JmxTemplate to create and control a pooled
ConnectionFactory
config.setUsePooledConnection(true);
config.createPooledConnectionFactory(new
ActiveMQConnectionFactory("tcp:...");
// The commented line below creates a static component object..
// ActiveMQComponent activeMQComponent =
ActiveMQComponent.activeMQComponent("tcp://localhost:61618");
// You might want to use something like
ActiveMQComponent activeMQComponent = ActiveMQComponent(config);
camelContext.addComponent("amq", activeMQComponent);
This should do the trick...
Cheers,
Ashwin...
-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com
Blog: http://opensourceknowledge.blogspot.com
---------------------------------------------------------
--
View this message in context:
http://camel.465427.n5.nabble.com/AMQ-PooledConnectionFactory-configured-in-Java-always-going-to-localhost-61616-tp4677516p4678261.html
Sent from the Camel - Users mailing list archive at Nabble.com.