users@glassfish.java.net

Re: Weld/CDI Decorator and Glassfish v3.0.1

From: Sivakumar Thyagarajan <Sivakumar.Thyagarajan_at_Sun.COM>
Date: Thu, 11 Nov 2010 16:16:17 +0530

Hi

Please find a simple decorator test case at
https://svn.dev.java.net/svn/glassfish-svn/trunk/v2/appserv-tests/devtests/cdi/decorators/simple-decorator/

I just tested and found this working with 3.1 trunk. The test war was
bundled as follows:
> [16:15:43] [siva_at_spiff ../simple-decorator] (master) $ jar -tvf /export/work/workspaces/gfv3/appserv-tests/build/module/archive/cdi-simple-decorator-web.war
> 0 Thu Nov 11 16:15:42 IST 2010 META-INF/
> 102 Thu Nov 11 16:15:40 IST 2010 META-INF/MANIFEST.MF
> 0 Thu Nov 11 16:15:40 IST 2010 WEB-INF/
> 0 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/
> 0 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/
> 0 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/beans/
> 261 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/beans/Account.class
> 1190 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/beans/LargeTransactionDecorator.class
> 455 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/beans/Preferred.class
> 1607 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/beans/RequiresNewTransactionInterceptor.class
> 684 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/beans/ShoppingCart.class
> 1495 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/beans/TestAccount.class
> 745 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/beans/TestBean.class
> 298 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/beans/TestDependentBean.class
> 1495 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/beans/TransactionInterceptor.class
> 614 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/beans/Transactional.class
> 0 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/servlet/
> 4072 Thu Nov 11 16:15:40 IST 2010 WEB-INF/classes/test/servlet/SimpleDecoratorTestServlet.class
> 472 Thu Nov 11 16:15:40 IST 2010 WEB-INF/beans.xml

Thanks
--Siva.

On Thursday 11 November 2010 04:47 AM, forums_at_java.net wrote:
> I 've been trying to deploy and test Weld/CDI Decorators with no luck.
>
> The application is deployed without any Weld warnings, beans.xml is present
> and CDI is activated.
>
> Injection and interceptors are working fine, but the decorators are never
> invoked.
>
>
> Anyone have a working sample application with decorators?
>
>
>
> - lars e.
>
>
>
>
>
>
> --
>
> [Message sent by forum member 'larse']
>
> View Post: http://forums.java.net/node/715761
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>