spring-integration

ActiveMQ AMQP with JMS transformer leveraging spring Integration

怎甘沉沦 提交于 2019-12-23 05:37:07
问题 I am trying to get a barebones application same up and running leveraging ActiveMQ's AMQP with the JMS transformer. My Client library is Spring Integration, however, I cannot get a basic sample up and running in this configuration. details on ActiveMQ's JMS transformer over AMQP: http://activemq.apache.org/amqp.html main test app @IntegrationComponentScan @SpringBootApplication public class SpringCloudStreamJmsActivemqSenderExampleApplication implements CommandLineRunner { @Bean public

How to send XML JMS message to FTP in Spring integration

亡梦爱人 提交于 2019-12-23 04:56:06
问题 I'm trying to send XML message to FTP in Spring Integration using active MQ . Text message is working fine at Receiver Queue and I can print message in console but how can I send this message to FTP outbound adapter which need to store in a XML file in local directory? 回答1: This question is not at all clear; XML is text. The FTP adapter can handle a String payload so you can simply receive the XML from JMS in a message and send it to the FTP adapter directly; there is no need to write to a

How to send XML JMS message to FTP in Spring integration

浪尽此生 提交于 2019-12-23 04:56:06
问题 I'm trying to send XML message to FTP in Spring Integration using active MQ . Text message is working fine at Receiver Queue and I can print message in console but how can I send this message to FTP outbound adapter which need to store in a XML file in local directory? 回答1: This question is not at all clear; XML is text. The FTP adapter can handle a String payload so you can simply receive the XML from JMS in a message and send it to the FTP adapter directly; there is no need to write to a

Spring Integration. Unknown host and tcp-connection-factory

假装没事ソ 提交于 2019-12-23 04:52:08
问题 I'm implementing the TCP client using the Spring Integration. The requirements are: 1. Through the UDP connection (from somewhere) receive the ip or host address of the TCP server. 2. Open TCP connection to the server, to the destination host from previous step and send some business data to this server. I use the Spring Integration framework, version "2.2.0.RELEASE", and the problem is that in the default configuration of the tcp-connection-factory the host attribute should be "hardcoded" in

Adapt dynamically outbound-gateway with load-balancing

时光怂恿深爱的人放手 提交于 2019-12-23 04:35:18
问题 I would like to modify (add/remove) the list of outbound-gateway using the loadbalancing of input channel. My code : <int:channel id="mainRequestChannel" /> <int-http:outbound-gateway request-channel="mainRequestChannel" message-converters="messageConverters" request-factory="httpRequestFactory" url="http://localhost:8100/batchfactory-slave/receiveGateway" http-method="POST" expected-response-type="JobLaunchingResponse" order="1" reply-channel="finishedResponse" /> <int-http:outbound-gateway

Adapt dynamically outbound-gateway with load-balancing

落爺英雄遲暮 提交于 2019-12-23 04:35:13
问题 I would like to modify (add/remove) the list of outbound-gateway using the loadbalancing of input channel. My code : <int:channel id="mainRequestChannel" /> <int-http:outbound-gateway request-channel="mainRequestChannel" message-converters="messageConverters" request-factory="httpRequestFactory" url="http://localhost:8100/batchfactory-slave/receiveGateway" http-method="POST" expected-response-type="JobLaunchingResponse" order="1" reply-channel="finishedResponse" /> <int-http:outbound-gateway

Spring Integration jms message driven channel adapter fails

青春壹個敷衍的年華 提交于 2019-12-23 02:38:48
问题 I am using spring integration 4.1.0 to implement message consumption from TIBCO EMS queue using jms-int:message-driven-channel-adapter I have 9 different message driven channel adapter listening at different server in different queue. Below is how the message driven channel adapters are defined <int-jms:message-driven-channel-adapter id="mdca1" connection-factory="connectionFactory1" channel="jmsChannel1" destination="queueName1" error-channel="errorChannel" max-concurrent-consumers="5" auto

Spring Integration: TCP Client/Server opening one client connection per server connection

安稳与你 提交于 2019-12-23 02:25:29
问题 I'm trying to implement a TCP client/server application with Spring Integration where I need to open one TCP client socket per incoming TCP server connection. Basically, I have a bunch of IoT devices that communicate with a backend server over raw TCP sockets. I need to implement extra features into the system. But the software on both the devices and the server are closed source so I can't do anything about that. So my thought was to place middleware between the devices and the server that

Recommended approach for parallel spring batch jobs

这一生的挚爱 提交于 2019-12-22 22:55:26
问题 The Spring Batch Integration documentation explains how to use remote chunking and partitioning for steps, see http://docs.spring.io/spring-batch/trunk/reference/html/springBatchIntegration.html#externalizing-batch-process-execution Our jobs do not consist of straightforward reader/processor/writer steps. So we want to simply have whole jobs running in parallel, with each job being farmed out to different partitions. Is there already a pattern for this in Spring Batch? Or would I need to

How do I create a tcp-inbound-gateway which detects connection loss and auto-reconnects?

拟墨画扇 提交于 2019-12-22 22:48:31
问题 I'm trying to configure a set of spring-integration components to consume data from a TCP socket. The basic protocol is that upon opening the connection I am prompted for my username, then password, then if authentication succeeds data is streamed to me as it becomes available. A ping message is sent to me every 30 seconds so that I can verify that the connection is alive during quiet periods when no data is streaming. Per the spring-integration docs I have set up a TCP Gateway. http://docs