Getting framework resources

The Gateway framework artefacts can be obtained by downloading this zip file.

The zip file contains:

  1. gateway-framework-2.0.0.jar - The Gateway Framework jar.

  2. configuration.json - A sample JSON configuration file containing the framework defined configuration structure.

  3. configSchema.json - JSON schema file for the configuration.

  4. log4j2.xml - A sample log4j configuration file.

  5. supportedPayloadConverterNames.json - A Json file containing a list of issued payload converters in the framework. See here for more details.

  6. java-doc - Java documentation folder for the Framework API

  7. user-guide - Complete user guide of the framework.

Getting dependencies

Before you begin writing gateway applications, you must set-up the required infrastructure as follows.

Using maven

To use maven, follow these steps:

  1. Add the DiffusionData public repository to your pom.xml file

    <repositories>
        <repository>
            <id>diffusiondata-repository</id>
            <url>https://download.diffusiondata.com/maven/</url>
        </repository>
    </repositories>
  2. Declare the following dependency in your pom.xml file

    <dependency>
        <groupId>com.diffusiondata.gateway</groupId>
        <artifactId>gateway-framework</artifactId>
        <version>2.0.0</version>
    </dependency>

Using gradle

To use gradle, follow these steps:

  1. Add the DiffusionData public repository to your build.gradle file

    repositories {
        maven {
            url "https://download.diffusiondata.com/maven/"
        }
    }
  2. Declare the following dependency in your build.gradle file:

    compile `com.diffusiondata.gateway:gateway-framework:2.0.0`