Bernhard Trummer created AMQ-5427:
-------------------------------------
Summary: Weblogic example configuration on "JMS to JMS Bridge"
page is wrong / not up-to-date
Key: AMQ-5427
URL: https://issues.apache.org/jira/browse/AMQ-5427
Project: ActiveMQ
Issue Type: Improvement
Affects Versions: 5.10.0, 5.8.0
Reporter: Bernhard Trummer
Priority: Minor
In a project I'm working on, I needed to set up a JMS bridge between WebLogic
and ActiveMQ. I stumbled upon the following page:
http://activemq.apache.org/jms-to-jms-bridge.html
... and tried to apply the configuration example in the section "Example XBean
Configuration to Bridge ActiveMQ to Provider With No URL Setter".
But: this configuration example either is wrong or outdated, because the
attribute jndiOutboundTemplate of <jmsQueueConnector> points to a JndiTemplate.
The required type however is org.apache.activemq.network.jms.JndiLookupFactory.
For my project, I "fixed" this by defining another bean based on
org.apache.activemq.network.jms.JndiTemplateLookupFactory. A working
configuration example in my case is:
{code}
<jmsBridgeConnectors>
<jmsQueueConnector name="WeblogicBridge"
jndiOutboundTemplate="#weblogicJndiLookupFactory"
outboundQueueConnectionFactoryName="jms/ConnectionFactory-0">
<inboundQueueBridges>
<inboundQueueBridge inboundQueueName="jms/Queue-0"
localQueueName="local.fusion.provisioning.response" />
</inboundQueueBridges>
</jmsQueueConnector>
</jmsBridgeConnectors>
...
<bean id="weblogicJndiLookupFactory"
class="org.apache.activemq.network.jms.JndiTemplateLookupFactory">
<constructor-arg ref="weblogicJndiTemplate" />
</bean>
<bean id="weblogicJndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop
key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
<prop key="java.naming.provider.url">t3://127.0.0.1:7001</prop>
</props>
</property>
</bean>
{code}
Thanks.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)