How to configure JNDI symlink in WebLogic

时间:2017-02-16 22:57:54

标签: jms weblogic jndi weblogic-10.x

In short I want to make the same object (namely JMS topic) available simultaneously by two JNDI names (one of those will be used for only posting messages and the other only for listening).

If there's no way to create a JNDI symlink, then any other way to make messages posted into A appear in B will work for me as well.

The reason is that I have some legacy code that subscribes to topic B and writes to topic A and I cannot change that code.
Then on some servers I need A and B to be one and the same in order to let one piece of code receive messages sent by another piece of code directly while on other servers A and B can be configured to refer to some external resources.

2 个答案:

答案 0 :(得分:0)

经过大量的实验,我通过为JMS主题及其连接工厂配置映射的外部服务器使其工作。

这是一个说明我配置的wlst脚本:

<form>
    <button type="submit" class="btn btn-default" id="start" onclick="begin();"> START </button>
</form>

<div  id= "ticker" style="border: 1px solid #ccc; height: 500px; weight:600px;">

    <div id="item">
        <!-- I want to display the fetched data by 4 items at a specific time Interval-->           
    </div>

</div>

P.S。:上面的代码是通过将我的巨大wlst脚本中的关键行放在一起设置我所有的JMS资源而创建的,因此它有可能不会按原样工作

答案 1 :(得分:-1)

我想您可以部署一个侦听主题A的客户端,并将其发布到您希望镜像主题的服务器上的主题B.