tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacek Laskowski <ja...@laskowski.net.pl>
Subject Re: method interceptor is never called
Date Mon, 04 Jan 2010 23:36:32 GMT
On Mon, Jan 4, 2010 at 10:12 PM, Jacek Laskowski <jacek@laskowski.net.pl> wrote:
> On Mon, Jan 4, 2010 at 8:16 PM, Christian Bourque
> <christian.bourque@gmail.com> wrote:
>
>> There you go! It's a maven project so simply run it with: mvn test
>>
>> You'll see that the second test will fail when it shouldn't...
>
> Failed tests:
>  testWithGenerics(test.test.AppTest)
>
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0
>
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
>
> Looking into it...will report the findings soon.

Found the issue - openejb doesn't support "Using Generics in EJBs".
See [1] for a workaround that works (I don't mean you should migrate
to WLS though :)). I've just committed corresponding changes to the
interceptor example [2] to let you see what the workaround looks like.
In the nutshell, you should extend the interface with generics with
the one without and annotate it with @Local. It will work.

In the upcoming days I'm going to fix it -
https://issues.apache.org/jira/browse/OPENEJB-1128.

[1] http://download.oracle.com/docs/cd/E11035_01/wls100/ejb30/implementing.html#wp1129878
[2] https://svn.apache.org/repos/asf/openejb/trunk/openejb3/examples/interceptors

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://wszystkojawne.pl
p.s. Szukam speca/firmy od grafiki/CSS/HTML

Mime
View raw message