Link to home
Start Free TrialLog in
Avatar of nicolas_maujean
nicolas_maujean

asked on

which queue is used when we have a reply-to set on a WebsphereMQ queue?

Hi,

    I have a MDB listening on jms/QUERY.ECHCC
@MessageDriven(name = "EchangeCtxCliListenerBean", activationConfig = {
        @ActivationConfigProperty(propertyName = "messagingType", propertyValue = "javax.jms.MessageListener"),
        @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
        @ActivationConfigProperty(propertyName = "destination", propertyValue = "jms/QUERY.ECHCC"),
        @ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "true") })

  they have a reply on queue set, we use the QueueConnectionFactory jms/QCF.ACC.VS.ALL to reply which is containing the following datas (look the file attached to this comment),
I would like to know which Queue is used, how we reply ?

Thanks for your answers,

Nicolas Maujean


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<connection-factories>
  <!-- connection factory definition -->
  <tx-connection-factory>

    <jndi-name>jms/QCF.ACC.VS.ALL</jndi-name>
    <rar-name>wmq.jmsra.rar</rar-name>

    <connection-definition>
      javax.jms.QueueConnectionFactory
    </connection-definition>

    <config-property name="channel" type="java.lang.String">CLT.088304</config-property>
    <config-property name="hostName" type="java.lang.String">IU0603</config-property>
    <config-property name="port" type="java.lang.String">1414</config-property>
    <config-property name="queueManager" type="java.lang.String">MQ06A1</config-property>
    <config-property name="transportType" type="java.lang.String">CLIENT</config-property>

    <security-domain-and-application>JmsXARealm</security-domain-and-application>
  <local-transaction/>
<min-pool-size>1</min-pool-size>
<max-pool-size>10</max-pool-size>
<idle-timeout-minutes>180</idle-timeout-minutes>
<config-property name="CCSID" type="java.lang.String">1208</config-property>
</tx-connection-factory>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=response.eadg">

    <attribute name="JNDIName">
      jms/RESPONSE.EADG
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/00/0883_0143/0143201107151932/00/QA
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=query.notifreco">

    <attribute name="JNDIName">
      jms/QUERY.NOTIFRECO
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/02/0883_0143/0143_0000_C38144/00/EV
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=query.normalizeraddress">

    <attribute name="JNDIName">
      jms/QUERY.NORMALIZERADDRESS
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=0A05/01/A05_88300/NORM_ADR/01/QR
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=response.echccvsbios">

    <attribute name="JNDIName">
      jms/RESPONSE.ECHCCVSBIOS
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/02/0883_0143/0143_0000_C38146/00/QR
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=response.controllercb">

    <attribute name="JNDIName">
      jms/RESPONSE.CONTROLLERCB
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/00/0883_0059/0883_0025_C34652/00/QA
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=query.echcc">

    <attribute name="JNDIName">
      jms/QUERY.ECHCC
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/02/0883_0143/0143_0000_C38140/00/QR
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=query.cmcds">

    <attribute name="JNDIName">
      jms/QUERY.CMCDS
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0143/03/0143_0883/0143201107152259/00/QR
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=response.cigcr">

    <attribute name="JNDIName">
      jms/RESPONSE.CIGCR
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/00/0883_0680/0680260308171151/00/QA
      targetClient=MQ
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=query.eadg">

    <attribute name="JNDIName">
      jms/QUERY.EADG
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0143/03/0143_0883/0143201107151932/00/QR
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=query.echccgcaf">

    <attribute name="JNDIName">
      jms/QUERY.ECHCCGCAF
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/02/0883_0A23/0A23_0000_C38137/00/QR
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=query.sfc">

    <attribute name="JNDIName">
      jms/QUERY.SFC
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/02/0883_0E07/0E07_0000_C38150/00/QR
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=query.notifacte">

    <attribute name="JNDIName">
      jms/RESPONSE.NOTIFACTE
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/02/0883_0143/0143_0000_C38148/00/EV
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=query.cigcr">

    <attribute name="JNDIName">
      jms/QUERY.CIGCR
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/00/0680_0883/0680260308171151/00/QR
      targetClient=MQ
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=query.echccvsbios">

    <attribute name="JNDIName">
      jms/QUERY.ECHCCVSBIOS
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/02/0883_0143/0143_0000_C38146/00/QR
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=query.controllercb">

    <attribute name="JNDIName">
      jms/QUERY.CONTROLLERCB
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0059/04/0059_0986/0059201109171740/00/QR
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=response.normalizeraddress">

    <attribute name="JNDIName">
      jms/RESPONSE.NORMALIZERADDRESS
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=0883/00/883_A05/NORM_ADR/00/QA
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=query.echccpush">

    <attribute name="JNDIName">
      jms/QUERY.ECHCCPUSH
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/02/0883_0143/0774_0000_C38138/00/QR
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=response.sfc">

    <attribute name="JNDIName">
      jms/RESPONSE.SFC
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/02/0883_0E07/0E07_0000_C38150/00/QR
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
  <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=response.cmcds">

    <attribute name="JNDIName">
      jms/RESPONSE.CMCDS
    </attribute>
    <depends optional-attribute-name="RARName">
      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
    </depends>
    <attribute name="Type">javax.jms.Queue</attribute>

    <attribute name="Properties">
      baseQueueName=MQ/0883/00/0883_0143/0143201107152259/00/QA
      targetClient=JMS
      CCSID=1208
    </attribute>
  </mbean>
</connection-factories>
ASKER CERTIFIED SOLUTION
Avatar of Sharon Seth
Sharon Seth
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nicolas_maujean
nicolas_maujean

ASKER

yes, that's it,

it is not defined in the datasource file, thank you
That is a property set from the client , but you may have other ways of specifying that apart from code