Helidon Níma Example - Loom based webserver

Overview

helidon-nima-example

Helidon Níma Example - Loom based webserver This example is built on top of an ALPHA-1 release of Helidon 4. Alpha releases serve as prototypes or technology demonstration.

The code is not yet production quality in all of its aspects, and problems may be expected.

Nevertheless, if you encounter an issue with Helidon, please kindly report it at https://github.com/oracle/helidon/issues/new

Prerequisites

Java 19 with preview feature "Loom" (now available as RC at https://jdk.java.net/19/) Maven

How to

  1. Build the project from the repository root

     mvn clean package
    
  2. Run the application

     java --enable-preview -jar nima/target/example-nima-blocking.jar
    
  3. Call the endpoints (default count is 3)

     curl -i http://localhost:8080/one
     curl -i http://localhost:8080/sequence
     curl -i http://localhost:8080/sequence?count=4
     curl -i http://localhost:8080/parallel
     curl -i http://localhost:8080/parallel?count=2
    
You might also like...

Add a partial Coeffect system into Java using Loom's ExtentLocals

Coeffect Add a partial Coeffect system into Java using Loom's ExtentLocals. In Java there are generally 2 strategies to manage the parameters a method

Sep 9, 2022

This app/widget is based on the work of Anthony (tonesto7), which is in turn based on the earlier work of David Schablowsky

This app/widget is based on the work of Anthony (tonesto7), which is in turn based on the earlier work of David Schablowsky

Mustang Mach-E Widget for Android Intro This app/widget is based on the work of Anthony (tonesto7), which is in turn based on the earlier work of Davi

Nov 15, 2022

Team 5468's 2022 FRC robot code. This code is written in Java and is based off of WPILib's Java control system and utilizes a command based system

FRC 2022 Team 5468's 2022 FRC robot code. This code is written in Java and is based off of WPILib's Java control system and utilizes a command based s

Oct 4, 2022

A Text Based, Turn-Based, Strategy Game to be played in console

ConsoleGame A Text Based, Turn-Based, Strategy Game to be played in console. Feel free to fix any retardation in my code (meaning bugs, stupid/spaghet

Jul 17, 2022

This is an example of how conditional events can be triggered in Camunda using a simple spring boot project

This is an example of how conditional events can be triggered in Camunda using a simple spring boot project

Camunda Conditional Events Example This example is a Spring Boot Application using Camunda. In this example i'll show a variety of ways that BPMN's Co

Sep 30, 2021

Spring Boot Refresh Token using JWT example - Expire and Renew JWT Token

Spring Boot Refresh Token using JWT example - Expire and Renew JWT Token

Spring Boot Refresh Token with JWT example Build JWT Refresh Token in the Java Spring Boot Application. You can know how to expire the JWT, then renew

Dec 28, 2022

Spring boot microservice example with Eureka Server + Eureka Client + Spring Cloud API Gateway + OAuth2.0 + Circuit Breaker + Resilience4J + FeignClient + RestTemplate

Spring boot microservice example with Eureka Server + Eureka Client + Spring Cloud API Gateway + OAuth2.0 + Circuit Breaker + Resilience4J + FeignClient + RestTemplate

Spring boot microservice example Spring boot microservice example with Eureka Server + Eureka Client + Spring Cloud API Gateway + OAuth2.0 + Circuit B

Dec 29, 2022

Spring Boot DTO Example Tutorial | Data Transfer Object Pattern

springboot-dto-tutorial Spring Boot DTO Example Tutorial | Data Transfer Object Pattern at https://youtu.be/THv-TI1ZNMk Spring Boot DTO Tutorial - Ent

Nov 16, 2022

Spring Boot JdbcTemplate example with SQL Server: CRUD Rest API using Spring Data JDBC, Spring Web MVC

Spring Boot JdbcTemplate example with SQL Server: Build CRUD Rest API Build a Spring Boot CRUD Rest API example that uses Spring Data Jdbc to make CRU

Dec 20, 2022
Comments
  • Tests Never Complete

    Tests Never Complete

    eric.kolotyluk@Y2RCV7009N loom-laboratory % ./gradlew clean helidon-nima:test
    
    > Task :helidon-nima:compileJava
    warning: using incubating module(s): jdk.incubator.concurrent
    Note: /Users/eric.kolotyluk/git/autonomous-iam/poc/loom-laboratory/helidon-nima/src/main/java/nima/NimaMain.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Note: /Users/eric.kolotyluk/git/autonomous-iam/poc/loom-laboratory/helidon-nima/src/main/java/nima/BlockingService.java uses preview features of Java SE 19.
    Note: Recompile with -Xlint:preview for details.
    1 warning
    <===========--> 90% EXECUTING [5m 3s]
    > :helidon-nima:test > 0 tests completed
    > :helidon-nima:test > Executing test nima.BlockingServiceIT
    ^C%                                                                             
    eric.kolotyluk@Y2RCV7009N loom-laboratory % 
    

    I converted your project to Gradle since we are a Gradle site...

    The tests seem to run fine under Maven, so I was wondering if you might have any insight into why they don't run under Gradle.

    opened by kolotyluk 0
  • Improve README.md

    Improve README.md

    Document JAVA_HOME environment variable

    mvn clean package fails out of the box unless JAVA_HOME is set correctly.

    For improved developer experience (DX) document this important prerequisite.

    opened by kolotyluk 0
Owner
Tomas Langer
Tomas Langer
Spring Boot Login and Registration example with MySQL, JWT, Rest Api - Spring Boot Spring Security Login example

Spring Boot Login example with Spring Security, MySQL and JWT Appropriate Flow for User Login and Registration with JWT Spring Boot Rest Api Architect

null 58 Jan 5, 2023
Spring Boot Security Login example with JWT and H2 example

Spring Boot Security Login example with JWT and H2 example Appropriate Flow for User Login and Registration with JWT and HttpOnly Cookie Spring Boot R

null 50 Dec 21, 2022
This module explains about the example of Spring MVC + Database Integration with MySQL using Hibernate ORM with practical coding example and required JAR dependencies

SpringMVC-Database-Integration This module explains about the example of Spring MVC + Database Integration with MySQL using Hibernate ORM with practic

GowthamRaj K 3 Nov 2, 2021
Echo client-server components to evaluate Project Loom virtual threads.

Overview Project Loom is the OpenJDK initiative to introduce user-mode threads in Java. The purpose of this repository is to compare Project Loom virt

Elliot Barlas 15 Nov 1, 2022
The first Java Actor System supporting fibers from Project Loom

Fibry Fibry is an experimental Actor System built to be simple and flexible. Hopefully, it will also be fun to use. Fibry is the first Java Actor Syst

Luca Venturi 196 Dec 26, 2022
A spring boot application for providing loom-ld services

LOOM-LD Structures sparql_based-linking It is a java project using maven to manage dependencies. loom-ld It is a spring boot application for providing

Ontology Engineering Group (UPM) 2 Apr 19, 2022
Experimenting with Project Loom

Project Loom Lab Experiments with Project Loom's features based on these JEP(draft)s: Structured Concurrency Virtual Threads Experiments For these exp

Nicolai Parlog 86 Dec 23, 2022
Experiments on how to add Loom support for Netty

Netty Loom Experiment This repository contains Project Loom and Netty related test code. Contents / Goals I created these examples since I was curious

Johannes Schüth 5 Oct 14, 2022
Use Quilt Mappings on Loom

Quilt Mappings on Loom The time has finally arrived! Quilt Mappings are now usable in Loom! Ever wanted to use mappings other than Yarn or MojMap? Qui

null 15 Dec 7, 2022
Async-Await support for Vertx using Project Loom

Vertx-Async-Await Async-Await support for Vertx using Project Loom. import static com.augustnagro.vertx.loom.AsyncAwait.async; import static com.augus

August Nagro 21 Jun 9, 2022