如何在Weblogic 11g上设置到ActiveMQ的JMS桥 [英] How to setup JMS bridge to ActiveMQ on Weblogic 11g

查看:380
本文介绍了如何在Weblogic 11g上设置到ActiveMQ的JMS桥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Java EE堆栈的JCA和JMS部分的新手,现在我在两个JMS提供程序(ActiveMQ 5.9.1-> Weblogic 11g 10.3)之间的 JMS桥配置上苦苦挣扎. 5),并且我需要一些帮助来了解所有活动部件和所需的配置元素.

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.

我已经完成的工作:

  1. 在Weblogic 11g节点上配置的JMS服务器

  1. JMS server configured on Weblogic 11g node

已配置的外部服务器-AMQ连接工厂,以及绑定到本地JNDI的源队列对象(确定:服务器jndi树中可见的连接工厂和队列对象)

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)

使用默认道具创建 JMS Bridge (确定-我认为)

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

使用默认配置为目标目标(Weblogic)创建了网桥目标(可能的话)(确定:已部署资源适配器)

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

源目标(AMQ)创建了桥目标-JNDI属性,并在可能的情况下设置了默认道具(失败-无法连接到源目标)

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

还有一个问题:

默认情况下,有两个资源适配器(XA,非XA),我是否需要安装AMQ专用资源适配器?

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

我以为是,所以我已经在Weblogic机器上下载了 rar 文件,然后尝试使用Weblogic Console进行安装(部署->安装),但是..另一个麻烦-没办法在部署"视图中达到运行"状态.我已经读过,rar中的所有jar都需要放在Weblogic CLASSPATH中,因此我已经将它们复制到Weblogic lib目录中.但是,到目前为止没有成功.

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?

我已经研究了Oracle文档,但是我仍然没有完全理解bridge config:((

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!!!

推荐答案

好,问题解决了.我使用了错误的连接工厂和队列的JNDI名称-在外部服务器配置中定义的本地名称,而不是在删除JMS服务器上的名称.

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.

这篇关于如何在Weblogic 11g上设置到ActiveMQ的JMS桥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆