spring-integration

How to cleanup the JdbcMetadataStore?

谁说胖子不能爱 提交于 2020-01-21 12:08:28
问题 Initially our flow of cimmunicating with google Pub/Sub was so: Application accepts message Checks that it doesn't exist in idempotencyStore 3.1 If doesn't exist - put it into idempotency store (key is a value of unique header, value is a current timestamp) 3.2 If exist - just ignore this message When processing is finished - send acknowledge In the acknowledge successfull callback - remove this msg from metadatastore The point 5 is wrong because theoretically we can get duplicated message

Spring Integration ftp Thread process

断了今生、忘了曾经 提交于 2020-01-17 13:49:28
问题 I am using an bpmn process which is already running using thread and also using spring ftp where the Task scheduler thread is running but I found the application is cannot switch from the threads. Is there any way to invoke the task-scheduler process without any interrupt and I am using InboundchannelAdapter to copy files from FTP. Please suggest any feasible way to resolve the issue. 回答1: I don't see any issues in your question. And to be honest it fully isn't clear. Please, be more specific

Connection pooling and Multithreading for TCP Socket?

孤街浪徒 提交于 2020-01-17 07:24:09
问题 I have a java application(say A) which communicate with an application(say B) via TCP Socket. My java application is multithreaded, can handle up to 100 threads. To communicate between A --> B we have 10 sockets. Challenges - Connection Pooling - need connection pooling mechanism to handle n(say 100) number of thread(of application A), communicating to application B via x(say 10) number of TCP Socket. Multithreading - How can two thread access same socket send the request one by one and get

Spring Batch Integration config using Java DSL

假装没事ソ 提交于 2020-01-15 09:40:01
问题 The Spring Integration Java DSL Reference and Spring Batch Java Configuration documentation show how to use Java Configuration for Spring Integration and Spring Batch. But they dont show how to configure it for the Spring Batch Integration. How is a JobLaunchingGateway configured using DSL? Cheers, Menno 回答1: The JobLaunchingGateway is a MessageHandler so you would define it as a @Bean and use it in a .handle() method in the flow. 回答2: Gary is correct. You can see a demo of the java config

Spring Batch Integration config using Java DSL

最后都变了- 提交于 2020-01-15 09:37:27
问题 The Spring Integration Java DSL Reference and Spring Batch Java Configuration documentation show how to use Java Configuration for Spring Integration and Spring Batch. But they dont show how to configure it for the Spring Batch Integration. How is a JobLaunchingGateway configured using DSL? Cheers, Menno 回答1: The JobLaunchingGateway is a MessageHandler so you would define it as a @Bean and use it in a .handle() method in the flow. 回答2: Gary is correct. You can see a demo of the java config

Spring Batch Integration config using Java DSL

与世无争的帅哥 提交于 2020-01-15 09:37:07
问题 The Spring Integration Java DSL Reference and Spring Batch Java Configuration documentation show how to use Java Configuration for Spring Integration and Spring Batch. But they dont show how to configure it for the Spring Batch Integration. How is a JobLaunchingGateway configured using DSL? Cheers, Menno 回答1: The JobLaunchingGateway is a MessageHandler so you would define it as a @Bean and use it in a .handle() method in the flow. 回答2: Gary is correct. You can see a demo of the java config

Receive the acknowledgement from TCP server to our application using spring Integration

时间秒杀一切 提交于 2020-01-15 09:34:09
问题 Currently we are using Spring Integration 2.1.0 Release in our application. Application flow is as below: Some operation is performed in application and we got the output string in String via Active MQ. I have used message-driven-channel-adapter and service-activator to read the data from queue. That data is displayed successfully on Server(application is working as client) using tcp-outbound-gateway. Problem is while getting the acknowledgement from server. Created a new channel and entered

Call POX web service from Spring Integration

拟墨画扇 提交于 2020-01-15 09:19:47
问题 I'm using Spring Integration in a project that integrates (successfully) various ReST/JSON and SOAP endpoints. Now I need to call a BusinessWorks instance that is configured to accept Plain-Old-Xml-over-HTTP. From the "Spring Integration in Action book", I got a hint that I should use int-ws:outbound-gateway for this. This configuration generates the correct request, but in SOAP: <int-ws:outbound-gateway uri="..." request-channel="request" reply-channel="reply" marshaller="marshaller"

Call POX web service from Spring Integration

放肆的年华 提交于 2020-01-15 09:19:09
问题 I'm using Spring Integration in a project that integrates (successfully) various ReST/JSON and SOAP endpoints. Now I need to call a BusinessWorks instance that is configured to accept Plain-Old-Xml-over-HTTP. From the "Spring Integration in Action book", I got a hint that I should use int-ws:outbound-gateway for this. This configuration generates the correct request, but in SOAP: <int-ws:outbound-gateway uri="..." request-channel="request" reply-channel="reply" marshaller="marshaller"

Spring Integration DSL: Dealing with FileSplitter START/END marker payloads

☆樱花仙子☆ 提交于 2020-01-15 05:16:49
问题 I want to setup an integration flow like this: return IntegrationFlows .from("inputChannel") .split(fileSplitter) .handle(this::doStuff1) .handle(this::doStuff2) .handle(this::doStuff3) .aggregate() .handle(this::deleteFile) FileSplitter: @Bean public FileSplitter fileSplitter() { FileSplitter fileSplitter = new FileSplitter(true, true); fileSplitter.setCharset(StandardCharsets.UTF_8); fileSplitter.setApplySequence(true); return fileSplitter; } Input is of type File . The file size is big, so