Package org.springframework.integration.jgroups

Examples of org.springframework.integration.jgroups.JGroupsInboundEndpoint


  public void should_create_jgroups_inbound_channel_adapter() {
    FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext("src/test/resources/inbound-channel-adapter.xml");

    JChannel cluster = context.getBean("cluster", JChannel.class);

    JGroupsInboundEndpoint clusterAdapter = context.getBean("cluster-adapter", JGroupsInboundEndpoint.class);

    assertThat(cluster).isSameAs(clusterAdapter.getJChannel());

  }
View Full Code Here


    FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext(
        "src/test/resources/custom-inbound-channel-adapter-header-mapper.xml");

    JGroupsHeaderMapper headerMapper = context.getBean("custom-header-mapper", JGroupsHeaderMapper.class);

    JGroupsInboundEndpoint clusterAdapter = context.getBean("cluster-adapter", JGroupsInboundEndpoint.class);

    assertThat(clusterAdapter.getHeaderMapper()).isSameAs(headerMapper);

  }
View Full Code Here

TOP

Related Classes of org.springframework.integration.jgroups.JGroupsInboundEndpoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.