Return-Path: X-Original-To: apmail-openwebbeans-user-archive@www.apache.org Delivered-To: apmail-openwebbeans-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AF29717251 for ; Sat, 8 Nov 2014 16:42:04 +0000 (UTC) Received: (qmail 92406 invoked by uid 500); 8 Nov 2014 16:42:04 -0000 Delivered-To: apmail-openwebbeans-user-archive@openwebbeans.apache.org Received: (qmail 92377 invoked by uid 500); 8 Nov 2014 16:42:04 -0000 Mailing-List: contact user-help@openwebbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@openwebbeans.apache.org Delivered-To: mailing list user@openwebbeans.apache.org Received: (qmail 92367 invoked by uid 99); 8 Nov 2014 16:42:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Nov 2014 16:42:04 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rmannibucau@gmail.com designates 209.85.216.41 as permitted sender) Received: from [209.85.216.41] (HELO mail-qa0-f41.google.com) (209.85.216.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Nov 2014 16:41:59 +0000 Received: by mail-qa0-f41.google.com with SMTP id s7so3722327qap.28 for ; Sat, 08 Nov 2014 08:41:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=l2MFBCqMQ0SXMWwez+CrwkdNDhPxHIZRRfzyzJLfMDM=; b=SQApz459FvKCHAcACRSdoFNV+redvifBSunwFgfgZk3kxbmu2NAxUNYAmFtTBP8uhP PbFtzzjOVUow1R2KUZuco8hRmdl/uWo65Wq8vwalORNZicMkT4nYKDYsSIAPOeBxvcye IjJ7guLy7J3AXyi3txfZY6jizxR+1mXbH2uvSnj6tBpXcnDt84MVuqIHQEpbt4CCmFA2 E0cXUP5tUzCdYC9bwwE9neGt+L7PSQAUKNTngZAy353FLU6tislU1azGm8mo4p5gVYYW J4rHnYczlSb+2tWnGEW7G9CwH04bSl7k+/u3oKWHyFpyyZ2hBDonBqDMN42fVJcygtmj 2RfA== MIME-Version: 1.0 X-Received: by 10.224.10.195 with SMTP id q3mr29417681qaq.8.1415464898424; Sat, 08 Nov 2014 08:41:38 -0800 (PST) Received: by 10.96.182.42 with HTTP; Sat, 8 Nov 2014 08:41:38 -0800 (PST) Received: by 10.96.182.42 with HTTP; Sat, 8 Nov 2014 08:41:38 -0800 (PST) In-Reply-To: References: Date: Sat, 8 Nov 2014 16:41:38 +0000 Message-ID: Subject: Re: Question on Interceptors and CDI specifications/versions From: Romain Manni-Bucau To: user@openwebbeans.apache.org Content-Type: multipart/alternative; boundary=001a11c1e0787673a405075b9a2b X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1e0787673a405075b9a2b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Just a doubt: you asked about around invoke but spoke about timeout. Timeout should be supported IIRC but we did it after several releases ie not 1.0. Le 8 nov. 2014 15:02, "Lars-Fredrik Smedberg" a =C3=A9= crit : > Thanks Romain.... then I will submit a bugreport.... > > /Fredrik > > On Sat, Nov 8, 2014 at 3:59 PM, Romain Manni-Bucau > wrote: > >> Iirc aroundinvoke was supported since the beginning >> Le 8 nov. 2014 14:05, "Lars-Fredrik Smedberg" a >> =C3=A9crit : >> >> @Romain >>> >>> I know WAS uses OWB and, as you say, some obsolete version. >>> >>> I was just curios in what CDI and OWB version the support was added. If >>> I try to bug report something that is not in Java EE 6 I will get the c= old >>> hand I guess :) >>> >>> >>> >>> On Sat, Nov 8, 2014 at 2:55 PM, Romain Manni-Bucau < >>> rmannibucau@gmail.com> wrote: >>> >>>> It is in tomee and by spec. No idea in WAS which has obsolete versions >>>> Le 8 nov. 2014 13:47, "Lars-Fredrik Smedberg" a >>>> =C3=A9crit : >>>> >>>> Hi! >>>>> >>>>> As I can see JSR318 contains two specifications, EJB 3.1 Specificatio= n >>>>> and Interceptors 1.1 (and later on Interceptors 1.2 MR) >>>>> >>>>> EJB 3.1 as well as Interceptors 1.1 are included in Java EE6. >>>>> Interceptors 1.2 is included in Javav EE7. >>>>> >>>>> When I look in Inteceptors Specification 1.1 I find no references to = a >>>>> specific CDI version or to CDI at all. >>>>> >>>>> When I look in Interceptors Specification 1.2 I see the following: >>>>> >>>>> *1.2 Relationship to Other Specifications* >>>>> >>>>> "...and the CDI specification requires support for the chapters 2,3 >>>>> and 5 (excluding 5.5)." >>>>> >>>>> CDI specification here points to "JSR346 - Context and Dependency >>>>> Injection for the Java EE Platform 1.1 (CDI specification)" >>>>> >>>>> *2.7 Timeout Method Inteceptors* >>>>> >>>>> "Interceptor methods that interpose on timeout methods are denoted by >>>>> the AroundTimeout annotation." >>>>> >>>>> "Around-timeout methods can have public, private, protected or packag= e >>>>> level access. An around-timeout method must not be declared as abstra= ct, >>>>> final or static." >>>>> >>>>> Question: >>>>> >>>>> 1) From the Interceptors 1.2 I understand that @AroundInvoke is okay >>>>> to use with a CDI interceptor using CDI 1.1, correct? >>>>> 2) What about CDI 1.0 (JSR 299) and Interceptors 1.1, is @AroundInvok= e >>>>> also okay with CDI 1.0? I find no information on that? >>>>> >>>>> The reason I ask is that I do not get it to work with WebSphere 8.5.5 >>>>> that uses OWB (with a version that atleast should support CDI 1.0). >>>>> >>>>> Regards >>>>> Lars-Fredrik >>>>> >>>>> >>>>> -- >>>>> Med v=C3=A4nlig h=C3=A4lsning / 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. I= f >>>>> you are not the intended recipient, please notify Lars-Fredrik Smedbe= rg >>>>> immediately at itsmeden@gmail.com, and destroy all copies of this >>>>> message and any attachments. >>>>> >>>> >>> >>> >>> -- >>> Med v=C3=A4nlig h=C3=A4lsning / 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 itsmeden@gmail.com, and destroy all copies of this >>> message and any attachments. >>> >> > > > -- > Med v=C3=A4nlig h=C3=A4lsning / 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 itsmeden@gmail.com, and destroy all copies of this > message and any attachments. > --001a11c1e0787673a405075b9a2b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Just a doubt: you asked about around invoke but spoke about = timeout. Timeout should be supported IIRC but we did it after several relea= ses ie not 1.0.

Le 8 nov. 2014 15:02, "Lars-Fredrik Smedber= g" <itsmeden@gmail.com>= ; a =C3=A9crit :
Thanks Romain.... then I will submit a bugreport....

=
/Fredrik

On Sat, Nov 8, 2014 at 3:59 PM, Romain Manni-Bucau <rma= nnibucau@gmail.com> wrote:
=

Iirc aroundinvoke was supported since the beginning

Le 8 nov. 2014 14:05, "Lars-Fredrik Smedber= g" <itsmede= n@gmail.com> a =C3=A9crit :

=C2=A0@Romain

= I know WAS uses OWB and, as you say, some obsolete version.

<= /div>
I was just curios in what CDI and OWB version the support was add= ed. If I try to bug report something that is not in Java EE 6 I will get th= e cold hand I guess :)



On Sat, Nov 8, 2014 at 2:55= PM, Romain Manni-Bucau <rmannibucau@gmail.com> wrote:

It is in tomee and by spec.= No idea in WAS which has obsolete versions

Le 8 nov. 2014 13:47, "Lars-Fredrik Smedber= g" <itsmede= n@gmail.com> a =C3=A9crit :

Hi!

As I can s= ee JSR318 contains two specifications, EJB 3.1 Specification and Intercepto= rs 1.1 (and later on Interceptors 1.2 MR)

EJB 3.1 = as well as Interceptors 1.1 are included in Java EE6.
Interceptor= s 1.2 is included in Javav EE7.

When I look in Int= eceptors Specification 1.1 I find no references to a specific CDI version o= r to CDI at all.

When I look in Interceptors Speci= fication 1.2 I see the following:

1.2 Rela= tionship to Other Specifications

"...and = the CDI specification requires support for the chapters 2,3 and 5 (excludin= g 5.5)."

CDI specification here points to=C2= =A0"JSR346 - Context and Dependency Injection for the Java EE Platform= 1.1 (CDI specification)"

2.7 Timeout Meth= od Inteceptors

"Interceptor methods that = interpose on timeout methods are denoted by the AroundTimeout annotation.&q= uot;

"Around-timeout methods can have public,= private, protected or package level access. An around-timeout method must = not be declared as abstract, final or static."
Question:

1) From the Interceptors 1.2= I understand that @AroundInvoke is okay to use with a CDI interceptor usin= g CDI 1.1, correct?
2) What about CDI 1.0 (JSR 299) and Intercept= ors 1.1, is @AroundInvoke also okay with CDI 1.0? I find no information on = that?=C2=A0

The reason I ask is that I do not get = it to work with WebSphere 8.5.5 that uses OWB (with a version that atleast = should support CDI 1.0).

Regards
Lars-Fr= edrik


--
Med v=C3=A4nlig h= =C3=A4lsning / Best regards

Lars-Fredrik Smedberg

STATEMENT O= F CONFIDENTIALITY:
The information contained in this electronic message = and any
attachments to this message are intended for the exclusive use o= f the
address(es) and may contain confidential or privileged information= . If
you are not the intended recipient, please notify Lars-Fredrik Smed= berg
immediately at itsmeden@gmail.com, and destroy all copies of this
message and = any attachments.



--
Med v= =C3=A4nlig h=C3=A4lsning / Best regards

Lars-Fredrik Smedberg
STATEMENT OF CONFIDENTIALITY:
The information contained in this electro= nic message and any
attachments to this message are intended for the exc= lusive 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 itsmeden@gmail.com, and destroy all copies of this
= message and any attachments.



--
Med v= =C3=A4nlig h=C3=A4lsning / Best regards

Lars-Fredrik Smedberg
STATEMENT OF CONFIDENTIALITY:
The information contained in this electro= nic message and any
attachments to this message are intended for the exc= lusive 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 itsmeden@gmail.com, and destroy all copies of this
= message and any attachments.
--001a11c1e0787673a405075b9a2b--