2014-10-07 98 views
0

我們計劃將我們的應用程序從WebSphere遷移到JBOSS EAP6.2,作爲我希望將WMQ7.5.2集成到JBOSS EAP的域模式的一部分,我已經在JBOSS論壇和改變了我的domain.xml中進行必要的修改,但我的疑問是低於JBOSS EAP6.2到IBM MQ集成

我有2個節點/ Unix服務器的JBOSS EAP

節點1有以下

1)JBOSS EAP安裝並在域模式下運行(Master),修改domain.xml,host.xml

2)服務器1 - 服務器組的部分

3)QMGR甲

NODE 2具有以下

1)JBOSS EAP安裝和從機模式運行的,修飾的host.xml

2)服務器2 - 同一服務器組的一部分,服務器1

3)QMGR乙

我已經改變整合IBM WMQ我domain.xml中

<subsystem xmlns="urn:jboss:domain:resource-adapters:1.1"> 
     <resource-adapters> 
      <resource-adapter id="wmq.jmsra.rar"> 
       <archive> 
        wmq.jmsra.rar 
       </archive> 
       <transaction-support>NoTransaction</transaction-support> 
       <config-property name="logWriterEnabled"> 
        true 
       </config-property> 
       <config-property name="traceEnabled"> 
        true 
       </config-property> 
       <config-property name="traceLevel"> 
        3 
       </config-property> 
       <config-property name="connectionConcurrency"> 
        5 
       </config-property> 
       <config-property name="maxConnections"> 
        15 
       </config-property> 
       <connection-definitions> 
        <connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl jndi-name="java:jboss/XXXPrimaryQCF" enabled="true" use-java-context="true" pool-name="APTPPrimaryQCF"> 
        <config-property name="port"> 
          1420 
        </config-property> 
        <config-property name="hostName"> 
        XX.XX.XX.XX1 
        </config-property> 
        <config-property name="channel"> 
         SYSTEM.DEF.SVRCONN 
        </config-property> 
        <config-property name="transportType"> 
         CLIENT 
        </config-property> 
        <config-property name="queueManager"> 
         XXXXXX1 
        </config-property> 
       </connection-definition> 

       <connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl jndi-name="java:jboss/XXXSecondaryQCF" enabled="true" use-java-context="true" pool-name="APTPSecondaryQCF"> 
        <config-property name="port"> 
          1420 
        </config-property> 
        <config-property name="hostName"> 
        XX.XX.XX.XX2 
        </config-property> 
        <config-property name="channel"> 
         SYSTEM.DEF.SVRCONN 
        </config-property> 
        <config-property name="transportType"> 
         CLIENT 
        </config-property> 
        <config-property name="queueManager"> 
         XXXXXX2 
        </config-property> 
       </connection-definition> 
       <admin-objects>      
       <admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:jboss/jms/XXXWriterPrimaryQueue" pool-name="OdsWriterQueue"> 
        <config-property name="baseQueueManagerName"> 
          XXXXXX1 
        </config-property> 
        <config-property name="baseQueueName"> 
          XX.XQ.QA 
        </config-property> 
       </admin-object> 
       <admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:jboss/jms/XXXWriterSecondaryQueue" pool-name="OdsWriterQueue"> 
        <config-property name="baseQueueManagerName"> 
          XXXXXX2 
        </config-property> 
        <config-property name="baseQueueName"> 
          XX.XQ.QB 
        </config-property> 
       </admin-object> 

       <admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:jboss/jms/XXXXWriterPrimaryQueue" pool-name="OdsWriterQueue"> 
        <config-property name="baseQueueManagerName"> 
          XXXXXX1 
        </config-property> 
        <config-property name="baseQueueName"> 
          XX.XQ.QA 
        </config-property> 
       </admin-object> 
       </admin-objects> 
      </resource-adapter> 
     </resource-adapters> 
    </subsystem> 


<mdb> 
     <resource-adapter-ref resource-adapter-name="wmq.jmsra.rar"/> 
     <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/> 
</mdb> 


<subsystem xmlns="urn:jboss:domain:ee:1.1"> 
<spec-descriptor-property-replacement>true</spec-descriptor-property-replacement> 
<jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement> 
</subsystem> 

參數在我們的WebSphere環境,我們在節點範圍創建JMS資源,因此服務器1只傳達給QMGR A和服務器2只傳達給QMGR B,但我不知道如何配置這個範圍在這裏JBOSS等節點1是服務器1只具有參考QMGR1和節點2服務器2將參考QMGR2,可一些請指導我

+0

小的更正是我的問題它是如下NODE 2有以下 1)JBOSS EAP安裝和運行在奴隸模式,修改主機。xml 2)服務器2 - 與服務器1相同的服務器組的一部分 3)QMGR B – user3403584 2014-10-07 16:15:09

+0

我編輯了您的問題文本,以包括上述修改意見適用。 – 2014-10-07 20:15:11

+0

根據問題的描述,我認爲這是一個JBOSS配置問題,而不是與MQ相關的配置。使用單個服務器可以實現JBOSS-MQ連接嗎? – Calanais 2014-10-09 08:28:54

回答

0

根據我所看到的配置:

hostName和queueManager屬性都允許表達式 ,這意味着您可以定義他們爲$ {HOSTNAME}$ {的QueueManager}在您的個人資料, 和定義系統屬性主機名和的QueueManager在服務器配置級別,這樣在服務器啓動時,表情都與特定的值替換有關的服務器配置。 原理可以應用於其他變量,只要它們允許表達式,您可以在CLI中使用以下命令進行檢查:read-resource-description()命令,您正在查找「表達式允許」信息和值集爲真。

關於表達一些信息:Expressions - JBoss AS 7.1 - Project Documentation Editor

讓我知道,如果這個信息很清楚,如果需要,我可以用一些例子更新。

最後一個小警告,你是否只爲出站(生成消息)設置你的配置? 因爲如果你也是通過這個配置來配置監聽器,你最終會出錯。

希望這會有所幫助。

+0

Hello Oliver,應用程序邏輯是這樣的:它從文件中讀取記錄並將每條記錄轉換爲消息並寫入隊列,那麼內部的另一個異步線程使用MDB/Listener從隊列中獲取消息並將它們發送到後端系統 – user3403584 2014-10-15 17:13:48

+0

好的,謝謝你的額外上下文。該警告與消費者的配置有關。如您所見,配置中使用的類用於出站消息。入站(AFAIK)不能在JBoss中配置,但需要在單獨的xml中配置。 – Olivier 2014-10-16 07:59:51

+0

讓我知道建議的解決方案是否適合您的需求和/或您是否需要其他信息 – Olivier 2014-10-16 08:36:19