Public | Automated Build

Last pushed: never
Short Description
Short description is empty for this repo.
Full Description


Welcome to Ygg

please refer to the wiki for more information

Issue Tracker

Getting started

In your web application define following dependencies:

#!xml

    <properties>
        <ygg-version>0.26</ygg-version>
    </properties>

..
    <dependencies>
        <!-- main server component based on apache camel -->
        <dependency>
            <groupId>eu.limetri.ygg</groupId>
            <artifactId>ygg-server</artifactId>
            <version>${ygg.version}</version>
        </dependency>
        <!-- default registry implementation backed by jdbc database -->
        <dependency>
            <groupId>eu.limetri.ygg</groupId>
            <artifactId>ygg-registry-jdbc</artifactId>
            <version>${ygg.version}</version>
        </dependency>
        <!-- keycloak authentication implementation -->
        <dependency>
            <groupId>eu.limetri.ygg</groupId>
            <artifactId>ygg-auth-keycloak</artifactId>
            <version>${ygg.version}</version>
        </dependency>
        <!-- simple business process engine -->
        <dependency>
            <groupId>eu.limetri.ygg</groupId>
            <artifactId>ygg-engine-simple</artifactId>
            <version>${ygg.version}</version>
        </dependency>
    </dependencies>

In your web.xml add the following:

#!xml

    <context-param>
            <!-- dev profile uses embedded derby database for backing the registry, production resource expects configured datasource -->
        <param-name>spring.profiles.active</param-name>
        <param-value>dev</param-value>
    </context-param>


    <!-- the listener that kick-starts Spring -->
    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

    <servlet>
        <servlet-name>YggServlet</servlet-name>
        <servlet-class>org.restlet.ext.spring.SpringServerServlet</servlet-class>
        <init-param>
            <param-name>org.restlet.component</param-name>
            <param-value>RestletComponent</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>YggServlet</servlet-name>
        <url-pattern>/api/*</url-pattern>
    </servlet-mapping>

For the server to be able to connect to the MQTT broker please provide a "broker.properties" file on your classpath.

SERVER_USERNAME=${username}
SERVER_PASSWORD=${password}
BROKER_HOST=${host}
BROKER_PORT=${port}

The ${username} and ${password} for the server must exist in the "users" table of the registry. See the data channels page for more info.

  • License: license headers in the source files are validated again license.txt. For convenience a netbeans license template is included (license-limetri.txt) You can import this license via Tools->templates->licenses
Docker Pull Command
Owner
limetri
Source Repository