Re: Karaf and Transaction Control Service Specification

2019-08-05 Thread Markus Rathgeb
I got it working while creating the features myself.

Re: Karaf and Transaction Control Service Specification

2019-08-05 Thread Markus Rathgeb
Hi, did you see my message? Is the feature still in progress or is it just me that did not find it? Am Mo., 22. Juli 2019 um 13:03 Uhr schrieb Markus Rathgeb : > > Hi JB, > > can you point me to the feature repositories I need to add to Karaf > 4.2.6 to use OSGi R7 transaction

Re: Karaf and Transaction Control Service Specification

2019-07-22 Thread Markus Rathgeb
Hi JB, can you point me to the feature repositories I need to add to Karaf 4.2.6 to use OSGi R7 transaction control and JPA? Am Di., 5. Feb. 2019 um 16:53 Uhr schrieb Jean-Baptiste Onofré : > > I'm volunteer to add the features repository in aries-tx-control. That > would be he

Re: Karaf and Transaction Control Service Specification

2019-02-07 Thread Tim Ward
to:tim.w...@paremus.com>> wrote: >> >> Hi, >> >> The model is the way it is quite deliberately, and there are several usage >> issues with doing what you’re suggesting: >> >> It is unclear whether the EntityManager service is a scoped resource (and

Re: Karaf and Transaction Control Service Specification

2019-02-07 Thread Alex Soto
he EntityManager service is a scoped resource (and > therefore managed) or not to external users > It is unclear which Transaction Control service implementation the scoped > resource is attached to (the getResource(txControl) call creates an important > link). If you use the wron

Re: Karaf and Transaction Control Service Specification

2019-02-07 Thread Tim Ward
Hi, The model is the way it is quite deliberately, and there are several usage issues with doing what you’re suggesting: It is unclear whether the EntityManager service is a scoped resource (and therefore managed) or not to external users It is unclear which Transaction Control service

Re: Karaf and Transaction Control Service Specification

2019-02-07 Thread Alex Soto
rces (which is what > the ResourceProvider gives you) is the Transaction Control Specification. In > this case your question is covered by Section 147.2.5 Multi Threading > <https://osgi.org/specification/osgi.cmpn/7.0.0/service.transaction.control.html#d0e127038>. > > >

Re: Karaf and Transaction Control Service Specification

2019-02-06 Thread Alex Soto
Tim: thank you for the clarification. Best regards, Alex soto > On Feb 6, 2019, at 4:40 PM, Tim Ward wrote: > > The relevant specification for learning about scoped resources (which is what > the ResourceProvider gives you) is the Transaction Control Specification. In >

Re: Karaf and Transaction Control Service Specification

2019-02-06 Thread Tim Ward
The relevant specification for learning about scoped resources (which is what the ResourceProvider gives you) is the Transaction Control Specification. In this case your question is covered by Section 147.2.5 Multi Threading <https://osgi.org/specification/osgi.cmpn/7.

Re: Karaf and Transaction Control Service Specification

2019-02-06 Thread Alex Soto
Actually, I took a stab at this again since I had some spare time now. I am almost done. It looks promising. The only question I have is about the entity manager. In the examples, I see an entity manager is obtained in the activate method, and used for the rest of the life of the component:

Re: Karaf and Transaction Control Service Specification

2019-02-06 Thread Jean-Baptiste Onofré
Thanks for the feedback Tim. I created the following Jira to add a example about tx in general and tx-control in particular: https://issues.apache.org/jira/browse/KARAF-6140 By hte way, before the end of this week, I will send the first action of the "kloud initiative". Especially, I will send a

Re: Karaf and Transaction Control Service Specification

2019-02-06 Thread Tim Jones
Hi Alex, yes it is possible to use tx-control with Karaf, we have been using it on v4.0.5 in our production system for about 18 months with no issues. One of the main reasons we use tx-control is that is it 'backed' by a standard. Rightly or wrongly we also didn't have confidence in Aries JPA Temp

Re: Karaf and Transaction Control Service Specification

2019-02-05 Thread Alex Soto
gt;>>>>> I am pretty sure you can use it. >>>>>> >>>>>> There is an example in enroute: >>>>>> https://github.com/osgi/osgi.enroute/tree/master/examples/microservice/rest-app-jpa >>>>>> >>>>>> If

Re: Karaf and Transaction Control Service Specification

2019-02-05 Thread Jean-Baptiste Onofré
>>>>> There is an example in enroute: >>>>> https://github.com/osgi/osgi.enroute/tree/master/examples/microservice/rest-app-jpa >>>>> >>>>> If you use the same bundles it should work. >>>>> We can create a karaf f

Re: Karaf and Transaction Control Service Specification

2019-02-05 Thread Alex Soto
ster/examples/microservice/rest-app-jpa >>>> >>>> If you use the same bundles it should work. >>>> We can create a karaf feature in the aries-tx-control repo for it to >>>> make it easier to install. >>>> >>>> Christian >&g

Re: Karaf and Transaction Control Service Specification

2019-02-05 Thread Jean-Baptiste Onofré
rest-app-jpa >>> >>> If you use the same bundles it should work. >>> We can create a karaf feature in the aries-tx-control repo for it to >>> make it easier to install. >>> >>> Christian >>> >>> Am Di., 5. Feb. 2019 um 1

Re: Karaf and Transaction Control Service Specification

2019-02-05 Thread Alex Soto
gt;> If you use the same bundles it should work. >> We can create a karaf feature in the aries-tx-control repo for it to >> make it easier to install. >> >> Christian >> >> Am Di., 5. Feb. 2019 um 16:34 Uhr schrieb Alex Soto >> mailto:alex.s...@envieta.c

Re: Karaf and Transaction Control Service Specification

2019-02-05 Thread Jean-Baptiste Onofré
s...@envieta.com>>: > > Hi, > > Is it possible to use Transaction Control Service Specification with > Karaf? > > > https://osgi.org/specification/osgi.cmpn/7.0.0/service.transaction.control.html > > > Any good example or tutorial? >

Re: Karaf and Transaction Control Service Specification

2019-02-05 Thread Christian Schneider
. Christian Am Di., 5. Feb. 2019 um 16:34 Uhr schrieb Alex Soto : > Hi, > > Is it possible to use Transaction Control Service Specification with Karaf? > > > https://osgi.org/specification/osgi.cmpn/7.0.0/service.transaction.control.html > > > Any good example or tutorial? >

Re: Karaf and Transaction Control Service Specification

2019-02-05 Thread Jean-Baptiste Onofré
wrote: > Hi, > > Is it possible to use Transaction Control Service Specification with Karaf? > > https://osgi.org/specification/osgi.cmpn/7.0.0/service.transaction.control.html > > > Any good example or tutorial? > > (I am currently using Aries JPA Template, but I

Karaf and Transaction Control Service Specification

2019-02-05 Thread Alex Soto
Hi, Is it possible to use Transaction Control Service Specification with Karaf? https://osgi.org/specification/osgi.cmpn/7.0.0/service.transaction.control.html <https://osgi.org/specification/osgi.cmpn/7.0.0/service.transaction.control.html> Any good example or tutorial? (I am cur

RE: Transaction Control

2018-01-18 Thread Leschke, Scott
: Re: Transaction Control Hi Scott, Those are the two bundles that you need. At a guess Karaf is unhappy because the Aries bundles substitutably export the API packages that they need (including config admin) for ease of deployment. When installing bundles Karaf sometimes attempts some

Re: Transaction Control

2018-01-18 Thread Tim Ward
Hi Scott, Those are the two bundles that you need. At a guess Karaf is unhappy because the Aries bundles substitutably export the API packages that they need (including config admin) for ease of deployment. When installing bundles Karaf sometimes attempts some interesting package rewiring opera

Transaction Control

2018-01-16 Thread Leschke, Scott
I've been trying to integrate this into my app. I just pulled down the latest (0.0.3) jars from Maven Central. As far as I can tell, the two bundles I need are tx-control-service-local tx-control-provider-jdbc-local I can drop the first one into my deploy directory and it tells me it needs the

Re: Antw: Re: OSGi Transaction control fails with hibernate

2017-09-15 Thread Timothy Ward
project here: > https://github.com/sahlex/declarative-poc > <https://github.com/sahlex/declarative-poc> > > Best, Alexander. > > > > Note that this work should be done as part of a new transaction control > service implementation (there’s some common code whi

Re: Antw: Re: OSGi Transaction control fails with hibernate

2017-09-15 Thread alexander.sahler
Tim, please find the project here: https://github.com/sahlex/declarative-poc Best, Alexander. >>> Note that this work should be done as part of a new transaction control service implementation (there’s some common code which should help to speed up implementing it), not as chang

Re: Antw: Re: OSGi Transaction control fails with hibernate

2017-09-14 Thread Timothy Ward
> On 14 Sep 2017, at 16:01, Guillaume Nodet wrote: > > > > 2017-09-14 14:17 GMT+02:00 Timothy Ward <mailto:tim.w...@paremus.com>>: > Note that this work should be done as part of a new transaction control > service implementation (there’s some common code wh

Re: Antw: Re: OSGi Transaction control fails with hibernate

2017-09-14 Thread Guillaume Nodet
2017-09-14 14:17 GMT+02:00 Timothy Ward : > Note that this work should be done as part of a new transaction control > service implementation (there’s some common code which should help to speed > up implementing it), not as changes to the current implementation, which is >

Re: Antw: Re: OSGi Transaction control fails with hibernate

2017-09-14 Thread Timothy Ward
Note that this work should be done as part of a new transaction control service implementation (there’s some common code which should help to speed up implementing it), not as changes to the current implementation, which is undergoing stabilisation as the Reference Implementation of the OSGi

Re: Antw: Re: OSGi Transaction control fails with hibernate

2017-09-14 Thread alexander.sahler
17-09-14 11:40 GMT+02:00 Timothy Ward : Hi Alexander, As has been discussed on the Aries lists before, I have no problem with someone creating a separate implementation of the Transaction Control service which leverages the OSGi JTA Service Specification. The reason that the current implementation do

Re: Antw: Re: OSGi Transaction control fails with hibernate

2017-09-14 Thread Timothy Ward
dition of providing additional features and pluggability. > > Would you be interested to incorporate it in Tx Control ? This is not something that I have the time to do, but another implementation of a transaction control service with a pluggable transaction manager would be a great addition.

Re: Antw: Re: OSGi Transaction control fails with hibernate

2017-09-14 Thread Guillaume Nodet
2017-09-14 11:40 GMT+02:00 Timothy Ward : > Hi Alexander, > > As has been discussed on the Aries lists before, I have no problem with > someone creating a separate implementation of the Transaction Control > service which leverages the OSGi JTA Service Specification. The reason tha

Re: Antw: Re: OSGi Transaction control fails with hibernate

2017-09-14 Thread Timothy Ward
Hi Alexander, As has been discussed on the Aries lists before, I have no problem with someone creating a separate implementation of the Transaction Control service which leverages the OSGi JTA Service Specification. The reason that the current implementation doesn’t do this is twofold: By

Re: Antw: Re: OSGi Transaction control fails with hibernate

2017-09-13 Thread alexander.sahler
Hi Tim. I'm using the 2.6.1 version of aries jpa support already. Normal transaction control with blueprint and @Transactional annotation was working fine. To have better control over startup dependencies and cope with disappearing and appearing services during runtime we invest some time

Re: Antw: Re: OSGi Transaction control fails with hibernate

2017-09-13 Thread Timothy Ward
Hi Alexander, That looks like it should be fine - what version of Aries JPA are you using? There were some fixes made to Aries JPA in 2.4.0 to add support for JPA 2.1 configuration properties which are needed by the transaction control implementation, and I think that there were then more

Re: Antw: Re: OSGi Transaction control fails with hibernate

2017-09-13 Thread alexander.sahler
going to integrate with transaction control. For local transactions there is nothing to integrate with , but in the general case this is act ually quite hard to do, and I would advise not trying to do it. As you can see the EntityManagerFactory version of the provider factory ( https://github.co

Re: Antw: Re: OSGi Transaction control fails with hibernate

2017-09-13 Thread Timothy Ward
transaction control. For local transactions there is nothing to integrate with , but in the general case this is actually quite hard to do, and I would advise not trying to do it. As you can see the EntityManagerFactory version of the provider factory <https://github.com/apache/aries/b

Antw: Re: OSGi Transaction control fails with hibernate

2017-09-13 Thread alexander.sahler
Hi Tim, I use a JPAEntityManagerProviderFactory (providerFactory) which I inject as a service reference into my repository class. Furthermore, I inject a EntityManagerFactory (emf) into the repository class as well as the TransactionControl (txControl). The provider Factory is created by pax-jdb

Re: OSGi Transaction control fails with hibernate

2017-09-13 Thread Timothy Ward
Hi Alexander, Do you have a code example of how you’re obtaining and using the EntityManager? There should be no usage of the OSGiJtaPlatform from the tx-control XA JPA resource provider, which means that there’s either a bug in the resource provider, or something is misconfigured. If you are a

Re: OSGi Transaction control fails with hibernate

2017-09-13 Thread Guillaume Nodet
Fwiw, you should ask on the Aries mailing list, where tx-control is developed. I've recently worked on a new project called pax-transx which provides an abstraction layer on top of transaction managers so that some features can be accessed in a common way. I think this should be used in tx-contro

OSGi Transaction control fails with hibernate

2017-09-13 Thread alexander.sahler
Hello. I'm trying to get tx-control with XA transactions running (local is working). I found that tx-control opens a JTA transaction using RecoveryWorkAroundTransactionManager (derived from geronimo's TransactionManager Implementation) explicitly instead of using the registered TransactionMana