Re: Question on JAX-WS services, EJBs and CDI scopes§

2014-09-06 Thread Lars-Fredrik Smedberg
@Romain Haha got it :) On Sat, Sep 6, 2014 at 7:44 PM, Romain Manni-Bucau wrote: > singleton like: new MyWebService() done a single time ;) > > > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: htt

Re: Question on JAX-WS services, EJBs and CDI scopes§

2014-09-06 Thread Romain Manni-Bucau
singleton like: new MyWebService() done a single time ;) Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-09-06 19:08 GMT+02:00 Lars-Fredrik Smedberg : > @Romain > > When

Re: Question on JAX-WS services, EJBs and CDI scopes§

2014-09-06 Thread Lars-Fredrik Smedberg
@Romain When you say singleton you mean a singleton that allows multiple threads to execute... much like @Singleton @Lock(READ) @WebService (except for the other EJB features that will open up) we talked about before right? Thanks On Sat, Sep 6, 2014 at 7:04 PM, Romain Manni-Bucau wrote: >

Re: Question on JAX-WS services, EJBs and CDI scopes§

2014-09-06 Thread Romain Manni-Bucau
Hi yes by default model is singleton. about scopes: nothing explicit in the spec AFAIK, in tomee default is: use cdi beans if possible so all scopes are possible (even session if your client supports it!). Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn

Re: Question on JAX-WS services, EJBs and CDI scopes§

2014-09-06 Thread Lars-Fredrik Smedberg
Hi Thanks for the answers, see some follow up questions below. On Sat, Sep 6, 2014 at 1:20 PM, Jean-Louis Monteiro < jlmonte...@tomitribe.com> wrote: > Hi, > > Le 6 sept. 2014 11:39, "Lars-Fredrik Smedberg" a > écrit > : > > > > Hi! > > > > I've tried to look at JSR-299 CDI, JSR-318 EJB and

Re: Question on JAX-WS services, EJBs and CDI scopes§

2014-09-06 Thread Jean-Louis Monteiro
Hi, Le 6 sept. 2014 11:39, "Lars-Fredrik Smedberg" a écrit : > > Hi! > > I've tried to look at JSR-299 CDI, JSR-318 EJB and JSR-109 Enterprise Web > Services (the ones we need to rely on)... > > I try to understand how I can combine EJB/CDI (is possible) with a JAX-WS > WebService, a @WebService

Question on JAX-WS services, EJBs and CDI scopes§

2014-09-06 Thread Lars-Fredrik Smedberg
Hi! I've tried to look at JSR-299 CDI, JSR-318 EJB and JSR-109 Enterprise Web Services (the ones we need to rely on)... I try to understand how I can combine EJB/CDI (is possible) with a JAX-WS WebService, a @WebService annotated class... We are in production currently on JavaEE 6. Questions/ass