简体   繁体   English

同步的集群JMS应用程序(Weblogic)

[英]Synchronized, clustered JMS application (Weblogic)

First of all: 首先:

  1. I am using Weblogic 11g with 3 managed servers and 3 JMS servers with a distributed queue and 3 saf agents (for sending the messages). 我正在将Weblogic 11g与3个托管服务器和3个JMS服务器一起使用,这些服务器具有分布式队列和3个saf代理 (用于发送消息)。 The persistent store of all the JMS servers is stored in a network path - 3 files for 3 servers. 所有JMS服务器的持久性存储都存储在网络路径中-3个服务器的3个文件。
  2. I need an application who sends a message to a queue (lets say output.jms.q ) and then waits about 20 seconds to get the message from another queue (lets say input.jms.q ) 我需要一个将消息发送到队列的应用程序(让我们说output.jms.q ),然后等待大约20秒从另一个队列获取消息(让我们说input.jms.q )。
  3. Currently, the application sends the message to its destination and when it receiving the message, the message falls to one of the 3 queues inside the distributed queue. 当前,应用程序将消息发送到其目的地,并且在接收到消息时,该消息将落入分布式队列中的3个队列之一。

In my code, If I send the message from Managed-Server-1, it will try to get the response in Managed-Server-1. 在我的代码中,如果我从Managed-Server-1发送消息,它将尝试在Managed-Server-1中获得响应。 (Using the InitialContext() constructor). (使用InitialContext()构造函数)。 that makes 66% of the messages unreachable! 这使得66%的消息无法访问!

I am aware of the Forward Delay option and I set it to like, 2 seconds. 我知道“ Forward Delay选项,并将其设置为2秒。 When I was in the development, it worked like charm! 在开发过程中,它就像魅力一样! now, when I have a lot of clients testing it, It feels like the Forward Delay is not picking the right server. 现在,当我有很多客户端对其进行测试时,感觉“ Forward Delay没有选择正确的服务器。

When I shut down 2 of my Managed Servers - It works amazingly fast. 当我关闭两台受管服务器时,它的运行速度非常快。 but I am using just one machine instead of 3. 但是我只用一台机器而不是3。

Could it be my setup? 可以是我的设置吗?

For each Managed server there is a JMS server, and one Distributed Queue. 对于每个受管服务器,都有一个JMS服务器和一个Distributed Queue。 I believe that for this thing, I only need one queue, that every JMS Server could connect to. 我相信对于这件事,我只需要一个队列,每个JMS Server都可以连接到该队列。 something like a shared queue instead of distributed. 类似于共享队列而不是分布式队列。

Is it possible? 可能吗?

The solution to my problem was using Distrubuted Topics. 解决我的问题的方法是使用分散主题。 Weblogic 10.3.5+ supports replicating the messages between the servers. Weblogic 10.3.5+支持在服务器之间复制消息。 yeah, its pretty lame.. but that's what I found. 是的,它很la脚..但这就是我发现的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM