Re: Bundle restart are hard to tackle

2017-01-31 Thread Timothy Ward
Hi Charlie, The problem with: > [code] > @Transactional (propagation=REQUIRED) > private int txGet() { > return 42; > } > [/code] Is that it requires either proxying or bytecode enhancement to happen, both of these techniques impose constraints on bundle startup and/or container choice.

Re: Bundle restart are hard to tackle

2017-01-31 Thread Charlie Mordant
Hi Serge (sorry, I forgot to mention you in my last mail), hi Nick, Thanks for the tips Nick, I did not thought about putting breakpoints into Felix to see which bundle refresh what, will try it for sure. Tim, I personally see the proxy issue with @Transactional as only a

Re: Bundle restart are hard to tackle

2017-01-31 Thread Timothy Ward
Hi, Just to confirm, Tx Control doesn’t do @Transactional, but it does do JPA without the JPATemplate (i.e. you can just do normal JPA access within a managed block). As for bringing in Java EE guys, that’s great, but at least some of their usage patterns have to change if you want hot-swap

Re: Bundle restart are hard to tackle

2017-01-31 Thread Nick Baker
I do agree that Felix can be very opaque when restarts occur. We usually end up sprinkling breakpoints around or attaching BTrace to log framework internals. refreshOptionalPackages() is often the cause. Some better logging about the trigger and cause of the refresh would be great. I know that

Re: Bundle restart are hard to tackle

2017-01-31 Thread Charlie Mordant
Hi Timothy, Thank you for all your questions and interest. Concerning graphql, why not. I had in mind to provide a way to easily bring HATEOAS (via spring-hateoas, or implementing some cxf interceptors), but Graphql looks also promising, so why not, it'll be discussed... About the Aries Tx

Re: Maven bundle plaugin ver 3.2 adds "aries-jpa" require capability

2017-01-31 Thread ellirael
I need to mention that there is no error message in console. Kar is not installed. Error mesage info could be found in the log: 2017-01-31 13:48:41,786 | WARN | nsole user karaf | KarServiceImpl | 152 - org.apache.karaf.kar.core - 4.0.8 | Unable to install Kar feature

Maven bundle plaugin ver 3.2 adds "aries-jpa" require capability

2017-01-31 Thread ellirael
My model bundle manifest part: Require-Capability: osgi.extender;osgi.extender="aries.jpa",osgi.ee;fi lter:="(&(osgi.ee=JavaSE)(version=1.8))" Feature installer cannot satisfy "aries-jpa" require capability when installing a feature. When I install bundle by bundle there is no error message. And

Kar needs to be uninstalled twice

2017-01-31 Thread ellirael
Check my console log karaf@root()> kar:list KAR Name lorien-niichi-0.1.0-SNAPSHOT karaf@root()> kar:uninstall lorien-niichi-0.1.0-SNAPSHOT Error executing command: Feature named 'lorien-niichi/0.1.0.SNAPSHOT' is not installed karaf@root()> kar:list KAR Name

Re: Bundle restart are hard to tackle

2017-01-31 Thread Timothy Ward
Hi Charlie, One other question, have you tried using Aries Transaction Control? The big drivers for creating the Transaction Control Service were to simplify the service model and to handle dynamics better when performing transactional access to resources. The Aries implementation supports XA

Re: Bundle restart are hard to tackle

2017-01-31 Thread Jean-Baptiste Onofré
Awesome ! In the mean time, I try to reproduce on my side. Thanks ! Regards JB On 01/31/2017 10:48 AM, Charlie Mordant wrote: Hi J.B., Sure, it's always reproducible, I'll send it tonight (or tomorrow if I haven't the time to do it). I'm not in front of my computer for now, but will do my

Re: Bundle restart are hard to tackle

2017-01-31 Thread Charlie Mordant
Hi J.B., Sure, it's always reproducible, I'll send it tonight (or tomorrow if I haven't the time to do it). I'm not in front of my computer for now, but will do my best as reactive as possible. Best Regards, 2017-01-31 10:41 GMT+01:00 Jean-Baptiste Onofré : > Hi Charlie, > >

Re: Bundle restart are hard to tackle

2017-01-31 Thread Serge Huber
Sorry I can’t really help much about this topic but just wanted to react to one thing : > On 31 Jan 2017, at 10:39, Charlie Mordant wrote: > > Hi users of the world's best application server ever ;-), fully agree here ! Karaf is a (hidden) gem of the Apache community, it

Re: Bundle restart are hard to tackle

2017-01-31 Thread Jean-Baptiste Onofré
Hi Charlie, do you have the feature:install -v output ? It would help us to see the cause of the refresh (optional import, or other). Thanks ! Regards JB On 01/31/2017 10:39 AM, Charlie Mordant wrote: Hi users of the world's best application server ever ;-), I'm struggling with feature