SDK for Hooks Usage Instructions
2.0.0 build 408
Compatible with JMS Extender since version 2.0.0.
Compatible with code developed with the previous version.
Released on 11 May 2020

The library jar is deployed on a Maven repository at https://www.lightstreamer.com/repo/maven

To include the library in a custom project, using any maven-compatible build tool (e.g. Maven, Gradle, Ivy, etc.) it is necessary to configure both a pointer to the external repository and the reference to the lib itself.

Maven


Add the following dependency to the pom.xml file:

<repositories>
  <repository>
    <id>lightstreamer</id>
    <name>Lightstreamer repository</name>
    <url>https://www.lightstreamer.com/repo/maven</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>com.lightstreamer</groupId>
    <artifactId>ls-jms-hook-java-api</artifactId>
    <version>2.0.0</version>
  </dependency>
</dependencies>
          

Gradle


Update the dependencies section of the build.gradle file with the following declaration:

repositories {
    maven {
        url "https://www.lightstreamer.com/repo/maven"
    }
}

dependencies {
    compile 'com.lightstreamer:ls-jms-hook-java-api:2.0.0'
}
          

Ivy example


Add the following dependency to the ivy.yml file:

<ibiblio name="lightstreamer" m2compatible="true" root="https://www.lightstreamer.com/repo/maven/"/>

<dependency org="com.lightstreamer" name="ls-jms-hook-java-api" rev="2.0.0"/>