<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xmlns:int-rsocket="http://www.springframework.org/schema/integration/rsocket"
	   xmlns:int="http://www.springframework.org/schema/integration"
	   xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/integration/rsocket https://www.springframework.org/schema/integration/rsocket/spring-integration-rsocket.xsd
		http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd">

	<bean id="clientRSocketConnector" class="org.springframework.integration.rsocket.ClientRSocketConnector">
		<constructor-arg value="https://example.com"/>
		<property name="autoStartup" value="false"/>
	</bean>

	<int:channel id="requestChannel"/>

	<int-rsocket:outbound-gateway id="outboundGateway"
								  client-rsocket-connector="clientRSocketConnector"
								  auto-startup="false"
								  interaction-model="fireAndForget"
								  route-expression="'testRoute'"
								  request-channel="requestChannel"
								  publisher-element-type="byte[]"
								  expected-response-type="java.util.Date"
								  metadata-expression="{'metadata': new org.springframework.util.MimeType('*')}"/>

</beans>
