Skip to content

Helpers for working with NATS along with a Ninja Framework module

Notifications You must be signed in to change notification settings

fizzed/nats-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

87491dc · Jan 22, 2025

History

45 Commits
Jan 22, 2025
Jan 15, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 15, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025
Jan 22, 2025

Repository files navigation

Nats Plus by Fizzed

Maven Central

Automated Testing

The following Java versions and platforms are tested using GitHub workflows:

Java 11 Java 17 Java 21

Linux x64 MacOS arm64 Windows x64

The following platforms are tested using the Fizzed, Inc. build system:

Linux arm64 Linux MUSL x64 MacOS x64 Windows arm64 FreeBSD x64

Overview

Utilities and framework integrations for Java 11+ and NATS.io -- includes an integration of NATS with the Ninja Framework.

Utilities

<dependency>
    <groupId>com.fizzed</groupId>
    <artifactId>nats-core</artifactId>
    <version>0.0.3</version>
</dependency>

Browse the utilities in https://github.com/fizzed/nats-plus/tree/master/nats-core/src/main/java/com/fizzed/nats/core

Ninja Framework

Ninja Framework module for NATS. Will help provide a connection, etc.

Add the nats-ninja-module dependency to your Maven pom.xml

<dependency>
    <groupId>com.fizzed</groupId>
    <artifactId>nats-ninja-module</artifactId>
    <version>0.0.3</version>
</dependency>

In your conf/Module.java file:

package conf;

import com.fizzed.nats.ninja.NinjaNatsModule;
import com.google.inject.AbstractModule;

public class Module extends AbstractModule {

    @Override
    protected void configure() {
        install(new NinjaNatsModule());
    }

}

In your conf/application.conf file:

#
# nats
#
nats.url = nats://localhost:14222
nats.username = root
nats.password = test
nats.connection_name = nats-demo

Testing

Testing this library with other nats.java versions:

mvn -Dnats.java.version=2.19.1 test
mvn -Dnats.java.version=2.20.5-SNAPSHOT test

License

Copyright (C) 2025 Fizzed, Inc.

This work is licensed under the Apache License, Version 2.0. See LICENSE for details.

About

Helpers for working with NATS along with a Ninja Framework module

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages