Re: Performing Java EE resource injections dynamically

2016-03-28 Thread Romain Manni-Bucau
Hi Dimitri CDI injections are created - more validated actually - at startup and dont rely on JNDI at all. EE injections rely on JNDI and are linked to CDI through a particular bean (Comp) representing the whole webapp JNDI tree. In term of code an InjectionTarget should work but needs to be ther

Re: Performing Java EE resource injections dynamically

2016-03-28 Thread Dimitri
Sorry for broken links. Shouldn't have used line wrapping in my mail client. Project write-up: https://gist.github.com/dteleguin/c93fe4a4c666234729d8 StackOverflow thread: http://stackoverflow.com/questions/36239250/injecting-java-ee-resources-into-dynamically-loaded-classes

Performing Java EE resource injections dynamically

2016-03-28 Thread Dimitri
Hi all, I'm working on a project that is meant to bring CDI injections to server-side JavaScript. There are similarities with Undertow.js [1], but the project I'm working on has more generic nature, wider scope and vendor-neutral character. From the very inception it was clear that TomEE should be

Re: Consider support for the Servlet profile of JSR 196 (JASPIC) in TomEE

2016-03-28 Thread Romain Manni-Bucau
Le 29 mars 2016 00:09, "Arjan Tijms" a écrit : > > Thanks for starting this. > > jaxrs/angularjs/src/main/resources/META-INF/persistence.xml is for sure > wrong in the original. "java:jboss/datasources/ExampleDS" is obviously not > portable. > > All JPA based tests use the Java EE 7 default data

Re: Consider support for the Servlet profile of JSR 196 (JASPIC) in TomEE

2016-03-28 Thread Arjan Tijms
Thanks for starting this. jaxrs/angularjs/src/main/resources/META-INF/persistence.xml is for sure wrong in the original. "java:jboss/datasources/ExampleDS" is obviously not portable. All JPA based tests use the Java EE 7 default data source, which is generally good enough. In some cases where @D

Re: Consider support for the Servlet profile of JSR 196 (JASPIC) in TomEE

2016-03-28 Thread Romain Manni-Bucau
pushed my work on https://github.com/rmannibucau/javaee7-samples. Several samples should pass and doesnt yet. Didn't check why but can just be a pom setup issue, implementation hypothesis (like hardcoding a h2/hibernate usage ;)) or something like that (typically a lot of websocket tests are failin

Re: Consider support for the Servlet profile of JSR 196 (JASPIC) in TomEE

2016-03-28 Thread Romain Manni-Bucau
Le 28 mars 2016 04:44, "Arjan Tijms" a écrit : > > On Sun, Mar 27, 2016 at 11:33 AM, Romain Manni-Bucau [via TomEE & OpenEJB] < > ml-node+s979440n4677974...@n4.nabble.com> wrote: > > > Normally master is deployed each night but sometimes it doesnt work so > > should be. > > > > Ok, thanks! > > > >