0 Replies Latest reply on Aug 12, 2015 8:16 AM by kimpe

    Remote Queue Access

    kimpe


      Hi Guys,

      i'm looking for below setup,

       

      my aim is to setup an mdb, which should be able to access QUEUES from an WEBServer like below,
      i'm able to do half part i.e i can able to read message from WEBINQUEUE, but unable to post response in WEBOUTQUEUE.

      Capture.PNG

       

      my MDB is looking line below,

      <message-driven>
        <ejb-name>TransactedMDB</ejb-name>
        <activation-config>
            <activation-config-property>
                  <activation-config-property-name>destinationType</activation-config-property-name>
                  <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
                  <activation-config-property-name>destination</activation-config-property-name>
                  <activation-config-property-value>java:/queue/WEBINQueue</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
                  <activation-config-property-name>connectorClassName</activation-config-property-name>
                  <activation-config-property-value>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
                  <activation-config-property-name>connectionParameters</activation-config-property-name>
                  <activation-config-property-value>host=localhost;port=5445</activation-config-property-value>
            </activation-config-property>
        </activation-config>
        <resource-ref>
            <res-ref-name>jms/QueueConnectionFactory</res-ref-name>
            <res-type>javax.jms.ConnectionFactory</res-type>
            <jndi-name>java:/ConnectionFactory</jndi-name>
        </resource-ref>
        <message-destination-ref>
            <message-destination-ref-name>jms/ReplyQueue</message-destination-ref-name>
            <jndi-name>java:/queue/WEBOUTQueue</jndi-name>
        </message-destination-ref>
      </message-driven>
      

       

      can anyone guide me, what changes i need to do at MESSAGE-DESTINATIO-REF level so that my mdb can contact WEBOUTQueue