WAS Liberty Profile连接到MQ Server

时间:2014-11-05 10:17:11

标签: java jms ibm-mq websphere-liberty

我们正在试验IBM的WebSphere Liberty配置文件。现在我们无法连接到WebSphere MQ服务器。它适用于普通的WebSphere概要文件。我们按照本教程https://developer.ibm.com/wasdev/2013/06/14/using-websphere-mq-with-the-liberty-profile/进行了以下异常:

Stack Dump = java.lang.ClassNotFoundException: com.ibm.mq.jms.MQQueue

知道我可以改变什么,以便找到这个课程吗?

我正在使用Liberty Profile,版本8.5.5.3。

我的server.xml看起来如下:

<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>

1 个答案:

答案 0 :(得分:3)

你有错误的功能。它应该是:

<feature>wmqJmsClient-1.1</feature>

<feature>wasJmsClient-1.1</feature>

后者用于内置消息而不是MQ。

相关问题