spring-integration | Spring Integration provides an extension of the Spring | Application Framework library

 by   spring-projects Java Version: 6.2.0 License: Apache-2.0

kandi X-RAY | spring-integration Summary

kandi X-RAY | spring-integration Summary

spring-integration is a Java library typically used in Server, Application Framework, Ethereum, Spring Boot, Spring, RabbitMQ applications. spring-integration has build file available, it has a Permissive License and it has high support. However spring-integration has 1425 bugs and it has 22 vulnerabilities. You can download it from GitHub, Maven.

[Join the chat at
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              spring-integration has a highly active ecosystem.
              It has 1413 star(s) with 1038 fork(s). There are 140 watchers for this library.
              There were 6 major release(s) in the last 6 months.
              There are 128 open issues and 5082 have been closed. On average issues are closed in 818 days. There are 1 open pull requests and 0 closed requests.
              It has a positive sentiment in the developer community.
              The latest version of spring-integration is 6.2.0

            kandi-Quality Quality

              OutlinedDot
              spring-integration has 1425 bugs (144 blocker, 15 critical, 241 major, 1025 minor) and 9455 code smells.

            kandi-Security Security

              spring-integration has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              OutlinedDot
              spring-integration code analysis shows 22 unresolved vulnerabilities (21 blocker, 1 critical, 0 major, 0 minor).
              There are 144 security hotspots that need review.

            kandi-License License

              spring-integration is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              spring-integration releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed spring-integration and discovered the below as its top functions. This is intended to give you an instant insight into spring-integration implemented functionality, and help decide if they suit your requirements.
            • Parses the source
            • Parses the expression
            • Parses the method invocation source
            • Parses the header expressions
            • Parse bean definition
            • Parses the poller element and adds it to the BeanDefinitionBuilder
            • Validates and configures a single subscriber channel
            • Parse advice chain
            • Parses the bean definition
            • Start the factory
            • Handles incoming message
            • Parses the transformation XML element
            • Starts the publish thread
            • Parses the internal bean definition
            • Parses bean definition
            • Invoked after initialization of the cache
            • Parse a bean definition
            • Parses a DelayHandler element
            • Creates a new instance of this class
            • Parses a consumer definition
            • Force the group to be completed
            • Parses the given element
            • Parses JMSOutboundGate
            • Adds messages to a group
            • Parses the inbound file
            • Resolve bean definition
            Get all kandi verified functions for this library.

            spring-integration Key Features

            No Key Features are available at this moment for spring-integration.

            spring-integration Examples and Code Snippets

            No Code Snippets are available at this moment for spring-integration.

            Community Discussions

            QUESTION

            Spring Integration: how to configure ObjectToJsonTransformer to add json__TypeId__ with class name instead of canonical name
            Asked 2021-Jun-11 at 14:09

            I am trying to serialize a message (then deserialize it) and I do not want any of the headers json__TypeId__ or json_resolvableType to contain the canonical name of the class. This is because I am sending the message over the network and I consider including the canonical name in the header a security concern.

            Here is just the relevant parts of the code that I am using:

            ...

            ANSWER

            Answered 2021-Jun-11 at 14:01

            You can create a new message from transformed and remove headers you don't need

            Source https://stackoverflow.com/questions/67938032

            QUESTION

            Connection not found when processing reply GenericMessage
            Asked 2021-Jun-06 at 09:15

            Try to set up Spring Boot TCP Server with spring-integration-ip, but when send message to the server always get the error message:

            ...

            ANSWER

            Answered 2021-Jun-04 at 20:41

            Here is what I have for you:

            Source https://stackoverflow.com/questions/67827589

            QUESTION

            Spring Integration Dynamic XML through JAXB or other tool
            Asked 2021-Jun-02 at 08:02

            Currently I have a Spring Integration XML file that marshalls Java POJOs to XML using JAXB and then sends them as JMS messages. However, instead of marshalling Java POJOs and sending through JMS I want to send the XML string which will be dynamically generated inside the Java file to JMS in the same integration file below. So I suppose it will probably be done through replacing the existing Marshaller and transformer in the below file for the request but I don't know exactly how.

            In short, I would like to know how to send and replace the marshalling of Java POJOs with dynamic XML string.

            Update

            I research and Found that DOMSource will be the perfect for generating dynamic XML. I am able to do the transform in Java file from DOM to string easily but I cannot do it through Spring Integration. I need to Marshall from String to XML instead of Java Object to XML using the spring integration file below.

            ...

            ANSWER

            Answered 2021-Jun-02 at 08:02

            After a bit of struggle i figure out myself. I used DomSource to generate the XML string and then passed it to JMS through the Custom Transformer and not through JaxB Transformer.

            In the Service / Repository class

            Source https://stackoverflow.com/questions/67751537

            QUESTION

            How to send custom header from spring-cloud-stream (aws kinesis binder) to "legacy" spring integration consumer
            Asked 2021-May-28 at 17:10

            I have two applications - the first produces messages using spring-cloud-stream/function with the AWS Kinesis Binder, the second is an application that builds off of spring integration to consume messages. Communicating between the two is not a problem - I can send a message from "stream" and handle it easily in "integration".

            When I want to send a custom header, then there is an issue. The header arrives at the consumer as an embedded header using the "New" format (Has an 0xff at the beginning, etc.) - See AbstractMessageChannelBinder#serializeAndEmbedHeadersIfApplicable in spring-cloud-stream.

            However, the KinesisMessageDrivenChannelAdapter (spring-integration-aws) does not seem to understand the "new" embedded header form. It uses EmbeddedJsonHeadersMessageMapper (See #toMessage) which cannot "decode" the message. It throws a com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'ÿ': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false') because of the additional information included in the embedded header (0xff and so on).

            I need to send the header across the wire (the header is used to route on the other side), so it's not an option to "turn off" headers on the producer. I don't see a way to use the "old" embedded headers.

            I'd like to use spring-cloud-stream/function on the producer side - it's awesome. I wish I could redo the consumer, but...

            I could write my own embedded header mapper that understands the new format (use EmbeddedHeaderUtils), and wire it into the KinesisMessageDrivenChannelAdapter.

            Given the close relationship between spring-cloud-stream and spring-integration, I must be doing something wrong. Does Spring Integration have an OutboundMessageMapper that understands the new embedded form?

            Or is there a way to coerce spring cloud stream to use a different embedding strategy?

            I could use Spring Integration on the producer side. (sad face).

            Any thoughts? Thanks in advance.

            ...

            ANSWER

            Answered 2021-May-28 at 17:10

            understands the new format

            It's not a "new" format, it's a format that Spring Cloud Stream created, originally for Kafka, which only added header support in 0.11.

            I could write my own embedded header mapper that understands the new format (use EmbeddedHeaderUtils), and wire it into the KinesisMessageDrivenChannelAdapter.

            I suggest you do that, and consider contributing it to the core Spring Integration Project alongside the EmbeddedJsonHeadersMessageMapper so that it can be used with all technologies that don't support headers natively.

            Source https://stackoverflow.com/questions/67695687

            QUESTION

            How to use temporary Channel in Spring Integration?
            Asked 2021-May-26 at 17:15

            I'm new in Spring Integration, I'm trying to get the message from temporary channel.

            Reading the documentation there is a temporary channel use by spring. I guess it named NullChannel

            I need my gateway returns the value from temporary channel.

            http controller -> gateway -> direct channel -> activator 1 -> queue channel -> activator 2

            So my activator 2 will put the new value into temporary channel, so the gateway will retrieve the value from temporary channel

            ...

            ANSWER

            Answered 2021-May-26 at 17:15

            NullChannel is like /dev/null in Unix; it just discards the value.

            Source https://stackoverflow.com/questions/67709507

            QUESTION

            Micronaut alternative for spring-integration
            Asked 2021-May-20 at 15:37

            I'm migrating a spring boot app to micronaut framework and I'm nearly done with it, the only missing piece is a micronaut alternative to spring-integration. Basically I need to periodically scan a remote sftp server for files and then do some work on them. In my spring boot app I'd just use spring-integration but I'd like to achieve this the micronaut way but I'm yet to find one.

            Is there a micronaut specific way to handle files on sftp servers similar to spring-integration? I'd like to avoid doing it "manually" via scheduled jobs if possbile.

            Thanks for all the suggestions!

            ...

            ANSWER

            Answered 2021-May-20 at 15:37

            There is no library specific to Micronaut for this purpose that I'm aware of

            Source https://stackoverflow.com/questions/67585953

            QUESTION

            "A Task Scheduler" is Required when using Spring Integration with MQTT
            Asked 2021-May-16 at 19:14

            I have a project where I am using Spring Integration where I am connecting to a broker and then publish-subscribe the messages issued to the broker.

            When using @EnableAutoConfiguration and @ComponentScan and @Configuration the application runs fine that is using @SpringBootApplication as a whole. But I don't want to use @EnableAutoConfiguration, this is just a POC project to be integrated into a bigger chunk project. Where, if @EnableAutoConfiguration is used may cause issues for other components which are not needed.

            So, how can I resolve this issue?

            This is just an excerpt from the project and when done should run normally:

            ...

            ANSWER

            Answered 2021-May-16 at 19:14

            You are missing @EnableIntegration. That one adds a broader Spring Integration infrastructure , included a required TaskScheduler. See docs foer more info: https://docs.spring.io/spring-integration/docs/current/reference/html/overview.html#configuration-enable-integration

            Source https://stackoverflow.com/questions/67557135

            QUESTION

            Use public key fingerprint in Java Spring Boot application to solve "The authenticity of host 'xxxx' can't be established"
            Asked 2021-May-11 at 05:11

            I have a Java Spring Boot application which is using the spring-integration-sftp dependency to connect to an SFTP server. I get an error

            The authenticity of host 'xxxx' can't be established

            and I know this can easily be rid of by setting the sftpSessionFactory.setAllowUnknownKeys(true), but that is not a good practice and I would rather not do that.

            I have the below SFTP server's public key fingerprint. How can I use that to safely connect to my SFTP server so that my host is known? What should I additionally set in the sftpSessionFactory?

            ...

            ANSWER

            Answered 2021-May-04 at 13:16

            Use DefaultSftpSessionFactory.setKnownHosts to provide a path to known_hosts-like file with the host key of the server.

            The spring-integration-sftp uses JSch under the hood, so for more details, see:
            How to resolve Java UnknownHostKey, while using JSch SFTP library?

            Source https://stackoverflow.com/questions/67384610

            QUESTION

            ZeroMQ with Spring (spring-integration-zeromq)
            Asked 2021-Apr-29 at 19:25

            I'm using spring-integration-zeromq and I'm trying to set up with authentication settings.

            ...

            ANSWER

            Answered 2021-Apr-29 at 19:25

            Yeah... I see you point. This a bug: we must postpone a his.sendSocketConfigurer usage until really an interaction happens with a socket. I'll fix that soon enough.

            For now on a couple remarks for your config:

            You must not call an afterPropertiesSet() yourself. Let the Spring application context to manage its callbacks for you!

            You must not subscribe into the MessageChannel in its bean definition. Instead consider to have a @ServiceActivator(inputChannel = "zeroMqPubSubChannel"). See more info in docs: https://docs.spring.io/spring-integration/reference/html/messaging-endpoints.html#service-activator

            Unfortunately there is no way to pass that customization into an internal ZMQ.Socket instance...

            UPDATE

            The working test with Curve auth in ZeroMQ:

            Source https://stackoverflow.com/questions/67214907

            QUESTION

            Exception Behaviour without errorChannel on inbound adapters
            Asked 2021-Apr-23 at 07:06

            I have int-aws:sqs-message-driven-channel-adapter on which if I set the errorChannel, the downstream exceptions go there.

            However, when I don't set an errorChannel, the exception does not get logged. It does not go to the errorChannel which is expected. Is there a way, that such exceptions at least get logged? Is there a default errorlogger which can simply log such errors?

            UPDATE

            Posting XML and DSL config as per the comments. The error is simulated in the persistence layer by setting null for a @NotBlank field on the ServiceObject.

            ...

            ANSWER

            Answered 2021-Apr-21 at 17:42

            The SqsMessageDrivenChannelAdapter is fully based on the SimpleMessageListenerContainerFactory from Spring Cloud AWS and that one just delegates to a listener we provide. Looking to the code there is just no any error handling. So, the best way to deal with it at the moment to explicitly set an error-channel="errorChannel" and it is going to be logged via default logger subscribed to that global errorChannel.

            And yes: it is not expected to go to the errorChannel by default. I'm not sure that there is such an official claim in our docs. Probably better to think about it as "no error channel by default", so it is up to underlying protocol client to handle thrown errors. Since there is no one there, then we don't have choice unless set error channel explicitly.

            Source https://stackoverflow.com/questions/67200599

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install spring-integration

            You can download it from GitHub, Maven.
            You can use spring-integration like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the spring-integration component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/spring-projects/spring-integration.git

          • CLI

            gh repo clone spring-projects/spring-integration

          • sshUrl

            git@github.com:spring-projects/spring-integration.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Application Framework Libraries

            Try Top Libraries by spring-projects

            spring-boot

            by spring-projectsJava

            spring-framework

            by spring-projectsJava

            spring-security

            by spring-projectsJava

            spring-petclinic

            by spring-projectsCSS

            spring-mvc-showcase

            by spring-projectsJava