我遇到一个问题,我的JMS消息桥似乎每隔30秒就被WLS停止并重新启动。
据我所知,网桥实际上正常工作,WLS控制台将其报告为“活动,转发消息”。在桥梁两端的两个队列都是我所知道的最佳工作。
每30秒在我的WLS日志中显示的消息如下所示。每次都会重复这六行。
####<2011-sep-20 kl 12:48 CEST> <Info> <MessagingBridge> <host> <server> <[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1316515696279> <BEA-200020> <Bridge "NameOfBridge" is stopped.>
####<2011-sep-20 kl 12:48 CEST> <Info> <MessagingBridge> <host> <server> <[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1316515696279> <BEA-200033> <Bridge "NameOfBridge" is obtaining connections to the two adapters.>
####<2011-sep-20 kl 12:48 CEST> <Info> <Common> <host> <server> <[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1316515696284> <BEA-000628> <Created "1" resources for pool "eis/jms/WLSConnectionFactoryJNDIXA", out of which "1" are available and "0" are unavailable.>
####<2011-sep-20 kl 12:48 CEST> <Info> <Common> <host> <server> <[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1316515696340> <BEA-000628> <Created "1" resources for pool "eis/jms/WLSConnectionFactoryJNDIXA", out of which "1" are available and "0" are unavailable.>
####<2011-sep-20 kl 12:48 CEST> <Info> <MessagingBridge> <host> <server> <[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1316515696340> <BEA-200032> <Bridge "NameOfBridge" is configured to disallow degradation of its quality of service in cases where the configured quality of service is unreachable.>
####<2011-sep-20 kl 12:48 CEST> <Info> <MessagingBridge> <host> <server> <[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1316515696340> <BEA-200030> <Bridge "NameOfBridge" is configured to work in "Exactly-once" mode, and it is actually working in "Exactly-once" mode.>
查看配置后,唯一相似的数字是“Transaction Timeout”,设置为30
。这意味着网桥直接打开一个事务,然后失败(或者因为我配置了错误,或者只是因为没有发生任何事情),然后关闭事务/网桥并重新启动它。我不希望这种行为,但也许它是如何运作的?
我正在使用WLS 10.3.0.0。
更新:config.xml
的相关配置:
<messaging-bridge>
<name>NameOfBridge</name>
<target>servercluster</target>
<source-destination>NameOfBridgeLocalDest</source-destination>
<target-destination>NameOfBridgeRemoteDest</target-destination>
<selector></selector>
<quality-of-service>Exactly-once</quality-of-service>
<started>true</started>
</messaging-bridge>
<jms-bridge-destination>
<name>NameOfBridgeLocalDest</name>
<adapter-jndi-name>eis.jms.WLSConnectionFactoryJNDIXA</adapter-jndi-name>
<classpath></classpath>
<connection-factory-jndi-name>JmsXA</connection-factory-jndi-name>
<initial-context-factory>weblogic.jndi.WLInitialContextFactory</initial-context-factory>
<connection-url></connection-url>
<destination-jndi-name>queue/NameOfQueue</destination-jndi-name>
<destination-type>Queue</destination-type>
</jms-bridge-destination>
<jms-bridge-destination>
<name>NameOfBridgeRemoteDest</name>
<adapter-jndi-name>eis.jms.WLSConnectionFactoryJNDIXA</adapter-jndi-name>
<classpath></classpath>
<connection-factory-jndi-name>ConnectionFactory</connection-factory-jndi-name>
<initial-context-factory>org.jnp.interfaces.NamingContextFactory</initial-context-factory>
<connection-url>jnp://server:port</connection-url>
<destination-jndi-name>queue/NameOfQueue</destination-jndi-name>
<destination-type>Queue</destination-type>
</jms-bridge-destination>
答案 0 :(得分:2)
As per this Oracle support document(需要Oracle帐户),这是异步JMS网桥的正常行为。
文档中的问题描述如下:
使用WebLogic Server 9.2及更高版本;在已配置JMS并设置JMS消息传递桥的域中,JMS消息桥的日志记录显示每30秒断开连接并重新连接到源目标。
从Oracle的角度来看,这是正常的预期行为:
这是一种轮询机制,通常在源目标中没有消息时以及消息桥处于空闲状态时发生。
由于这是预期的异步桥,因此停止它的方法是禁用JMS消息传递桥的“启用异步模式”选项,这将停止轮询。