Remember spring is just an XML way to call setters and getters. But here is
how I do it in JBoss:
camelContext, final JndiRegistry registry) {
log.info("Using AMQ Connection factory with JNDI Name: " +
config.activeMQConnectionFactoryJNDIName());
final ConnectionFactory amqcf =
registry.lookupByNameAndType(config.activeMQConnectionFactoryJNDIName(),
ConnectionFactory.class);
final ActiveMQComponent amq = (ActiveMQComponent)
camelContext.getComponent("activemq");
amq.setConnectionFactory(amqcf);
// -- Set Transaction manager because we will be using transacted()
final PlatformTransactionManager txmgr = new JtaTransactionManager();
amq.setTransactionManager(txmgr);
*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
<http://www.linkedin.com/pub/robert-simmons/40/852/a39>*
On Tue, Feb 25, 2014 at 3:11 AM, Rural Hunter <[email protected]> wrote:
> Got it. Thanks.
>
> δΊ 2014/2/25 16:05, Claus Ibsen ει:
>
> Yeah check the source code of unit tests for camel-jms
>>
>>
>>
>