Get a reference to all Timer or TimerHandle available

2015-05-28 Thread Lars-Fredrik Smedberg
has anyone done something similar and if so how? Regards LF -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the address(es

Re: Get a reference to all Timer or TimerHandle available

2015-05-28 Thread Lars-Fredrik Smedberg
Just want to clarify that we are using JEE 6 and cannot use the getAllTimers() method in TimerService Regards LF On Thu, May 28, 2015 at 11:13 AM, Lars-Fredrik Smedberg wrote: > Hi! > > Is there a way to get a list of references to all timers running in an > application (

Re: Long running background tasks using Java EE 6

2015-05-29 Thread Lars-Fredrik Smedberg
> > > Romain Manni-Bucau > @rmannibucau <https://twitter.com/rmannibucau> | Blog > <http://rmannibucau.wordpress.com> | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <ht

Re: Long running background tasks using Java EE 6

2015-05-29 Thread Lars-Fredrik Smedberg
threadpool... since this is a long running task I should have the same thread all the time right? But I agree interrupting isnt the best way Regards LF On Fri, May 29, 2015 at 3:14 PM, Romain Manni-Bucau wrote: > 2015-05-29 14:55 GMT+02:00 Lars-Fredrik Smedberg : > > > @Romai

Re: Long running background tasks using Java EE 6

2015-05-29 Thread Lars-Fredrik Smedberg
omain Manni-Bucau" wrote: > 2015-05-29 15:35 GMT+02:00 Lars-Fredrik Smedberg : > > > @Romain > > > > Thanks for the answer > > > > I use a boolean now... the problem (if any) is that using a boolean flag > is > > that the shutdown will take at

Re: Long running background tasks using Java EE 6

2015-05-29 Thread Lars-Fredrik Smedberg
://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 2015-05-29 15:45 GMT+02:00 Lars-Fredrik Smedberg : > > > @Romain > > > > Got it... so do i need in @PreDestroy method to wait for the

Re: Long running background tasks using Java EE 6

2015-05-29 Thread Lars-Fredrik Smedberg
gt; Romain Manni-Bucau > @rmannibucau <https://twitter.com/rmannibucau> | Blog > <http://rmannibucau.wordpress.com> | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> &

Re: Long running background tasks using Java EE 6

2015-06-01 Thread Lars-Fredrik Smedberg
Bucau > @rmannibucau <https://twitter.com/rmannibucau> | Blog > <http://rmannibucau.wordpress.com> | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 201

Re: abusing the TomEE classloader: what order are the loaded in?

2015-10-25 Thread Lars-Fredrik Smedberg
@Romain where can I read more about jaxrs.txt ? On Oct 25, 2015 09:34, "Romain Manni-Bucau" wrote: > Think only web-inf/classez is guaranteed to be first but using jaxrs.txt > you should have a guaranteed order. > > Side note: tomcat just added a flag on snapshot to have a sorting, will > come in

Properties in web.xml

2015-11-18 Thread Lars-Fredrik Smedberg
(in am application server indendent way if possible). The reason for all this is that I would ilke to assemble the war/ear once and use it throughout testing up to and including the production environment. Best regards LF -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF

Re: Properties in web.xml

2015-11-18 Thread Lars-Fredrik Smedberg
lines. > > Depending the app a simple interceptor or JAXRS filter if you use > JAXRS 2 are nice API to use for such a need as well. > > > Romain Manni-Bucau > @rmannibucau | Blog | Github | LinkedIn | Tomitriber > > > 2015-11-18 8:24 GMT-08:00 Lars-Fredrik Smedberg : &

Re: Unsecure deserialization of Java Objects

2015-11-27 Thread Lars-Fredrik Smedberg
ristian > > Diedrich > > Vorstände: Dr. Daniel von Borries (Vorsitzender), Ralf Hartmann, Dr. Jörg > > Stoffels · Sitz: Fürth > > Karl-Martell-Straße 60 · 90344 Nürnberg · Internet: ergodirekt.de > > UniCredit Bank AG - HypoVereinsbank Kto.-Nr.: 66 071 430 · BLZ 700 202 70 > > IBAN: DE63 7002 0270 0066 0714 30 · BIC: HYVEDEMM > > > -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the address(es) and may contain confidential or privileged information. If you are not the intended recipient, please notify Lars-Fredrik Smedberg immediately at itsme...@gmail.com, and destroy all copies of this message and any attachments.

Question on annotations being picked up

2015-12-08 Thread Lars-Fredrik Smedberg
is this something that will work in any JEE6/JEE7 app server? Regards Lars-Fredrik -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive

Question on CDI, JTA and EJB

2016-06-16 Thread Lars-Fredrik Smedberg
his is not permitted according to the EJB spec or is MDBs a special case where it should be permitted? Regards Lars-Fredrik -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments

Re: Question on CDI, JTA and EJB

2016-06-16 Thread Lars-Fredrik Smedberg
gt; Le 16 juin 2016 12:34, "Lars-Fredrik Smedberg" a > écrit : > > > Hi > > > > Some parts of this is WELD specific and I know Tomee uses OWB but other > > parts are questions more to whats in the specs > > > > In the EJB 3.2 spec in

Re: Question on CDI, JTA and EJB

2016-06-16 Thread Lars-Fredrik Smedberg
gt; Le 16 juin 2016 13:08, "Lars-Fredrik Smedberg" a > écrit : > > > Thanks for the reply Romain ... out of curiosity does Tomee allow it? > > > > Regards > > LF > > On Jun 16, 2016 13:02, "Romain Manni-Bucau" > wrote: > >

Questions on EJB, CDI and concurrency

2014-08-26 Thread Lars-Fredrik Smedberg
sk is that as far as I understand CDI does not have any concurrency management but the EJB has. What will be the case when doing as above? Please help me get some in-depth understanding on this. Thanks Lars-Fredrik Smedberg -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEME

Re: Questions on EJB, CDI and concurrency

2014-08-26 Thread Lars-Fredrik Smedberg
nstance that allows concurrent calls > without > > wait? Correct? > > > > same as before, thread safety is ensured > > > The reason I ask is that as far as I understand CDI does not have any > > concurrency management but the EJB has. What will be the case whe

Re: Questions on EJB, CDI and concurrency

2014-08-26 Thread Lars-Fredrik Smedberg
is that > > cdi scope is just a proxy in front of ejb proxy > > > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-08-2

Re: Questions on EJB, CDI and concurrency

2014-08-26 Thread Lars-Fredrik Smedberg
com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-08-26 21:10 GMT+02:00 Lars-Fredrik Smedberg : > > Sorry for that, ofcourse I meant @Stateful, that was what we discussed in > > the previous posts :) > > > > Thinking o

Re: Questions on EJB, CDI and concurrency

2014-08-26 Thread Lars-Fredrik Smedberg
-Bucau wrote: > It works but it is handled by the ejb itself, not cdi > Le 26 août 2014 21:53, "Lars-Fredrik Smedberg" a > écrit : > > > @Romain > > > > I though that I could @Inject an EJB and apply CDI-interceptors to the > EJB > > or methods on it.

Re: Questions on EJB, CDI and concurrency

2014-08-26 Thread Lars-Fredrik Smedberg
Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-08-27 8:00 GMT+02:00 Lars-Fredrik Smedberg : > > Good to know... > > > > So in the case no CDI-proxy is created the EJB-pr

Question on EJB and concurrency

2014-09-01 Thread Lars-Fredrik Smedberg
that e.g. has @TransactionAttribute(REQUIRED) I will start multiple transactions? Thanks Regards Lars-Fredrik -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are

Re: Question on EJB and concurrency

2014-09-01 Thread Lars-Fredrik Smedberg
Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-09-01 10:32 GMT+02:00 Lars-Fredrik Smedberg : > > Hi > > > > I have some questions on EJBs and c

Re: Question on EJB and concurrency

2014-09-01 Thread Lars-Fredrik Smedberg
press.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-09-01 12:15 GMT+02:00 Lars-Fredrik Smedberg : > > @Romain > > > > Thanks for the answers... in question 4 I meant that if I annotate a bean > &g

Re: Questions on EJB, CDI and concurrency

2014-09-01 Thread Lars-Fredrik Smedberg
at 4:50 PM, Romain Manni-Bucau wrote: > Hi > > 2014-08-26 16:45 GMT+02:00 Lars-Fredrik Smedberg : > > Hi > > > > I have a few questions on EJB, CDI and Concurrency when I read > > http://tomee.apache.org/examples-trunk/access-timeout/README.html, I > read > &

Re: Questions on EJB, CDI and concurrency

2014-09-01 Thread Lars-Fredrik Smedberg
au > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-09-01 16:27 GMT+02:00 Lars-Fredrik Smedberg : > > Hi Romain > > > > A follow up question. What

Re: Questions on EJB, CDI and concurrency

2014-09-01 Thread Lars-Fredrik Smedberg
//rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-09-01 16:36 GMT+02:00 Lars-Fredrik Smedberg : > > So basically if I instead use @Singleton I have the possibility to use > bean > > manage

EJBExceptions vs other non-application exceptions

2014-09-02 Thread Lars-Fredrik Smedberg
s to be discarded. If thats the case is it still called for singletons? Best Regards Lars-Fredrik -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for t

Re: EJBExceptions vs other non-application exceptions

2014-09-02 Thread Lars-Fredrik Smedberg
@Romain Thanks for quick answers. Gonna try and explore it abit more doing some examples. Thanks again On Tue, Sep 2, 2014 at 10:44 PM, Romain Manni-Bucau wrote: > Hi > > > > 2014-09-02 22:37 GMT+02:00 Lars-Fredrik Smedberg : > > Hi! > > > > Maybe someone

Pros and cons using @Stateless EJB vs @Stateful @RequestScoped EJB

2014-09-03 Thread Lars-Fredrik Smedberg
help to shed some light on this Regards Lars-Fredrik -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the address(es) and may

Re: Pros and cons using @Stateless EJB vs @Stateful @RequestScoped EJB

2014-09-04 Thread Lars-Fredrik Smedberg
> > Hope it helps even if adding some blur ;) > > > > > > > > > > > > Romain Manni-Bucau > > Twitter: @rmannibucau > > Blog: http://rmannibucau.wordpress.com/ > > LinkedIn: http://fr.linkedin.com/in/rmannibucau > > Github: https://gith

Re: Pros and cons using @Stateless EJB vs @Stateful @RequestScoped EJB

2014-09-04 Thread Lars-Fredrik Smedberg
27;d use > @Singleton @Lock(READ), do you need any state? > > > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-09-04 10:30 GMT+02

Re: Pros and cons using @Stateless EJB vs @Stateful @RequestScoped EJB

2014-09-04 Thread Lars-Fredrik Smedberg
au > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-09-04 10:55 GMT+02:00 Lars-Fredrik Smedberg : > > @Romain > > > > Or should I even do @Singleton @ConcurrencyManagement(BEAN)

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

2014-09-06 Thread Lars-Fredrik Smedberg
he CDI spec? Thanks Lars-Fredrik -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the address(es) and may contain confidentia

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! > > >

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

2014-09-06 Thread Lars-Fredrik Smedberg
witter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-09-06 18:17 GMT+02:00 Lars-Fredrik Smedberg : > > Hi > > > > Thanks for the answers, see some follow up questions

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

2014-09-06 Thread Lars-Fredrik Smedberg
/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-09-06 19:08 GMT+02:00 Lars-Fredrik Smedberg : > > @Romain > > > > When you say singleton you mean a singleton that allows multiple threads > to > > execute... much like @Singleton @Lock(READ) @WebServ

Question on transactions

2014-09-08 Thread Lars-Fredrik Smedberg
vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the address(es) and may contain confidential or privileged information. If you are not the

Re: Question on transactions

2014-09-08 Thread Lars-Fredrik Smedberg
PORTED (if one started, execption). > > > > JLouis > > > > -- > > Jean-Louis Monteiro > > http://twitter.com/jlouismonteiro > > http://www.tomitribe.com > > > > On Mon, Sep 8, 2014 at 2:58 PM, Lars-Fredrik Smedberg < > itsme...@gmail.com>

Re: Question on transactions

2014-09-08 Thread Lars-Fredrik Smedberg
p question... On Mon, Sep 8, 2014 at 3:32 PM, Lars-Fredrik Smedberg wrote: > Hi Jean-Louis > > So an EJB (e.g. a stateless EJB) NOT annotated with @TransactionAttribute > at all will still have the container start a transaction when its methods > are called? > My understanding was t

ServletContext and MDB

2014-09-25 Thread Lars-Fredrik Smedberg
. If the answer to the above is NO should I then move this parameter out of web.xml and place it somewhere else? Any suggestions to where? Regards LF -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message

Re: ServletContext and MDB

2014-09-25 Thread Lars-Fredrik Smedberg
Hi Thanks for the quick reply... a follow up below. On Thu, Sep 25, 2014 at 4:41 PM, Romain Manni-Bucau wrote: > 2014-09-25 16:03 GMT+02:00 Lars-Fredrik Smedberg : > > Hi > > > > I have a context-param in my web.xml file that I access using > > getInitParameter in S

Re: ServletContext and MDB

2014-09-25 Thread Lars-Fredrik Smedberg
So I guess it would be better to put the configuration somewhere else then... rather than mixing the containers and their configuration as you point out. Thanks LF On Thu, Sep 25, 2014 at 5:40 PM, Romain Manni-Bucau wrote: > 2014-09-25 17:03 GMT+02:00 Lars-Fredrik Smedberg : >

Re: ServletContext and MDB

2014-09-26 Thread Lars-Fredrik Smedberg
nibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-09-25 21:49 GMT+02:00 Lars-Fredrik Smedberg : > > So I guess it would be better to put the configuration somewhere else >

Re: ServletContext and MDB

2014-09-28 Thread Lars-Fredrik Smedberg
bucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-09-26 20:56 GMT+02:00 Lars-Fredrik Smedberg : > > If I use ejb-jar.xml or web.xml, are they bound to same JNDI name? That > i

Re: ServletContext and MDB

2014-09-29 Thread Lars-Fredrik Smedberg
wrote: > Ejb jndi entries can be private. If you bind something different but using > the same name than in the web jndi tree then you can get some surprises > > Le dimanche 28 septembre 2014, Lars-Fredrik Smedberg > a > écrit : > > What does that mean? Same name? ...

More information on EJB Timer, their Exception handling etc

2014-09-29 Thread Lars-Fredrik Smedberg
rs how are the container handling exceptions? Will the container retry? If so how many times and at what interval? Or will it simple retry at the next timeout? Regards Lars-Fredrik -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contain

Re: More information on EJB Timer, their Exception handling etc

2014-09-29 Thread Lars-Fredrik Smedberg
, 1 retry by default sorry > > Le lundi 29 septembre 2014, Romain Manni-Bucau a > écrit : > > Hi > > > > Le lundi 29 septembre 2014, Lars-Fredrik Smedberg a > écrit : > >> Hi! > >> > >> I try to find more information on EJB Timers, Except

Re: More information on EJB Timer, their Exception handling etc

2014-09-30 Thread Lars-Fredrik Smedberg
ot; wrote: > 2014-09-30 8:12 GMT+02:00 Lars-Fredrik Smedberg : > > Thanks for your answers Romain some follow ups (and really preciate > > you help me out): > > > > - Will any types of exceptions result in 1 retry? Checked or runtime? > > it respect ejb exception h

Regarding @Inject vs @EJB for EJB

2014-10-03 Thread Lars-Fredrik Smedberg
nject correct? 3. If the EJB is packaged in another WAR inside the same EAR or in another EAR I need to use @EJB correct? 4. In case 3 how do I adress the EJB? Where can I read more about the naming standard? Regards LF -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEME

Re: Regarding @Inject vs @EJB for EJB

2014-10-05 Thread Lars-Fredrik Smedberg
abble.com/Regarding-Inject-vs-EJB-for-EJB-tp4672108p4672117.html > >> Sent from the TomEE Users mailing list archive at Nabble.com. > >> > > > > > > -- > > Enviat amb Gmail Mobile > -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEME

Re: Regarding @Inject vs @EJB for EJB

2014-10-06 Thread Lars-Fredrik Smedberg
@Romain Thanks is @EJB with CDI-interceptors working for any App server that is JEE6 compatible or is it a TomEE feature? On Mon, Oct 6, 2014 at 9:02 AM, Romain Manni-Bucau wrote: > 2014-10-06 8:38 GMT+02:00 Lars-Fredrik Smedberg : > > @Romain > > > > - Do I not need t

Regarding CDI scope and @Asynchronous EJB methods

2014-10-06 Thread Lars-Fredrik Smedberg
scoped CDI Managed Bean to an @Asynchronous EJB method, the choice depends on wether the object passed needs to inject anything, correct? -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any

Re: Regarding CDI scope and @Asynchronous EJB methods

2014-10-06 Thread Lars-Fredrik Smedberg
, DeltaSpike has a CDIControl module that can > do this for you. > > John > > On Mon, Oct 6, 2014 at 11:08 AM, Lars-Fredrik Smedberg > > wrote: > > > When executing an EJB @Asynchronous method I know that valid CDI scopes > are > > request and application. >

Re: Regarding CDI scope and @Asynchronous EJB methods

2014-10-06 Thread Lars-Fredrik Smedberg
ta to the async computation no more, no? > This method is simple and I guess will create the least amount of errors when developers that does not know every aspect of EJB and CDI will build applications. > > > On Mon, Oct 6, 2014 at 12:51 PM, Lars-Fredrik Smedberg < > itsme...@g

Re: Regarding CDI scope and @Asynchronous EJB methods

2014-10-07 Thread Lars-Fredrik Smedberg
Exception { someEJB1.doWork(); someEJB2.doWork(); return true; } } On Mon, Oct 6, 2014 at 10:20 PM, Lars-Fredrik Smedberg wrote: > > On Mon, Oct 6, 2014 at 6:58 PM, Romain Manni-Bucau > wrote: > >> 2014-10-06 18:55 GMT+02:00 John D. Ament : >> > No, not at a

JDBC Transactions vs EJBs and @TransactionAttribute(...) and more...

2014-10-14 Thread Lars-Fredrik Smedberg
really great to understand it all more in-depth to be able to have the understanding and discuss it with the DBA. Thanks -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this messa

Re: JDBC Transactions vs EJBs and @TransactionAttribute(...) and more...

2014-10-14 Thread Lars-Fredrik Smedberg
omain Manni-Bucau wrote: > Hi > > this is actually more bound to JTA (you can read > > http://svn.apache.org/repos/asf/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/managed/local/ManagedConnection.java > ) > > > 2014-10-15 0:14

Re: JDBC Transactions vs EJBs and @TransactionAttribute(...) and more...

2014-10-16 Thread Lars-Fredrik Smedberg
b-core for > instance) > > > Romain Manni-Bucau > @rmannibucau > http://www.tomitribe.com > http://rmannibucau.wordpress.com > https://github.com/rmannibucau > > > 2014-10-15 1:19 GMT+02:00 Lars-Fredrik Smedberg : > > Hi Romain > > > > Thanks f

Re: JDBC Transactions vs EJBs and @TransactionAttribute(...) and more...

2014-10-16 Thread Lars-Fredrik Smedberg
Thanks Romain, please see if you can help me on the follow up below? On Thu, Oct 16, 2014 at 9:33 AM, Romain Manni-Bucau wrote: > 2014-10-16 9:31 GMT+02:00 Lars-Fredrik Smedberg : > > @Romain > > > > I can see in the ManagedConnection code that the reused Connection is pe

Re: JDBC Transactions vs EJBs and @TransactionAttribute(...) and more...

2014-10-16 Thread Lars-Fredrik Smedberg
com> wrote: > Well I don't know websphere enough to answer to the related question > > > 2014-10-16 12:55 GMT+02:00 Lars-Fredrik Smedberg : > > Thanks Romain, please see if you can help me on the follow up below? > > > > > > On Thu, Oct 16, 2014 at 9:33 A

Re: JDBC Transactions vs EJBs and @TransactionAttribute(...) and more...

2014-10-16 Thread Lars-Fredrik Smedberg
t 12:59 PM, Romain Manni-Bucau < rmannibu...@tomitribe.com> wrote: > Well I don't know websphere enough to answer to the related question > > > 2014-10-16 12:55 GMT+02:00 Lars-Fredrik Smedberg : > > Thanks Romain, please see if you can help me on the follow up below? &

Re: JDBC Transactions vs EJBs and @TransactionAttribute(...) and more...

2014-10-16 Thread Lars-Fredrik Smedberg
Thanks again, see below. On Thu, Oct 16, 2014 at 2:05 PM, Romain Manni-Bucau < rmannibu...@tomitribe.com> wrote: > 2014-10-16 13:20 GMT+02:00 Lars-Fredrik Smedberg : > > Just one more thing I forgot to put in the other mail > > > > With "Depend, using ManagedCo

Re: JDBC Transactions vs EJBs and @TransactionAttribute(...) and more...

2014-10-16 Thread Lars-Fredrik Smedberg
Thanks for the answer What exactly is involved in a checkDs1() call? Regards LF On Thu, Oct 16, 2014 at 3:33 PM, Romain Manni-Bucau < rmannibu...@tomitribe.com> wrote: > 2014-10-16 15:01 GMT+02:00 Lars-Fredrik Smedberg : > > Thanks again, see below. > > > > On T

Re: JDBC Transactions vs EJBs and @TransactionAttribute(...) and more...

2014-10-16 Thread Lars-Fredrik Smedberg
https://github.com/rmannibucau > > > > 2014-10-16 15:38 GMT+02:00 Lars-Fredrik Smedberg : > > Thanks for the answer > > > > What exactly is involved in a checkDs1() call? > > > > Regards > > LF > > > > On Thu, Oct 16, 2014 at 3:33 PM, Roma

Re: JDBC Transactions vs EJBs and @TransactionAttribute(...) and more...

2014-10-16 Thread Lars-Fredrik Smedberg
@Romain Is there something similar to checkDs that I can do when using EJBs, Container Managed tx and PureQuery (which in turn gets connections from an injected datasource and fires queries...). That is checkDs without JPA? Regards LF On Thu, Oct 16, 2014 at 3:48 PM, Lars-Fredrik Smedberg

Re: JDBC Transactions vs EJBs and @TransactionAttribute(...) and more...

2014-10-16 Thread Lars-Fredrik Smedberg
/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > > 2014-10-17 8:19 GMT+02:00 Lars-Fredrik Smedberg : > > @Romain > > > > Is there something similar to checkDs that I can do when using EJBs, > > Container Managed tx and Pure

Re: JDBC Transactions vs EJBs and @TransactionAttribute(...) and more...

2014-10-18 Thread Lars-Fredrik Smedberg
is really cool for JSF apps, because > it enables lazy loading in the render response phase) then you can also use > EJBs. > > > LieGrue, > strub > > > > > > On Friday, 17 October 2014, 8:38, Lars-Fredrik Smedberg < > itsme...@gmail.com> wrote: > > &

Unittesting EJBs

2014-10-21 Thread Lars-Fredrik Smedberg
änlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the address(es) and may contain confidential or privileged information. If you are not the int

Re: Unittesting EJBs

2014-10-21 Thread Lars-Fredrik Smedberg
o inject DataSource > > - @Inject of CDI managed beans / EJBs > > - CDI- and EJB-interceptors > > - CDI-extensions (This I can still do with CDI-Unit if needed) > > - TimerEJBs > > - MDBs > > - Transactions > > - Concurreny management > > - A

Question on JTA

2014-10-27 Thread Lars-Fredrik Smedberg
the tx? Regards LF -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the address(es) and may contain confidential or privileged

Question on calling @Asynchronous EJB methods

2014-11-03 Thread Lars-Fredrik Smedberg
hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the address(es) and may contain confidential or privileged information. If you are not the intended

Re: Question on calling @Asynchronous EJB methods

2014-11-03 Thread Lars-Fredrik Smedberg
ut (if RejectedExecutionHandlerClass not set) > > I guess you want just a custom RejectedExecutionHandlerClass > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.

Question regarding EJB Timers

2014-11-06 Thread Lars-Fredrik Smedberg
(or twice within a short timeinterval around) 2:00 ? - Will the retry of the Timer stop as soon as the Timer not fails regardless of wether it was triggered as a result of a retry or a normal @Scheduler? -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIA

Re: Question regarding EJB Timers

2014-11-06 Thread Lars-Fredrik Smedberg
g-etc-td4672037.html > ? > > > Romain Manni-Bucau > @rmannibucau > http://www.tomitribe.com > http://rmannibucau.wordpress.com > https://github.com/rmannibucau > > > 2014-11-06 13:22 GMT+00:00 Lars-Fredrik Smedberg : > > Hi > > > > I've been looking for

Re: Question regarding EJB Timers

2014-11-06 Thread Lars-Fredrik Smedberg
anni-Bucau > @rmannibucau > http://www.tomitribe.com > http://rmannibucau.wordpress.com > https://github.com/rmannibucau > > > 2014-11-06 14:39 GMT+00:00 Lars-Fredrik Smedberg : > > Hi again > > > > Yes some of it (the vendor specific part and configuration of

Question on CDI Interceptor and EJBs

2014-11-07 Thread Lars-Fredrik Smedberg
annotation from the @Interceptor implementation class. This way there is only a compile time dependency to the @InterceptorBinding annotation. Is there a way to accomplish the same using EJB? Regards Lars-Fredrik -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF

Re: Question on CDI Interceptor and EJBs

2014-11-07 Thread Lars-Fredrik Smedberg
@Romain We use TomEE for development but still WebSphere for production :) I will try out my question on TomEE and let you know... thanks anyway for taking time to answer :) /LF On Fri, Nov 7, 2014 at 3:15 PM, Romain Manni-Bucau wrote: > 2014-11-07 14:00 GMT+00:00 Lars-Fredrik Smedb

TomeEE/OpenEJB question on implementation

2014-11-27 Thread Lars-Fredrik Smedberg
Hi! I would like to understand how TomEE/OpenEJB implements @Asynchronous EJB Methods Can anyone perhaps give me a short descriptions and the point to what source code classes to look at? Regards LF -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY

Re: TomeEE/OpenEJB question on implementation

2014-11-27 Thread Lars-Fredrik Smedberg
Thanks... What source code can I look at? Regards LF On Thu, Nov 27, 2014 at 11:29 PM, Romain Manni-Bucau wrote: > It basically just does executorService.execute(new OpenEjbMethod(method, > securitycontext)) > Le 27 nov. 2014 22:12, "Lars-Fredrik Smedberg" a > écrit &

Re: TomeEE/OpenEJB question on implementation

2014-11-27 Thread Lars-Fredrik Smedberg
c/main/java/org/apache/openejb/core/ivm/EjbObjectProxyHandler.java > Le 28 nov. 2014 00:18, "Lars-Fredrik Smedberg" a > écrit > : > > > Thanks... What source code can I look at? > > > > Regards > > LF > > > > On Thu, Nov 27, 2014 at 11:29 PM

Re: TomeEE/OpenEJB question on implementation

2014-11-27 Thread Lars-Fredrik Smedberg
)... For our use cases it is fine if the @RequestScoped beans lives a little bit longer than the original request. Is there any easy/good way to pass information so I can recreate the beans on the new thread? Regards LF On Fri, Nov 28, 2014 at 12:33 AM, Lars-Fredrik Smedberg wrote: > Thanks Rom

Re: TomeEE/OpenEJB question on implementation

2014-11-27 Thread Lars-Fredrik Smedberg
's > just values idea is to use a dependent bean passed as message to the async > method. To keep request scope you need a request scoped wrapper. > Le 28 nov. 2014 02:18, "Lars-Fredrik Smedberg" a > écrit : > > > Romain, could you please explain what the u

Re: TomeEE/OpenEJB question on implementation

2014-11-28 Thread Lars-Fredrik Smedberg
(even though its outside spec to use)? Regards LF On Fri, Nov 28, 2014 at 9:05 AM, Romain Manni-Bucau wrote: > Le 28 nov. 2014 08:49, "Lars-Fredrik Smedberg" a > écrit > : > > > > We do it by a dependent scope bean impl callable at the moment... and > > r

Re: TomeEE/OpenEJB question on implementation

2014-11-28 Thread Lars-Fredrik Smedberg
, 2014 at 9:37 AM, Romain Manni-Bucau wrote: > 2014-11-28 9:26 GMT+01:00 Lars-Fredrik Smedberg : > > Oh, so by request scoped wrapped you mean simply pull out whatever data I > > need from the scoped beans before I call the async method? > > > > sure "message passin

Injection of CDI extension

2014-12-05 Thread Lars-Fredrik Smedberg
Hi I'm running TomEE Plus 1.7.1 and I try to inject a CDI extension in a @RequestScoped bean but I get an error saying that no bean with @Default is available for injection. Is this the right way of getting data collected in the extension available to the application? Regards Lars-Fredrik

Re: Injection of CDI extension

2014-12-05 Thread Lars-Fredrik Smedberg
at 2:24 PM, Romain Manni-Bucau wrote: > Hi > > seems ok yes > > > Romain Manni-Bucau > @rmannibucau > http://www.tomitribe.com > http://rmannibucau.wordpress.com > https://github.com/rmannibucau > > > 2014-12-05 14:15 GMT+01:00 Lars-Fredrik Smedberg : >

Re: Injection of CDI extension

2014-12-05 Thread Lars-Fredrik Smedberg
during the boot of the container. I guess that's > the issue. What I don't get is why it doesn't fail more abruptally. > > > Romain Manni-Bucau > @rmannibucau > http://www.tomitribe.com > http://rmannibucau.wordpress.com > https://github.com/rmannibucau > >

Re: Injection of CDI extension

2014-12-06 Thread Lars-Fredrik Smedberg
wordpress.com > https://github.com/rmannibucau > > > 2014-12-05 21:44 GMT+01:00 Romain Manni-Bucau : > > Sorry misread the listener api you were using. Do you have a ready to run > > sample we can use to reproduce? > > > > Le 5 déc. 2014 20:37, "Lars-Fredrik Sme

Re: Injection of CDI extension

2014-12-06 Thread Lars-Fredrik Smedberg
Is that tomee or tomee plus? On Sat, Dec 6, 2014 at 12:25 PM, Romain Manni-Bucau wrote: > > http://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/ > Le 6 déc. 2014 11:37, "Lars-Fredrik Smedberg" a > écrit : > > > Thanks, where can

Re: Injection of CDI extension

2014-12-06 Thread Lars-Fredrik Smedberg
> That's is all TomEE > > > > plus, plume, jaxrs, webprofile. :) > > > > On Sat, Dec 6, 2014 at 12:16 PM, Lars-Fredrik Smedberg < > itsme...@gmail.com > > > > > wrote: > > > > > Is that tomee or tomee plus? > > > > > &g

Re: Injection of CDI extension

2014-12-08 Thread Lars-Fredrik Smedberg
more On Sat, Dec 6, 2014 at 1:35 PM, Lars-Fredrik Smedberg wrote: > Daniel, Romain > > Thanks, will try it out and let you know if it fixed my problems... > > Regads > LF > > On Sat, Dec 6, 2014 at 1:30 PM, Romain Manni-Bucau > wrote: > >> Will not change

Re: Injection of CDI extension

2014-12-08 Thread Lars-Fredrik Smedberg
kThread$WrappingRunnable.run(TaskThread.java:61) > > at java.lang.Thread.run(Thread.java:722) > > Caused by: javax.enterprise.inject.UnsatisfiedResolutionException: Api > type > > [test.JAXBContextExtension] is not found with the qualifiers > > Qualifiers: [@javax.enterprise.inject.Default()] > > for injection into F

Re: Injection of CDI extension

2014-12-08 Thread Lars-Fredrik Smedberg
Duh, my mistake, when zipping it up I saw that I had an old class with the same name in a different package Sorry for wasting your time :) On Mon, Dec 8, 2014 at 11:44 AM, Lars-Fredrik Smedberg wrote: > @Romain > > I see that the extension receives the events... I'll zip so

About monitoring EJB Timer health

2014-12-10 Thread Lars-Fredrik Smedberg
some appservers the request wait queue, request queue full policy etc)? If not available how someone here done something similar and in that case how? Regards LF -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic

Question on testing JAX-RS

2015-01-16 Thread Lars-Fredrik Smedberg
any good pages to look at? Regards LF -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the address(es) and may contain

Quesion on Interceptors and WebService classes

2015-01-27 Thread Lars-Fredrik Smedberg
as SoapFaultExceptions. Ps2. For @WebFault annotated checked exceptions and most of the runtime exceptions the above mentioned interceptor does nothing but rethrow -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: The information contained in this electro

Re: Quesion on Interceptors and WebService classes

2015-01-27 Thread Lars-Fredrik Smedberg
> https://github.com/rmannibucau > > > 2015-01-27 20:54 GMT+01:00 Lars-Fredrik Smedberg : > > Hi > > > > As far as I understood from previous discussions and from reading e.g. > > JSR-109: > > > > *Spec *says/allows > > > > - Allows Stateles

Re: Quesion on Interceptors and WebService classes

2015-01-27 Thread Lars-Fredrik Smedberg
o have interceptors. > > Not OOTB example but using PhaseInterceptor should do the trick whatever > solution you choose or a cxf interceptor allows you to do it without any > hack. > Le 27 janv. 2015 21:37, "Lars-Fredrik Smedberg" a > écrit : > > > Hi Romain >

  1   2   >