Karaf 4 command bundle using service

2015-08-26 Thread ellirael
I've got 2 bundles. One registers the service via blueprint. And another one is command bundle. Command bundle injects registered service with command lifecycle annotation. The problem is when I update service bundle command disappears until I restart Karaf. package biz.lorien.niichi.command; imp

Aries JPA EmSupplier understanding

2015-08-26 Thread ellirael
Looking through page at http://aries.apache.org/modules/jpaproject.html and samples at https://svn.apache.org/repos/asf/aries/trunk/jpa/examples/tasklist-blueprint/src/main/java/org/apache/aries/jpa/example/tasklist/blueprint/impl/ I understand that I should use EmSupplier if I want thread safe app

Re: Nullpointer Exception in jetty ContextHandler on 4.0.0.M2 and M3

2015-08-26 Thread rsteppac
Mario, have you found a way to work around this issue? I have the same problem with Karaf 4.0.1 and a Camel 2.15.2 application using the camel-jetty component. Thanks! Ralf -- View this message in context: http://karaf.922171.n3.nabble.com/Nullpointer-Exception-in-jetty-ContextHandler-on-4-

Karaf Feature autoupdate

2015-08-26 Thread sreeraaman
Dear All, We have a requirement, wherein, all updates should happen automatically. Our application is packaged as a custom karaf distro and run as a service in the end-user environment. All the application specific bundles / features are hosted in our nexus repo and the same is added to the org.op

Re: Aries JPA EmSupplier understanding

2015-08-26 Thread Christian Schneider
Am 26.08.2015 12:32 nachm. schrieb "ellirael" : > > Looking through page at http://aries.apache.org/modules/jpaproject.html and > samples at > https://svn.apache.org/repos/asf/aries/trunk/jpa/examples/tasklist-blueprint/src/main/java/org/apache/aries/jpa/example/tasklist/blueprint/impl/ > I underst

Re: Karaf Feature autoupdate

2015-08-26 Thread Jean-Baptiste Onofré
Why not using bundle:watch ? Regards JB On 08/26/2015 05:29 PM, sreeraaman wrote: Dear All, We have a requirement, wherein, all updates should happen automatically. Our application is packaged as a custom karaf distro and run as a service in the end-user environment. All the application specif

Re: Nullpointer Exception in jetty ContextHandler on 4.0.0.M2 and M3

2015-08-26 Thread Achim Nierbeck
Hi, First of all, it's very unfortunate, that Mario didn't register himself at the users mailinglist. Nabbles is still only an extra on top of the mailinglist. That's why he never got an answer to his question, cause non of us has seen it in the past. Now that Karaf 4.0.1 is released I wonder if

How to access System properies in karaf features file?

2015-08-26 Thread mnki
I added a feature in karaf features xml file:${MY_VARIABLE}/temp.jar MY_VARIABLE is the system property that has the directory path. But when i try to install the feature i am getting error. Invalid syntax for instruction [{MY_VARIABLE}/temp.jar]. Take a look at http://www.aqute.biz/Code/Bnd.

Re: How to access System properies in karaf features file?

2015-08-26 Thread Jean-Baptiste Onofré
Hi, At runtime ? It's possible at builder time (using filtering), but not at runtime. In your case, you can set the directory containing the jar files in etc/org.ops4j.pax.url.mvn.cfg (and you can use system variable there). Regards JB On 08/26/2015 09:38 PM, mnki wrote: I added a feature

Re: How to access System properies in karaf features file?

2015-08-26 Thread mnki
Yes.I need it during runtime. Can you give me an example of using etc/org.ops4j.pax.url.mvn.cfg for directory location of jars.? -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-access-System-properies-in-karaf-features-file-tp4042073p4042075.html Sent from the Karaf -