-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weld integration #32
Comments
Hi @marciodel , Thanks! |
Hi @bbilger, I have included "org.jboss.weld.se:weld-se-core:2.4.2.SP1" and "org.glassfish.jersey.ext.cdi:jersey-weld2-se:2.25.1" in my project dependencies . In the request handler I have added Weld initialization.
Adding META-INF/beans.xml in each .jar made it work. I've dowloaded the project and made the changes to include it. I'm not a CDI expert, just a regular user. :) But what I've understood is that Weld (I don´t know about other CDI implementation) scans the .jar implementations that contains the META-INF/beans.xml. Best regards |
Hi @marciodel , |
Just a remark. I am deploying to AWS lambda a zip file containing a lib folder with the dependencies inside it.
|
Thanks! Take your time. I have managed to make my project work with those changes. Congratulations for this great project! |
@Inject in order to support CDI (weld)
I think I found the issue: the filters injected the request using @Inject which does not seem to work when using CDI/Weld (http://stackoverflow.com/questions/13419887/injection-of-httpservletrequest/13420108#13420108). So I switched to inject it using @context (I used @Inject by mistake). (I hope to be finally able to release JRestless 0.5.0 at the end of this week or at the beginning of next week; I will provide an example for CDI afterwards - will leave the bug open until then) |
Hi @marciodel , Hope this solves your problem! |
assuming fixed - if not, then please re-open |
Hi bbilger, sorry for the delayed answer. I was on vacation. I'll test it and provide a feedback as soon as possible. Thanks! |
I've tested with the version 0.5.1 and it is working flawlessly. Thanks! |
Hi @marciodel , |
In order to Weld work with Jrestless I needed to change the packages to include META-INF/beans.xml.
Is it possible to include those files in next release?
Thanks!
The text was updated successfully, but these errors were encountered: