Results 1 to 10 of 14

Thread: tcp-outbound-gateway - failed to send Message to channel

Threaded View

  1. #1
    Join Date
    Jan 2011
    Posts
    6

    Default tcp-outbound-gateway - failed to send Message to channel

    Hello,

    I am trying to follow the tcp sample off GitHub (http://git.springsource.org/spring-i...ver/readme.txt) and I am getting an error when trying to send a message to a tcp server. The error I get is "failed to send Message to channel." Below is my xml configuration. What am I doing wrong :-(. I am using Spring Integration 2.0.1 RELEASE.

    Code:
    <beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
    			 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    			 xmlns="http://www.springframework.org/schema/integration"
    			 xmlns:context="http://www.springframework.org/schema/context"
    			 xmlns:jms="http://www.springframework.org/schema/integration/jms"
    			 xmlns:ip="http://www.springframework.org/schema/integration/ip"			 
    			 xmlns:tx="http://www.springframework.org/schema/tx"
    			 xsi:schemaLocation="http://www.springframework.org/schema/beans
    								 http://www.springframework.org/schem...-beans-3.0.xsd
    								 http://www.springframework.org/schema/context
    								 http://www.springframework.org/schem...ontext-3.0.xsd
    								 http://www.springframework.org/schema/integration
    								 http://www.springframework.org/schem...ntegration.xsd
    								 http://www.springframework.org/schema/integration/jms
    								 http://www.springframework.org/schem...ration-jms.xsd
    								 http://www.springframework.org/schema/integration/ip
    								 http://www.springframework.org/schem...gration-ip.xsd
    								 http://www.springframework.org/schema/tx
    								 http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">		
    
    	<beans:bean id="appContext" class="com.company.transport.util.AppContext" />
    	
    	<ip:tcp-connection-factory id="clientTcpConnectionFactory" type="client" host="localhost" port="59260" using-nio="true" so-timeout="10000" />
    	<gateway id="gw" service-interface="com.company.transport.client.monitor.TransportClientMonitorGateway" default-request-channel="outgoingTcpMonitorChannel"/>
    	<channel id="outgoingTcpMonitorChannel" />
    	
    	<ip:tcp-outbound-channel-adapter channel="outgoingTcpMonitorChannel" connection-factory="clientTcpConnectionFactory" />
    	
    	<ip:tcp-connection-factory id="crLfServer"
    		type="server"
    		port="59260"/>
    			
    	<ip:tcp-inbound-channel-adapter
    		connection-factory="crLfServer"
    		channel="serverBytes2StringChannel"/>
    	
    	<channel id="toSA" />
    	
    	<transformer id="serverBytes2String"
    		input-channel="serverBytes2StringChannel"
    		output-channel="toSA" 
    		expression="new String(payload)"/>	
    	
    	<beans:bean id="transportClientMonitor" class="com.company.transport.client.monitor.TransportClientMonitor" init-method="run" />
    	
    </beans:beans>
    Last edited by thehin; Jan 11th, 2011 at 01:30 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •