You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Bernhard Trummer (JIRA)" <ji...@apache.org> on 2014/11/09 17:57:33 UTC

[jira] [Created] (AMQ-5427) Weblogic example configuration on "JMS to JMS Bridge" page is wrong / not up-to-date

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)

Re: [jira] [Created] (AMQ-5427) Weblogic example configuration on "JMS to JMS Bridge" page is wrong / not up-to-date

Posted by Jean Godeyne <je...@contribute.be>.
Hi

I'm trying this out on a local setup but it's not working. I see 11 times
the following message in the activemq.log:

 INFO | JmsConnector handling loss of connection [ActiveMQConnection
{id=ID:localhost.localdomain-37267-1532693177361-4:11,clientId=ID:localhost.localdomain-37267-1532693177361-3:11,started=true}]

<prop key="java.naming.provider.url">t3://127.0.0.1:7001</prop>
<prop key="java.naming.security.principal">weblogic</prop>
<prop key="java.naming.security.credentials">welcome1</prop>

and queue en connectionFactory name match with is define in WLS

Regards



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-Dev-f2368404.html