Questions tagged [light-4j]

This tag to be used for light-4j micro-service framework

This tag to be used for light-4j micro-service framework https://doc.networknt.com/faq/what-is-light-4j/

43 questions
0
votes
1 answer

Execution of handlers in Light 4j

We are evaluating Light 4j and considering using it for a project instead of Spring Boot. We have some questions before we begin. Like the general business handlers, guess a custom handler can be defined as part of a chain. a) are the handlers…
Sourajit Basak
  • 693
  • 5
  • 15
0
votes
1 answer

How to use ligth4j to operate mysql

How to use ligth4j to operate mysql? The demo result from github seems incomplete. My project reference link is https://github.com/networknt/light-example-4j
杨仕华
  • 1
  • 1
0
votes
1 answer

Able to start hybrid generic server but couldn't able to add hybrid generic service

Generated generic hybrid server and hybrid service using light4j codegen tool. When i start the generic hybrid server, it works. But when we start the hybrid server with service, it stops a wierd error like below. Not sure whether service handler…
Nagappan
  • 346
  • 2
  • 8
0
votes
1 answer

How to parse dynamic path parameter in handler request method?

novice Q over Handler functionality - how can I parse dynamic parameter present in the path, i.e. /path/{parameter} in handleRequest method? I've generated an application based on OpenAPI spec
Steve Hu
  • 358
  • 2
  • 10
0
votes
1 answer

light-4j: light-codegen fails to generate project

I've tried to generate project out of sample petstore openapi.json supplied. I used light-codegen to generate endpoints and model. I did install light-codegen: git clone https://github.com/networknt/light-codegen.git cd light-codegen mvn clean…
user1697575
  • 2,830
  • 1
  • 24
  • 37
0
votes
1 answer

why port 8080 stops working when https/http2 are both enabled in light-4j

In the old release of light-4j, we can start the server with both HTTP and https with port 8080 and 8443. However, after the upgrade to the latest version, we cannot enable both anymore. Here is the output. HOST IP null Http Server started on…
Steve Hu
  • 358
  • 2
  • 10
0
votes
1 answer

How to share a util object which is not thread safe in light-4j handler

I have generated code from an openapi yaml file. I'm implementing the handleRequest methods. I need to share the same instance of a "Util" object to reuse it in all the handleRequest calls. Could you please tell me where to store my Util object…
Steve Hu
  • 358
  • 2
  • 10
0
votes
1 answer

When is planned the next version of light-rest-4j to be released?

When is planned the next version of light-rest-4j to be released? Is there any list of known issues in the current version?
Omer Rubin
  • 11
  • 3
0
votes
1 answer

Light4J Total Requests Processed

I'm using Light-4J as microserver, sitting between my clients and a 3rd party API. Everything is setup and working, the clients are able to POST requests and responses are sent in reply. However I want to know how many requests have been processed…
Alan A
  • 2,557
  • 6
  • 32
  • 54
0
votes
2 answers

How to enable CORS handler in light-4j service

Question regarding CORS: I used light-codegen with a swagger api. Now I want to enable CORS on my microservice. To accomplish this, I did the following: added a cors.yml in the config folder (same location as swagger.json, service.yml, server.yml…
Steve Hu
  • 358
  • 2
  • 10
0
votes
1 answer

how to use the client_authenticated_user custom grant type on light-oauth2 token endpoint

I am trying to use the custom grant type client_authenticated_user of light-oauth2 token service. The reason I cannot use standard grant types is due to my client need to talk to both legacy soap API and new restful API built on top of…
Steve Hu
  • 358
  • 2
  • 10
-1
votes
1 answer

Do we need to implement any special coding logic to handle French characters in the JSON response

For most applications deployed for Canadian users, we need to support both English and French at the same time. By default, light-4j applications will return ?? for French chars in the JSON response. How to handler the French response?
Steve Hu
  • 358
  • 2
  • 10
-1
votes
1 answer

how to build and run the light-portal from light-4j platform

I am a developer from who wants to create an ecosystem around micro services. My research led to your software projects, which are outstanding in many respects. Unfortunately, one of the components I couldn't get running for an initial review was…
Steve Hu
  • 358
  • 2
  • 10
1 2
3