Announcement Announcement Module
Collapse
No announcement yet.
Error using JMS Outbound Gateway Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error using JMS Outbound Gateway

    I am trying out the examples from the jms samples package and have had success with the inbound and the outbound channel adapters. However, I keep getting a time out error when I try the gateways. Here is my config file:

    <bean id="connectionFactory" class="org.springframework.jms.connection.CachingC onnectionFactory">
    <property name="targetConnectionFactory">
    <bean class="org.apache.activemq.ActiveMQConnectionFacto ry">
    <property name="brokerURL" value="vm://localhost" />
    </bean>
    </property>
    <property name="sessionCacheSize" value="10" />
    <property name="cacheProducers" value="false" />
    </bean>

    <bean id="requestQueue" class="org.apache.activemq.command.ActiveMQQueue">
    <constructor-arg value="queue.demo" />
    </bean>
    <bean id="replyQueue" class="org.apache.activemq.command.ActiveMQQueue">
    <constructor-arg value="queue.reply" />
    </bean>

    <sioller id="poller" default="true">
    <si:interval-trigger interval="1000" />
    </sioller>

    <siublish-subscribe-channel id="dataInputChannel"/>
    <si:gateway service-interface="com.lmco.jmsexample.Gateway" id="theGateway" default-request-channel="dataInputChannel"/>
    <bean class="com.lmco.jmsexample.Dispatcher">
    <property name="gateway" ref="theGateway"/>
    </bean>

    <jms:outbound-gateway request-channel="dataInputChannel"
    request-destination="requestQueue"
    reply-channel="jmsReplyToStdoutChannel"/>

    <si:channel id="jmsReplyToStdoutChannel"/>

    <stream:stdout-channel-adapter channel="jmsReplyToStdoutChannel" append-newline="true"/>

    Here is the exception I get:
    org.springframework.beans.MethodInvocationExceptio n: Property 'gateway' threw exception; nested exception is org.springframework.integration.message.MessageTim eoutException: failed to receive JMS response within timeout of: 5000ms

    Is there any other configuration I am missing with the outbound gateway.

  • #2
    Please use [ code ] tags and avoid duplicating posts.

    Comment

    Working...
    X