首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >自由配置文件连接到MQ服务器

自由配置文件连接到MQ服务器
EN

Stack Overflow用户
提问于 2014-11-05 10:17:11
回答 1查看 3.2K关注 0票数 0

我们正在试验IBM的WebSphere自由配置文件。现在,我们很难连接到我们的WebSphere MQ服务器。它适用于正常的WebSphere配置文件。我们遵循本教程https://developer.ibm.com/wasdev/2013/06/14/using-websphere-mq-with-the-liberty-profile/,我遇到了以下例外情况:

代码语言:javascript
复制
Stack Dump = java.lang.ClassNotFoundException: com.ibm.mq.jms.MQQueue

知道我能改变什么吗,这样就可以找到这个类了吗?

我正在与自由档案,版本8.5.5.3。

我的server.xml看起来如下:

代码语言:javascript
复制
<server description="new server">

    <!-- Enable features -->
    <featureManager>
        <feature>jsf-2.0</feature>
        <feature>jpa-2.0</feature>
        <feature>jndi-1.0</feature>
        <feature>localConnector-1.0</feature>
        <feature>beanValidation-1.0</feature>
        <feature>wasJmsClient-1.1</feature>
        <feature>jaxws-2.2</feature>
        <feature>jmsMdb-3.1</feature>
    </featureManager>

    <!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
    <httpEndpoint id="defaultHttpEndpoint" httpPort="9080" httpsPort="9443" />

    <application id="myapp" name="myApp" type="ear" location="d:\somehwere">
        <classloader delegation="parentLast" commonLibraryRef="global" />
    </application>

    <variable name="wmqJmsClient.rar.location" value="D:\opt\was_liberty_profile\was_8_5_5_3\wlp\usr\shared\wmq\wmq.jmsra.rar"/>

    <library id="global">
        <file name="d:/dev/mavenrepo/com/h2database/h2/1.4.181/h2-1.4.181.jar" />
    </library>

    <jmsQueue id="MYAPP_QUEUE" jndiName="jms/test/testq">
        <properties.wmqJms 
            baseQueueName="MYAPP.TEST.A" 
            persistence="PERS" 
            targetClient="MQ"/>
    </jmsQueue>

    <jmsQueueConnectionFactory id="TEST.SVRCONN.001" jndiName="jms/test/testcf"><!-- connectionManagerRef="ConMgr2">-->
     <properties.wmqJms 
        channel="WM026D.SVRCONN.001" 
        hostName="i19328.myhost.ch" 
        port="1439" 
        queueManager="WM026D" 
        targetClientMatching="false"/>
    </jmsQueueConnectionFactory>

    <jmsActivationSpec id="fvtapp/fvtmdb/FVTMessageDrivenBean">
  <properties.wmqJms destinationRef="MYAPP_QUEUE"
                     destinationType="javax.jms.Queue"
                     queueManager="WM026D"/>
</jmsActivationSpec>
</server>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-11-05 13:20:44

你的特征是错误的。它应该是:

代码语言:javascript
复制
<feature>wmqJmsClient-1.1</feature>

不是:

代码语言:javascript
复制
<feature>wasJmsClient-1.1</feature>

后一种是内置消息传递,而不是MQ。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26754601

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档