Announcement Announcement Module
Collapse
No announcement yet.
default-reply-destination of the Inbound Gateway Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • default-reply-destination of the Inbound Gateway

    Hi all,
    I'm confused about the default-reply-destination of the Inbound Gateway.Now,I can use inbound gateway to send message to message channel,but how can gateway receive the reply,really confused.
    Here is my XML configuration.
    Code:
    <beans:beans xmlns:beans='http://www.springframework.org/schema/beans' 
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' 
    xmlns:si='http://www.springframework.org/schema/integration' 
    xmlns:jms='http://www.springframework.org/schema/integration/jms' 
    xsi:schemaLocation='http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/integration
        http://www.springframework.org/schema/integration/spring-integration.xsd
        http://www.springframework.org/schema/integration/jms
        http://www.springframework.org/schema/integration/jms/spring-integration-jms-1.0.xsd'>
      <beans:bean name='env' class='com.intalio.cloud.pipes.beans.EnvironmentBean'>
        <beans:property name='defaultUser' value='${XRMUser}'/>
        <beans:property name='defaultTenant' value='${XRMTenant}'/>
        <beans:property name='hostName' value='${XRMHostName}'/>
        <beans:property name='tenantFolder' value='${XRMTenantFolder}'/>
      </beans:bean>
      <beans:bean class='org.springframework.beans.factory.config.PropertyPlaceholderConfigurer'/>
      <beans:bean id='connectionFactory' class='org.springframework.jms.connection.CachingConnectionFactory'>
        <beans:property name='targetConnectionFactory'>
          <beans:bean class='org.apache.activemq.ActiveMQConnectionFactory'>
            <beans:property name='brokerURL' value='vm://localhost'/>
          </beans:bean>
        </beans:property>
        <beans:property name='sessionCacheSize' value='10'/>
        <beans:property name='cacheProducers' value='false'/>
      </beans:bean>
      <beans:bean id='request.queue' class='org.apache.activemq.command.ActiveMQQueue'>
        <beans:constructor-arg value='request.queue'/>
      </beans:bean>
      <beans:bean id='reply.queue' class='org.apache.activemq.command.ActiveMQQueue'>
        <beans:constructor-arg value='reply.queue'/>
      </beans:bean>
      <jms:inbound-gateway id='inboundGateway' request-destination='request.queue'
     request-channel='requestChannel' default-reply-destination='reply.queue'/>
      <si:channel id='requestChannel'>
        <si:queue capacity='5'/>
      </si:channel>
    </beans:beans>
    problem:
    now I can send a message to the request channel,but how can I get the reply message from the request channel?
    and I've seen the 'JMSReplyTo' property in Spring Integration Action,that propery is in JMS message or in Spring Integration message?
    Thanks for your help!
Working...
X