spring-integration

Spring Integration Dispatcher has no subscribers for channel

老子叫甜甜 提交于 2021-02-18 20:57:35
问题 I'm using spring integration and its support for MQTT; I saw the spring integration documentation and my simple test case is to publish a message on a MQTT topic. The Spring documentation is located here: http://docs.spring.io/spring-integration/reference/html/mqtt.html#_configuring_with_java_configuration_15 I'm using these versions: spring 4.3.4 spring integration 4.3.5 I built this simple configuration class: @Configuration @IntegrationComponentScan public class

Spring Integration + file reading message source _ Inbound Channel Adapter + Outbound Gateway

我怕爱的太早我们不能终老 提交于 2021-02-11 15:52:10
问题 For File reading message source Inbound Adapter and transformer with annotations is configured as below @Bean @InboundChannelAdapter(autoStartup = "false", value = "incomingchannel", poller = @Poller("custompoller")) public MessageSource<File> fileReadingMessageSource() { } @Transformer(inputChannel = "incomingchannel", outputChannel = "jobLaunchChannel") public JobLaunchRequest toRequest(Message<File> message) throws Exception { } Now I want to change the Transformer to refer to a reply

Spring Integration + file reading message source _ Inbound Channel Adapter + Outbound Gateway

夙愿已清 提交于 2021-02-11 15:50:37
问题 For File reading message source Inbound Adapter and transformer with annotations is configured as below @Bean @InboundChannelAdapter(autoStartup = "false", value = "incomingchannel", poller = @Poller("custompoller")) public MessageSource<File> fileReadingMessageSource() { } @Transformer(inputChannel = "incomingchannel", outputChannel = "jobLaunchChannel") public JobLaunchRequest toRequest(Message<File> message) throws Exception { } Now I want to change the Transformer to refer to a reply

How to use PollerSpec in IntegrationFlowDefinition.bridge() properly with PollerMetadata.DEFAULT_POLLER?

前提是你 提交于 2021-02-11 14:54:27
问题 I am building an integration which has one main flow(start), and 2 sub flows. Main start flow is just to get property information, that is needed for both sub flows. After getting property info, it needs to subscribe different sub flows(startFlow1, startFlow2). And these different sub flows have to work in different times. See the example implementation below; @Bean(name = PollerMetadata.DEFAULT_POLLER) public PollerMetadata poller() { return Pollers.fixedRate(300, TimeUnit.SECONDS, 10).get()

How to create a working TCP Server socket in spring boot and how to handle the incoming message?

佐手、 提交于 2021-02-11 14:14:24
问题 I have tried to implement a TCP server socket with spring integration in an allready existing spring boot application, but I am facing a problem and this problem drives me crazy... The client is sending a message (a byte array) to the server and timesout. That's it. I am not receiving any exceptions from the server. It seems I have provided the wrong port or somthing but after checking the port, I am sure it is the right one. This is my annotation based configuration class: import home.brew

java.lang.IllegalArgumentException: 'json' argument must be an instance of: [class java.lang.String, class [B

余生颓废 提交于 2021-02-11 13:43:19
问题 I am making a third party request in Hybris1811 framework using Spring Rest Template . But after getting response I am Getting below error: Could not properly initialize user sessionorg.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: 'json' argument must be an instance of: [class java.lang.String, class [B, class java.io.File, class java.net.URL, class java.io.InputStream, class java.io.Reader] , but gotten:

Spring Integration how to use Control Bus with JavaConfig, no DSL

[亡魂溺海] 提交于 2021-02-11 13:30:08
问题 I'm having a few issues with Spring Integration and the control bus. I need to turn auto-start off on an InboundChannelAdapter. However when I do this I can't get the ControlBus to start the channel adapter. I've searched for an answer online, but most of the examples use XML configuration. Here is the entirety of my code: package com.example.springintegrationdemo; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.CommandLineRunner; import org

Spring Integration how to use Control Bus with JavaConfig, no DSL

感情迁移 提交于 2021-02-11 13:29:32
问题 I'm having a few issues with Spring Integration and the control bus. I need to turn auto-start off on an InboundChannelAdapter. However when I do this I can't get the ControlBus to start the channel adapter. I've searched for an answer online, but most of the examples use XML configuration. Here is the entirety of my code: package com.example.springintegrationdemo; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.CommandLineRunner; import org

Sprint integration flow won't start

删除回忆录丶 提交于 2021-02-11 13:14:12
问题 This looks like a beginner question to me. For the sake of easy reproduction, I have stripped out virtually all of my logic from this flow. The reason it looks like it does nothing is because it, quite literally, fetches data from a JDBC endpoint and does exactly nothing. setupAdapter = new JdbcPollingChannelAdapter(dbprx.getDatasource(), sql.getSql()); setupAdapter.setRowMapper(rowMapper); StandardIntegrationFlow flow = IntegrationFlows .from(setupAdapter, c -> c.poller(Pollers.fixedRate

Sprint integration flow won't start

余生长醉 提交于 2021-02-11 13:11:25
问题 This looks like a beginner question to me. For the sake of easy reproduction, I have stripped out virtually all of my logic from this flow. The reason it looks like it does nothing is because it, quite literally, fetches data from a JDBC endpoint and does exactly nothing. setupAdapter = new JdbcPollingChannelAdapter(dbprx.getDatasource(), sql.getSql()); setupAdapter.setRowMapper(rowMapper); StandardIntegrationFlow flow = IntegrationFlows .from(setupAdapter, c -> c.poller(Pollers.fixedRate