Giter VIP home page Giter VIP logo

Comments (7)

dasniko avatar dasniko commented on June 22, 2024 1

With the help from @bbilger, who has a similar project as yours https://github.com/bbilger/jrestless we found the solution in proper configuration of beans.xml, @...Scoped annotations and extended maven-shade-plugin: bbilger/jrestless-examples#9 (comment)

I've updated my above mentioned project and it's working pretty good.

from aws-serverless-java-container.

sapessi avatar sapessi commented on June 22, 2024

Hi Niko,

Thanks for the compliments and feedback. I will look into this. To help us narrow down the scope for a first release, is there something specific you are looking for? Could you give us some mock code of how you would like your tests to work like?

S

from aws-serverless-java-container.

dasniko avatar dasniko commented on June 22, 2024

Hi @sapessi,
thanks for your quick reply.

Meanwhile, I started to implement the aws-serverless-java-container-jersey with some jersey-weld2-se here: https://github.com/serverlessbuch/lambda-jaxrs-cdi
(this is the repository for my upcoming book on serverless computing, but german-language only)

However, the unit-tests work fine, even with CDI.
But as soon as I run it on AWS Lambda (through API Gateway), I run into a timeout and get some long logs. Currently I've no real idea what this might be. Perhaps you can test my implementation and reproduce the behaviour? Then, we can go any further with my example as a start!?

N.

from aws-serverless-java-container.

dasniko avatar dasniko commented on June 22, 2024

I got my example now working with Weld as CDI implementation.
This works very well, but I have to build it with Gradle. As soon I build it with Maven, Weld won't work.

Yet, I don't know why this occurs, but I keep investigating and will compare classpaths...

from aws-serverless-java-container.

sapessi avatar sapessi commented on June 22, 2024

Let me know how it goes. I'll pick this issue up after I've added support for the Play framework.

from aws-serverless-java-container.

sapessi avatar sapessi commented on June 22, 2024

ah, good to hear. I'll keep this open to see if there is something we can include in the project to make the process easier. If not, I'll at least update the wiki to document this.

from aws-serverless-java-container.

sapessi avatar sapessi commented on June 22, 2024

In the 1.0 release of the library, we updated Jersey to 2.6. The latest version of Jersey can support multiple CDI methods. Resolving this.

from aws-serverless-java-container.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.