spring-integration

Messages are not requeue-ing on thrown exception

南楼画角 提交于 2019-12-25 06:43:47
问题 I am using Spring Integration 4.1.2.RELEASE Spring AMQP 1.4.3.RELEASE When an exception is thrown, I am expecting the message to be requeued. I believe that I have all the conditions met for this as I gleaned from this post In the post, I learned that there are three conditions to ensure a requeue: 1) The acknowledge-mode must be AUTO. 2) The requeue-rejected must be TRUE. 3) Throw any exception BUT AmqpRejectAndDontRequeueException . I believe I am meeting these conditions in some test code

SpringIntegration Mail Failed to create new store connection Unrecognised SSL message

北城余情 提交于 2019-12-25 06:38:58
问题 I have a strange exception that happens since a week in a production environment, sporadically. Everything worked fine until now. In the code I am connecting using imap to an MS Exchange server to read the emails. This part of the code is still working ok. Once the email has been read it is archived in a subfolder. This is this part that is sometimes sending exception. The exception is "Failed to create new store connection". And just after this message I always have the following exception

Spring jms failing to connect to Websphere MQ - Resource Exception

六月ゝ 毕业季﹏ 提交于 2019-12-25 06:09:05
问题 Issue: Getting resource exception at runtime attempting to connect to a websphere mq to get a jms message using spring. I just can't determine what I am missing? Description: Attempting to set up the example here. Spring MDP Activation Spec for Websphere MQ. http://stackoverflow.com/questions/14523572/spring-jms-and-websphere-mq Maven Dependencies Note: Version numbers for the ibm jars looks odd because I created a local repo in my project to add the 3rd party libraries. I'm taking the ibm

Advice on Integration Flow Design

笑着哭i 提交于 2019-12-25 04:06:46
问题 I am planning to implement an integration flow as below: IntegrationFlows.from(httpInboundGateway) .transform(transformer-rest-api-1) .transform(transformer-rest-api-2) .handle(jdbc-outbound) .handle(http-outbound-gateway-1) .get(); The requirements that I want to fulfill are: to make this run in parallel threads as much as possible persist message at every end-point make very endpoint as rest-api (to make the flow scalable) Does it make any sense to make the flow reactive? If so how to go

Spring batch admin remote partition steps running maximum 8 threads even though concurrency is 10?

可紊 提交于 2019-12-25 03:58:08
问题 I am using spring batch remote partitioning for batch process. I am launching jobs using spring batch admin. I have inbound gateway consumer concurrency step to 10 but maximum number of partitions running in parallel are 8. I want to increase the consumer concurrency to 15 later on. Below is my configuration, <task:executor id="taskExecutor" pool-size="50" /> <rabbit:template id="computeAmqpTemplate" connection-factory="rabbitConnectionFactory" routing-key="computeQueue" reply-timeout="$

Spring SFTP read file lock

我的梦境 提交于 2019-12-25 03:54:05
问题 I have configured Spring integration SFTP application to poll file from remote server, and it's working fine if it's running one, where if the same application run's 3 time, to process the files faster, in such case same file is polled by two application's and resulting in duplicate results. how can i avoid this? is there any file locking available in Spring integration? for configuration part you can look through this SO 回答1: You need to use persistent file list filters together with a

spring blazeds integration: IllegalArgumentException: ServletContext must not be null

南笙酒味 提交于 2019-12-25 03:37:12
问题 I am trying to get dpHibernate 2.0 RC6 running on an Apache Tomcat 7.0.12 with BlazeDS 4.0.0.14931, Spring 3.0.5 and Spring-BlazeDS-Integration 1.5.0.M2 I got pretty far with my configuration, the services are parsed fine, annotation based Entities and Datamodel are good, I can list the services in FlashBuilder DCD, but as soon as I am calling a service method (just a simple void method) the server returns following Exception. Not really sure where in my configuration I could have missed

IntegrationFlows with FileReadingMessageSource triggering job twice for same input file

笑着哭i 提交于 2019-12-25 03:26:21
问题 I have a Spring Integration Batch job which is triggerred when the files are arrived: @Bean public IntegrationFlow fileTriggeredIntegrationFlow() { return IntegrationFlows.from(fileReadingMessageSource(), c -> c.poller(Pollers.fixedRate(filePollerFrequency, filePollerInitialDelay))) .transform(toJobLaunchRequest()) .handle(jobLaunchingGateway) .handle("jobCompletionHandler", "afterJob") .get(); } @Bean public FileReadingMessageSource fileReadingMessageSource() { FileReadingMessageSource

Intermittent BridgeHandler & PublishSubscribeChannel call when gateways' reply channel is pub/sub

早过忘川 提交于 2019-12-25 02:58:23
问题 I'm seeing weird behaviour when sending data through my channels. I'm using SI gateway when sending a message to be processed. The gateway is setup as below <integration:gateway id="rptPubGateway" default-request-channel="rptPubInChannel" default-reply-channel="rptOutputAvailableChannel" default-reply-timeout="60000" service-interface="xxxx.RptPubGateway" /> The reply channel is being set up as a publish/subscribe channel <integration:publish-subscribe-channel id="rptOutputAvailableChannel" /

Spring Integration MessageChannel ID

故事扮演 提交于 2019-12-25 02:43:42
问题 I need to dynamically assign messages to MessageChannels in my Spring Integration Context. I can do this by getting the MessageChannel bean from the context when I know the names of the MessageChannel I want. What I need to do is programatically find the name/id of the message channel(s) that are set in my ChannelAdapter/Service. However, the MessageChannel API does not have a getName() or getId() method associated with it. Is there a way to find this piece of information? Thanks in advance.