How to setup JMS bridge to ActiveMQ on Weblogic 11g

▼魔方 西西 提交于 2019-12-24 11:53:32

问题


I'm novice guy in JCA and JMS parts of Java EE stack, and now I'm struggling with JMS bridge configuration between two JMS providers (ActiveMQ 5.9.1 -> Weblogic 11g 10.3.5), and I need some help to understand all the moving parts and required configuration elements.

What I've done already:

  1. JMS server configured on Weblogic 11g node

  2. Configured Foreign Server - AMQ connection factory, and source queue objects bound to the local JNDI (OK: conn. factory and queue objects visible in server jndi tree)

  3. Create JMS Bridge with default props (OK - I think)

  4. Created the Bridge Destination for target destination (Weblogic) with default configuration - where possible (OK: Resource Adapter deployed)

  5. Created the Bridge Destination for source destination (AMQ) - JNDI properties, default props where possible (FAIL - Cannot connect to the source destination)

And there is the question:

By default there are two resource adapters (XA, non-XA), do I need install the AMQ specific resource adapter?

I've assumed that yes, so I've downloaded rar file on Weblogic machine, then tried to install with Weblogic Console (Deployment -> Install), but.. another trouble - no way to achive Running state in Deployments view. I've read that all jars from rar need to be placed in Weblogic CLASSPATH, so I've copied them to Weblogic lib directory. But, with no success so far.

So, what I did wrong, where is the gap or an error in this configuration?

I have studied the Oracle documentation, but I feel still didn't get the complete understanding of the bridge config :((

Any explanatory replies very appreciated!!!


回答1:


Ok, problem solved. I've used wrong JNDI names of connection factory and queue - local names defined in Foreign Server configuration instead of names on remove JMS server.

Actually, no additional configuration like Foreign Server, or Resource Adapter is needed here.



来源:https://stackoverflow.com/questions/24620246/how-to-setup-jms-bridge-to-activemq-on-weblogic-11g

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!