spring-integration

Spring integration support for Clustered/high availability IBM MQ manager

让人想犯罪 __ 提交于 2019-12-24 01:05:59
问题 I am using spring integration to connect with the IBM MQ. My spring integration application is connecting successfully with IBM MQ. Now the MQ team made the MQ manager as the clustered manager i.e. queue manager is containing 2 host one active and one passive because if one host is down the passive one will up and running. Below is my spring integration configuration for MQ and I can pass only one host. <bean id="mqQueueConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">

How can I create a dynamic query for Spring Integration JDBC outbound-channel-adapter?

99封情书 提交于 2019-12-24 01:05:51
问题 I need to create a dynamic update statement to be be executed by a jdbc:outbound-channel-adapter, because I need to set one field using a case expression that has variable number of conditions as follows: UPDATE tableA SET fieldA = CASE WHEN fieldB IN ('a','b') THEN 1 WHEN fieldB IN ('c','d') THEN 2 ... WHEN fieldB IN (...) THEN N END WHERE fieldC = :headers[MY_FIELDC] I can create this dynamic update statement in a Spring expression as follows: "'UPDATE tableA SET fieldA = ' + headers[MY

Is it possible to return a 204 from a Spring Integration http inbound-channel-adapter?

我与影子孤独终老i 提交于 2019-12-24 00:46:59
问题 I have an inbound-channel-adapter that forwards to a bean method that returns null, but since http has to return a response, a 200 is returned. There are cases where I'd like to specify what the return value is, e.g. a 204 and I've tried a bunch of things, but nothing seems to work. I'm using spring-integration 3.0.2. Thanks, Justin 回答1: Yes, set the http_statusCode header in the reply message to 204. EDIT: (see comments below) <int-http:inbound-gateway request-channel="receiveChannel" path="

Spring Integration IDE

烈酒焚心 提交于 2019-12-24 00:45:50
问题 I remember seeing the palette in Spring Tool Suite (long time back) to design the Spring Integration work flow which I cannot find in Spring Tool Suite 4.x. Can someone tell me if it is available as a separate add-on or how do I enable it? Thanks. 回答1: See the answer to this question and associated comments. It is not currently available in STS 4.x, although, as stated by Martin Lippert there, the 3.9.x tooling can still be installed. Bear in mind that it was limited to a single XML

Receiving messages from tcp server with Citrus framework and Spring Integration times out

我的未来我决定 提交于 2019-12-23 21:16:32
问题 I am trying to test a simple tcp send/receive sequence making use of citrus framework. I am able to send messages fine but receiving messages proves problematic. Basically, the reply is not detected by citrus and citrus then times out. Citrus bean configuration: <?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:citrus="http://www.citrusframework.org/schema/config" xmlns:int="http://www

Dynamically instantiating Spring Integration flows

我的梦境 提交于 2019-12-23 20:23:25
问题 I have a Spring Integration Flow Project that exposes a Rest Gateway, after receiving the Rest POST request, it does some minor logic. Based on some Payload parameters I would like to Activate another Spring Integration flow dynamically and route the message to a designated channel in that flow that I can discover in the Primary flow based on the Payload. The Sub flow will put the response message in a designated channel that is defined in the primary flow. How can I achieve this. 回答1:

Custom Spring Scope not working for Message Channel

自作多情 提交于 2019-12-23 19:43:21
问题 In spring integration, I am trying to create a Direct Message channel with a custom scope as follows ... <int:channel id="myChannel" scope="validCustomScope" /> <int:service-activator ref="validSericeReference_WithSameValidCustomScope" method="handleMessage" input-channel="myChannel"/> ... However, I am running into an exception .. org.springframework.integration.MessageDeliveryException: Dispatcher has no subscribers for channel Note: this custom scope works for other beans. This issue is

reply-timeout meaning in tcp-inbound-gateway in spring integration

允我心安 提交于 2019-12-23 19:20:35
问题 Spring integration tcp gateway can be setup as follows: <!-- Server side --> <int-ip:tcp-connection-factory id="crLfServer" type="server" port="${availableServerSocket}"/> <int-ip:tcp-inbound-gateway id="gatewayCrLf" connection-factory="crLfServer" request-channel="serverBytes2StringChannel" error-channel="errorChannel" reply-timeout="10000" /> <int:channel id="toSA" /> <int:service-activator input-channel="toSA" ref="echoService" method="test"/> <bean id="echoService" class="org

Mystery around Spring Integration and prototype scope

爷,独闯天下 提交于 2019-12-23 19:10:10
问题 Well, very likely there isn't any mystery but I am just not smart enough to figure out what my problem is. However usually it is the mystery after all! Sorry for the introduction, my problem is that the prototype scope doesn't seem to work for me. I have created a REST service with a Spring Integration flow (there is a http inbound gateway in the front of the flow). The scopes of most of the beans are prototype. I tested the flow by calling it ten times with threads. Also I logged the bean

no integration graph view in eclipse sts 4?

别等时光非礼了梦想. 提交于 2019-12-23 18:35:27
问题 Don't even have the option of creating spring bean config files anymore, a slew of features just gone from the transition to 3.9 to 4? Seems like they sacrificed quite a bit on the eclipse end for that IDE agnosticism if this is the case... 回答1: The Spring Tools 4 do not contain any support for Spring XML configuration files anymore, we removed that support completely from the tooling. Spring Tools 4 focuses on Spring Boot and using annotations to configure your Spring application. As a side