How to do Cross Domain Spring Channel Processing?

Spring FrameworkI ran into the need of cross domain spring channel processing, so I developed simple wrapper called spring-extensions using spring framework for Cross-domain Spring channel processing. It is easy to configure and achieve with this library. In spring-extensions library cross domain spring channel processing implemented with similar nature of spring channel processing, which is  PortMapper into Cross Domain Mapper logic.

  • Cross-domain mapping in channel processing for respective port mapped in PortMapper
  • Supports non-standard port of domain mapping in Cross Domain host-name

GitHub Repo Downloads

How to achieve Spring Channel Processing

We will be needing a Spring-Extensions Library and Cross domain spring channel processing   applicationContext for port and domain address mapping.

Refer Spring-Extensions in project

For maven based project, spring-extensions library referred from Maven Central Repo.

Need dependency info for Gradle, Scala SBT, etc.

Download Application Context

Ready to use applicationContext-channelProcessing.xml is here.

Update Domain Name and Port No.

Include the downloaded applicationContext-channelProcessing.xml and update the domain name and port no. in it. That’s it execute and test your application.

Things to know

Important bean definition for achieving cross domain spring channel processing

Cross Domain Mapper

Secure & In-Secure Channel

That’s it, we have successfully achieved a Cross Domain Spring Channel Processing!