Files
spring-integration-extensions/spring-integration-jgroups
Spring Operator 306eec5f5e URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 12 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 345 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-22 13:41:58 -04:00
..
2019-03-22 13:41:58 -04:00
2019-03-06 10:02:50 -05:00
2013-07-15 17:39:20 -04:00
2013-07-15 17:39:20 -04:00
2019-03-06 10:02:50 -05:00
2013-07-15 17:39:20 -04:00

Spring Integration Extension for JGroups

The JGroups extension for Spring Integration project includes Inbound- and Outbound Channel Adapters and JGroups channel configuration helper factory classes.

JGroups cluster

With this extension you can easily start JGroups cluster/group, providing cluster/group name and JGroups configuration.

Example

<?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:jgroups="http://www.springframework.org/schema/integration/jgroups"
    xmlns:int="http://www.springframework.org/schema/integration"
    xsi:schemaLocation="http://www.springframework.org/schema/integration/jgroups http://www.springframework.org/schema/integration/jgroups/spring-intergration-jgroups.xsd
        http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.2.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

    <jgroups:cluster name="mygroup">
        <jgroups:xml-configurator resource="classpath:udp.xml" />
    </jgroups:cluster>

</beans>

This example starts new JGroups cluster, named mygroup and with configuration loaded from udp.xml.

Inbound channel adapter

Inbound channel adapter is used to receive messages sent to the group. It expects user to provide reference to the JGroups cluster object. You can also supply optional reference to custom JGroups header mapper.

Example

<?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:jgroups="http://www.springframework.org/schema/integration/jgroups"
    xmlns:int="http://www.springframework.org/schema/integration"
    xsi:schemaLocation="http://www.springframework.org/schema/integration/jgroups http://www.springframework.org/schema/integration/jgroups/spring-intergration-jgroups.xsd
        http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.2.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">


    <jgroups:cluster name="mygroup">
        <jgroups:xml-configurator resource="classpath:udp.xml" />
    </jgroups:cluster>

    <jgroups:inbound-channel-adapter id="cluster-adapter" cluster="mygroup" channel="inbound"/>

    <int:channel id="inbound">
        <int:queue/>
    </int:channel>

</beans>

Outbound channel adapter

Outbound channel adapter is used to send messages to a group. It expects user to provide reference to the JGroups cluster object. You can also supply optional reference to custom JGroups header mapper.

Example:

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:jgroups="http://www.springframework.org/schema/integration/jgroups"
    xmlns:int="http://www.springframework.org/schema/integration"
    xsi:schemaLocation="http://www.springframework.org/schema/integration/jgroups http://www.springframework.org/schema/integration/jgroups/spring-intergration-jgroups.xsd
        http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.2.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

    <jgroups:cluster name="mygroup">
        <jgroups:xml-configurator resource="classpath:udp.xml" />
    </jgroups:cluster>

    <int:poller fixed-rate="100" default="true"/>

    <int:channel id="inbound">
        <int:queue/>
    </int:channel>

    <jgroups:outbound-channel-adapter id="cluster-adapter" cluster="mygroup" channel="inbound"/>

</beans>

Build

For build instructions visit Spring Integration on GitHub.