Examples of JGroupsHeaderMapper


Examples of org.springframework.integration.jgroups.JGroupsHeaderMapper

  @Test
  public void should_create_jgroups_inbound_channel_adapter_with_custom_header_mapper() {
    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
Copyright © 2018 www.massapi.com. 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.