Re: Question on CDI, JTA and EJB

2016-06-16 Thread Lars-Fredrik Smedberg
but defaults should be fine. > Le 16 juin 2016 13:08, "Lars-Fredrik Smedberg" <itsme...@gmail.com> a > écrit : > > > Thanks for the reply Romain ... out of curiosity does Tomee allow it? > > > > Regards > > LF > > On Jun 16, 2016 13:02, "R

Re: Question on CDI, JTA and EJB

2016-06-16 Thread Lars-Fredrik Smedberg
n done this way to be honest > Le 16 juin 2016 12:34, "Lars-Fredrik Smedberg" <itsme...@gmail.com> a > écrit : > > > Hi > > > > Some parts of this is WELD specific and I know Tomee uses OWB but other > > parts are questions more to

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 attachm

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

Re: Unsecure deserialization of Java Objects

2015-11-27 Thread Lars-Fredrik Smedberg
gt; > UST-ID-Nr. DE159593454 > > ERGO Direkt Versicherung AG · Amtsgericht Fürth HRB 2934 · UST-ID-Nr. > > DE159593438 > > ERGO Direkt Krankenversicherung AG · Amtsgericht Fürth HRB 4694 · > > UST-ID-Nr. DE159593446 > > Vorsitzender der Aufsichtsräte der ERGO Direkt L

Re: Properties in web.xml

2015-11-18 Thread Lars-Fredrik Smedberg
(delegate pattern) and avoid you several code > 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 > > > 2

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

Re: Long running background tasks using Java EE 6

2015-06-01 Thread Lars-Fredrik Smedberg
://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 2015-05-29 11:14 GMT-07:00 Lars-Fredrik Smedberg itsme...@gmail.com: @Romain Just tried it out

Re: Long running background tasks using Java EE 6

2015-05-29 Thread Lars-Fredrik Smedberg
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 2015-04-18 16:59 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com

Re: Long running background tasks using Java EE 6

2015-05-29 Thread Lars-Fredrik Smedberg
and 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 rmannibu...@gmail.com wrote: 2015-05-29 14:55 GMT+02:00 Lars-Fredrik Smedberg itsme

Re: Long running background tasks using Java EE 6

2015-05-29 Thread Lars-Fredrik Smedberg
Manni-Bucau rmannibu...@gmail.com wrote: 2015-05-29 15:35 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com: @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 atleast the time the wait interval

Re: Long running background tasks using Java EE 6

2015-05-29 Thread Lars-Fredrik Smedberg
://www.linkedin.com/in/rmannibucau | Tomitriber http://www.tomitribe.com 2015-05-29 15:45 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com: @Romain Got it... so do i need in @PreDestroy method to wait for the async method to pick up the boolean variable change and exit before exiting @PreDestroy

Re: Long running background tasks using Java EE 6

2015-05-29 Thread Lars-Fredrik Smedberg
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 2015-05-29 15:45 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com

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 itsme...@gmail.com wrote: Hi! Is there a way to get a list of references to all timers running in an application

Get a reference to all Timer or TimerHandle available

2015-05-28 Thread Lars-Fredrik Smedberg
or 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: Suspend ongoing tx (if any) in a portable way

2015-05-07 Thread Lars-Fredrik Smedberg
but ends up to more or less the same yes. Le 7 mai 2015 13:27, Lars-Fredrik Smedberg itsme...@gmail.com a écrit : Hi What we need to do is to make sure that a specific code snippet not runs in a JTA tx We want to do this in a portable way so what we do is the following (psuedo

Suspend ongoing tx (if any) in a portable way

2015-05-07 Thread Lars-Fredrik Smedberg
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 information

Re: Long running background tasks using Java EE 6

2015-04-18 Thread Lars-Fredrik Smedberg
-Fredrik Smedberg itsme...@gmail.com: Hi I need to run a background task that will poll messages from a BlockingQueue, aggregate data (to some degree) and at regular intervals write the data to a file (append to a file). Each appserver instance will write to its own file so

Re: MDB transaction timeout

2015-04-14 Thread Lars-Fredrik Smedberg
Another option is to look at the redelivered property/redelivery count and take action (write to db?) in case of redelivery requires you to set a redelivery policy / number of retries etc /LF On Apr 14, 2015 10:39 PM, Leonardo K. Shikida shik...@gmail.com wrote: Yup, but if the MDB

Quersion on @AccessTimeout....

2015-02-10 Thread Lars-Fredrik Smedberg
implemented in TomEE only? 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

Re: Quersion on @AccessTimeout....

2015-02-10 Thread Lars-Fredrik Smedberg
, Feb 10, 2015 at 12:28 PM, Lars-Fredrik Smedberg itsme...@gmail.com wrote: Hi! Just curious, on http://tomee.apache.org/examples-trunk/access-timeout/README.html I read that @AccessTimeout also works for Stateless EJBs but in the JavaDoc for AccessTimeout and EJB (318) I only see

Re: Just curious, what parts of JEE is everyone using?

2015-02-08 Thread Lars-Fredrik Smedberg
and delete the material from any computer. -- 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

Question on @Resource and InitialContext

2015-02-03 Thread Lars-Fredrik Smedberg
pointers to source code would be fun 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

Re: Quesion on Interceptors and WebService classes

2015-01-27 Thread Lars-Fredrik Smedberg
2015-01-27 20:54 GMT+01:00 Lars-Fredrik Smedberg itsme...@gmail.com: Hi As far as I understood from previous discussions and from reading e.g. JSR-109: *Spec *says/allows - Allows Stateless/Singleton EJBs to be exposed as WebServices *TomEE *allows (in addition to the spec

Re: Quesion on Interceptors and WebService classes

2015-01-27 Thread Lars-Fredrik Smedberg
you to 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 itsme...@gmail.com a écrit : Hi Romain Thanks for the quick

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 electronic

About monitoring EJB Timer health

2014-12-10 Thread Lars-Fredrik Smedberg
(and in 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

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 itsme...@gmail.com 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 rmannibu...@gmail.com wrote: Will not change anything

Re: Injection of CDI extension

2014-12-08 Thread Lars-Fredrik Smedberg
:422) at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:202) ... 67 more On Sat, Dec 6, 2014 at 1:35 PM, Lars-Fredrik Smedberg itsme...@gmail.com wrote: Daniel, Romain Thanks, will try it out and let you know if it fixed my problems... Regads LF

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 itsme...@gmail.com wrote: @Romain I see that the extension receives the events... I'll zip

Re: Injection of CDI extension

2014-12-06 Thread Lars-Fredrik Smedberg
://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-12-05 21:44 GMT+01:00 Romain Manni-Bucau rmannibu...@gmail.com: 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 Smedberg itsme...@gmail.com a écrit

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 rmannibu...@gmail.com wrote: http://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/ Le 6 déc. 2014 11:37, Lars-Fredrik Smedberg itsme...@gmail.com a écrit : Thanks, where can

Re: Injection of CDI extension

2014-12-06 Thread Lars-Fredrik Smedberg
a écrit : 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? On Sat, Dec 6, 2014 at 12:25 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote

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 rmannibu...@gmail.com 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 itsme...@gmail.com: Hi I'm running

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 rmannibu...@gmail.com wrote: Le 28 nov. 2014 08:49, Lars-Fredrik Smedberg itsme...@gmail.com a écrit : We do it by a dependent scope bean impl callable at the moment... and resolve all

Re: TomeEE/OpenEJB question on implementation

2014-11-28 Thread Lars-Fredrik Smedberg
, 2014 at 9:37 AM, Romain Manni-Bucau rmannibu...@gmail.com wrote: 2014-11-28 9:26 GMT+01:00 Lars-Fredrik Smedberg itsme...@gmail.com: 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 passing

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 rmannibu...@gmail.com wrote: It basically just does executorService.execute(new OpenEjbMethod(method, securitycontext)) Le 27 nov. 2014 22:12, Lars-Fredrik Smedberg itsme...@gmail.com

Re: TomeEE/OpenEJB question on implementation

2014-11-27 Thread Lars-Fredrik Smedberg
/src/main/java/org/apache/openejb/core/ivm/EjbObjectProxyHandler.java Le 28 nov. 2014 00:18, Lars-Fredrik Smedberg itsme...@gmail.com a écrit : Thanks... What source code can I look at? Regards LF On Thu, Nov 27, 2014 at 11:29 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote

Re: TomeEE/OpenEJB question on implementation

2014-11-27 Thread Lars-Fredrik Smedberg
. If that'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 itsme...@gmail.com a écrit : Romain, could you please explain what the usage of ThreadContext

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

Re: Question on CDI Interceptor and EJBs

2014-11-07 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

Question regarding EJB Timers

2014-11-06 Thread Lars-Fredrik Smedberg
? - 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 CONFIDENTIALITY: The information contained in this electronic message and any

Re: Question regarding EJB Timers

2014-11-06 Thread Lars-Fredrik Smedberg
-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 itsme...@gmail.com: Hi I've been looking for some details on EJB Timers and retries... maybe someone

Re: Question regarding EJB Timers

2014-11-06 Thread Lars-Fredrik Smedberg
@rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-11-06 14:39 GMT+00:00 Lars-Fredrik Smedberg itsme...@gmail.com: Hi again Yes some of it (the vendor specific part and configuration of number of retries / interval etc). Had forgotten

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

Question on JTA

2014-10-27 Thread Lars-Fredrik Smedberg
in 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

Unittesting EJBs

2014-10-21 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: Unittesting EJBs

2014-10-21 Thread Lars-Fredrik Smedberg
- MDBs - Transactions - Concurreny management - Async methods -- 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

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

2014-10-18 Thread Lars-Fredrik Smedberg
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: haha... true true will direct it to them /LF On Fri, Oct 17, 2014 at 8:22 AM, Romain Manni-Bucau rmannibu

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

2014-10-17 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 itsme

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

2014-10-17 Thread Lars-Fredrik Smedberg
/in/rmannibucau Github: https://github.com/rmannibucau 2014-10-17 8:19 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com: @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

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

2014-10-16 Thread Lars-Fredrik Smedberg
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 itsme...@gmail.com: Hi Romain Thanks for the link to the ManagedConnection, some questions on it (so I understand it correctly

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 rmannibu...@gmail.com wrote: 2014-10-16 9:31 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com: @Romain I can see in the ManagedConnection code that the reused

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

2014-10-16 Thread Lars-Fredrik Smedberg
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 itsme...@gmail.com: 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 rmannibu

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

2014-10-16 Thread Lars-Fredrik Smedberg
, 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 itsme...@gmail.com: Thanks Romain, please see if you can help me on the follow up below? On Thu, Oct 16, 2014 at 9:33

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 itsme...@gmail.com: Just one more thing I forgot to put in the other mail With Depend, using ManagedConnection it will be green

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 itsme...@gmail.com: Thanks again, see below. On Thu, Oct 16, 2014 at 2

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

2014-10-16 Thread Lars-Fredrik Smedberg
-16 15:38 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com: 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

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

2014-10-14 Thread Lars-Fredrik Smedberg
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 message are intended

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

2014-10-14 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

Re: Regarding CDI scope and @Asynchronous EJB methods

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

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 rmannibu...@gmail.com wrote: 2014-10-06 8:38 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com: @Romain - Do I

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
with the thread, DeltaSpike has a CDIControl module that can do this for you. John On Mon, Oct 6, 2014 at 11:08 AM, Lars-Fredrik Smedberg itsme...@gmail.com wrote: When executing an EJB @Asynchronous method I know that valid CDI scopes are request and application. 1. Since @ApplicationScoped

Regarding @Inject vs @EJB for EJB

2014-10-03 Thread Lars-Fredrik Smedberg
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 STATEMENT

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

2014-09-30 Thread Lars-Fredrik Smedberg
...@gmail.com wrote: Oops, 1 retry by default sorry Le lundi 29 septembre 2014, Romain Manni-Bucau rmannibu...@gmail.com a écrit : Hi Le lundi 29 septembre 2014, Lars-Fredrik Smedberg itsme...@gmail.com a écrit : Hi! I try to find more information on EJB Timers, Exception handling and more

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

2014-09-30 Thread Lars-Fredrik Smedberg
...@gmail.com wrote: 2014-09-30 8:12 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com: 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 handling

More information on EJB Timer, their Exception handling etc

2014-09-29 Thread Lars-Fredrik Smedberg
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 contained

Re: ServletContext and MDB

2014-09-28 Thread Lars-Fredrik Smedberg
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 itsme...@gmail.com: If I use ejb-jar.xml or web.xml, are they bound to same JNDI name? That is java:comp/env/env

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 rmannibu...@gmail.com wrote: 2014-09-25 17:03 GMT+02:00 Lars-Fredrik Smedberg

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

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

2014-09-06 Thread Lars-Fredrik Smedberg
-- 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

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

2014-09-06 Thread Lars-Fredrik Smedberg
://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 itsme...@gmail.com: Hi Thanks for the answers, see some follow up questions below. On Sat, Sep 6, 2014 at 1:20 PM, Jean

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

2014-09-04 Thread Lars-Fredrik Smedberg
for 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
staeless I'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:00 Lars-Fredrik Smedberg itsme

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

2014-09-04 Thread Lars-Fredrik Smedberg
://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 itsme...@gmail.com: @Romain Or should I even do @Singleton @ConcurrencyManagement(BEAN) if I need no state? I know you said that the performance

EJBExceptions vs other non-application exceptions

2014-09-02 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

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 rmannibu...@gmail.com wrote: Hi 2014-09-02 22:37 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com: Hi! Maybe someone can shed

Re: Question on EJB and concurrency

2014-09-01 Thread Lars-Fredrik Smedberg
: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-09-01 10:32 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com: Hi I have some questions on EJBs and concurrency, I hope someone can shed some light on the following questions: 1. I have understood

Re: Questions on EJB, CDI and concurrency

2014-09-01 Thread Lars-Fredrik Smedberg
at 4:50 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Hi 2014-08-26 16:45 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com: 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
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 itsme...@gmail.com: Hi Romain A follow up question. What will the difference between

Re: Questions on EJB, CDI and concurrency

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

Re: Questions on EJB, CDI and concurrency

2014-08-27 Thread Lars-Fredrik Smedberg
://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 itsme...@gmail.com: Good to know... So in the case no CDI-proxy is created the EJB-proxy will also run the CDI-interceptors? I read

Questions on EJB, CDI and concurrency

2014-08-26 Thread Lars-Fredrik Smedberg
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 STATEMENT

Re: Questions on EJB, CDI and concurrency

2014-08-26 Thread Lars-Fredrik Smedberg
+02:00 Lars-Fredrik Smedberg itsme...@gmail.com: 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 - Concurrent access to a @Stateful bean is serialized by the container. I also understand that I

Re: Questions on EJB, CDI and concurrency

2014-08-26 Thread Lars-Fredrik Smedberg
wrote: Hi 2014-08-26 16:45 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com: 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 - Concurrent access to a @Stateful bean

Re: Questions on EJB, CDI and concurrency

2014-08-26 Thread Lars-Fredrik Smedberg
://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-08-26 21:10 GMT+02:00 Lars-Fredrik Smedberg itsme...@gmail.com: Sorry for that, ofcourse I meant @Stateful, that was what we discussed in the previous posts :) Thinking of the CDI proxy in front of the EJB proxy