问题描述
IBM WebSphere Liberty Profile
提供了"wmqJmsClient-2.0"
与IBM MQ
交互的功能
Open Liberty是否具有等同功能?
Is there an equivalent for Open Liberty?
[已更新]
如果不是(看起来如此),如何将Open Liberty连接到IBM MQ?
If not (as it seems), how to connect Open Liberty to IBM MQ?
我是否应该基于IBM MQ官方RAR文件(当前为"9.1.0.0-IBM-MQ-Java-InstallRA.jar"
)开发与WLP中等效的Open Liberty功能"?
Should I develop an Open Liberty "feature" equivalent of the one available in WLP, based on the IBM MQ official RAR file (currently "9.1.0.0-IBM-MQ-Java-InstallRA.jar"
) ?
还是在Open Liberty中配置这种连接的通用"方法?
Or is there a "generic" way to configure such a connection in Open Liberty?
(我想这个问题是由其他队列管理器(例如ActiveMQ
,Artemis
,OpenMQ
等)引起的)
(I guess the question arises with other Queue Managers likeActiveMQ
,Artemis
,OpenMQ
etc.)
推荐答案
OpenLiberty具有jms-2.0功能,该功能允许您配置提供JMS的JCA资源适配器,例如 WebSphere MQ资源适配器.
OpenLiberty has the jms-2.0 feature, which allows you to configure a JCA resource adapter which provides JMS such as the WebSphere MQ resource adapter.
server.xml中的配置类似于以下内容,
Configuration in server.xml would be something like the following,
<server>
<featureManager>
<feature>jms-2.0</feature>
<feature>jndi-1.0</feature>
<feature>servlet-3.1</feature>
</featureManager>
<resourceAdapter id="wmqjmsra" location="C:/adapters/wmq/wmq.jmsra.rar"/>
<jmsConnectionFactory jndiName="jms/cf1">
<properties.wmqjmsra .../>
</jmsConnectionFactory>
...
这篇关于是否有“功能"?在Open Liberty中连接到IBM MQ,是否等同于Liberty Profile中的wmqJmsClient-2.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!