Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 89D519126 for ; Wed, 16 Nov 2011 14:29:54 +0000 (UTC) Received: (qmail 82563 invoked by uid 500); 16 Nov 2011 14:29:53 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 82515 invoked by uid 500); 16 Nov 2011 14:29:53 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 82507 invoked by uid 99); 16 Nov 2011 14:29:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 14:29:53 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Frederik.DeBacker@dexia.com designates 212.63.232.3 as permitted sender) Received: from [212.63.232.3] (HELO mail1.dexia.com) (212.63.232.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 14:29:47 +0000 x-Footer: HTML Content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: RE: CXF DOSGI and transactions Date: Wed, 16 Nov 2011 15:29:26 +0100 Message-ID: <99F6924F7BAB824EB73C7D866E72333601B65738@DLU0VEXM033P.dbb.int.dexwired.net> In-Reply-To: <4EC3B758.4020405@gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: CXF DOSGI and transactions Thread-Index: AcykYdQzhFjfNhhEScKIy81TS8wR1AABpeQw References: <99F6924F7BAB824EB73C7D866E72333601B65735@DLU0VEXM033P.dbb.int.dexwired.net> <4EC3B758.4020405@gmail.com> From: "De Backer Frederik (DBB)" To: X-OriginalArrivalTime: 16 Nov 2011 14:29:27.0019 (UTC) FILETIME=[24F263B0:01CCA46C] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, As far as I can tell, Aries doesn't use AOP or CGLIB to proxy the service. Instead they use an interceptor mechanism: a Java class that contains methods to define the behaviour to be executed before and after the service invocation is done.=20 Kr, Frederik. =20 -----Original Message----- From: Sergey Beryozkin [mailto:sberyozkin@gmail.com]=20 Sent: woensdag 16 november 2011 14:15 To: users@cxf.apache.org Subject: Re: CXF DOSGI and transactions Hi On 16/11/11 11:20, De Backer Frederik (DBB) wrote: > Hello, > I have installed the latest single bundle release of CXF DOSGI in=20 > Apache Aries 0.3. I have played around a bit with it and it works ok=20 > to remotely expose a service (see blueprint definition below).=20 > However, when I add a transaction attribute on the bean definition (in > comment below), the service is not exposed anymore. The purpose is not > to do transaction propagation from client to service but just to start > a transaction when the service method is invoked. > ref=3D"bankServiceBean"> > > key=3D"service.exported.configs" value=3D"org.apache.cxf.ws" /> key=3D"org.apache.cxf.ws.address" > value=3D"http://localhost:9090/bankservice" /> =20 > class=3D"dexia.osgipoc.sedm3.service.BankServiceImpl" > activation=3D"lazy"> > name=3D"actorService" ref=3D"actorServiceRef" /> name=3D"accountService" ref=3D"accountServiceRef" /> In the=20 > console log I see (NULL for EndpointDescription): > 16-nov-2011 10:41:09 > org.apache.cxf.dosgi.topologymanager.TopologyManager$2 run > INFO: TopologyManager: export sucessful Endpoints:[Endpoint=20 > Desctiption for Serv iceReference=20 > {dexia.osgipoc.sedm3.service.BankService}=3D{osgi.service.blueprint.c > ompname=3DbankServiceBean, > org.apache.cxf.ws.address=3Dhttp://localhost:9090/bankser > vice, service.exported.interfaces=3D*, > service.exported.configs=3Dorg.apache.cxf.ws, > service.id=3D107} > *** EndpointDescription: **** > ---> NULL<---- > *** Exception: null **** > *** isClosed : false **** > ] > It is most likely a bug to do with DOSGi CXF not able to get to the actual interface class given that Aries must be proxifying it.. CXF has utilities to deal with such cases but I'm wondering, how the proxification is done in this case, if Spring AOP or CGLIB is used then a fix may be applied, can you create a simple test case somehow ? As a workaround, please try experimenting with forcing CGLIB be used Cheers, Sergey While in the case that it works correctly, I see: > INFO: TopologyManager: export sucessful Endpoints:[Endpoint=20 > Desctiption for Serv iceReference=20 > {dexia.osgipoc.sedm3.service.BankService}=3D{osgi.service.blueprint.c > ompname=3DbankServiceBean, > org.apache.cxf.ws.address=3Dhttp://localhost:9090/bankser > vice, service.exported.interfaces=3D*, > service.exported.configs=3Dorg.apache.cxf.ws, > service.id=3D111} > *** EndpointDescription: **** > endpoint.framework.uuid =3D> c39d5ef1-ca55-4141-9901-d976b0e59ed1 > endpoint.id =3D> http://localhost:9090/bankservice=20 > endpoint.package.version.dexia.osgipoc.sedm3.service =3D> =20 > 0.0.1.SNAPSHOT endpoint.service.id =3D> 111 objectClass =3D> =20 > [Ljava.lang.String;@c67f69 org.apache.cxf.ws.address =3D> =20 > http://localhost:9090/bankservice osgi.service.blueprint.compname =3D> =20 > bankServiceBean service.imported =3D> true service.imported.configs =3D> > [Ljava.lang.String;@1d6e4a4 service.intents =3D> =20 > [Ljava.lang.String;@13ceab3 > *** Exception: null **** > *** isClosed : false **** > ] > Thx a lot for the support, > Frederik. > > ---------------------------------------------------------------------- > --- > Dexia disclaimer: > > http://www.dexia.com/maildisclaimer.htm > ---------------------------------------------------------------------- > --- > > ------------------------------------------------------------------------- Dexia disclaimer: http://www.dexia.com/maildisclaimer.htm -------------------------------------------------------------------------