Re: Configuration in Service(Factory) is not updated properly

2015-05-12 Thread Thomas
Hey again, we investigate a little bit, but couldn't find the final solution. But we could extract some logs that might be helpful for someone with deeper knowledge of karaf/felix here? As I mentioned before, the problem appears only from time to time. We compared the logs from a successful and a

Re: Karaf 3.0.3 Feature Deploy extremely slow

2015-05-12 Thread Jean-Baptiste Onofré
Hmmm weird ... On 05/12/2015 06:38 PM, bobshort wrote: Thanks for the reply! I've removed the remote Maven repositories and it still takes a long time. No change. -- View this message in context:

Re: Karaf 3.0.3 Feature Deploy extremely slow

2015-05-12 Thread Scott Lewis
FWIW, I have had/have a similar slow experience, using only http urls (no maven refs at all). It is strange, as it consistently takes much longer than any kind of download would imply...i.e. minutes even for the smallest bundle. Scott On 5/12/2015 9:38 AM, bobshort wrote: Thanks for the

Re: Configuration in Service(Factory) is not updated properly

2015-05-12 Thread James Carman
You aren't sharing one configuration file for multiple services are you? On Tue, May 12, 2015 at 3:11 AM Thomas johnnyenglish...@gmail.com wrote: Hey again, we investigate a little bit, but couldn't find the final solution. But we could extract some logs that might be helpful for someone with

Re: Is there a way to access current blueprint container?

2015-05-12 Thread James Carman
The BlueprintContainer is exposed as a service, too. On Tue, May 12, 2015 at 8:46 AM ellirael ellir...@mail.ru wrote: Type is BluePrintContainer? Interface? How to do it inside my code without injection? My objects lifecycle controlled from another container. -- View this message in

Re: Is there a way to access current blueprint container?

2015-05-12 Thread Achim Nierbeck
Hi, yes just reference *blueprintContainer *from your beans. regards, Achim 2015-05-12 14:21 GMT+02:00 ellirael ellir...@mail.ru: When I create blueprint container manually I can ger access to it: BlueprintContainerImpl container = new BlueprintContainerImpl(classLoader, resourcePaths);

Re: Configuration in Service(Factory) is not updated properly

2015-05-12 Thread James Carman
A, that's definitely some sort of nasty race condition. I'm willing to jump in and help debug it. Do you have a simple example yet that illustrates the issue? On Tue, May 12, 2015 at 8:38 AM Thomas johnnyenglish...@gmail.com wrote: Hi James, thank you for your answer. No, the

Re: Configuration in Service(Factory) is not updated properly

2015-05-12 Thread Thomas
Hi James, thank you for your answer. No, the configuration is only used for one service. We debugged a little bit further and saw a strange behavior. The breakpoint was in the ConfigurationSupport.configurationEvent(event) method (see line 278 in

Re: Karaf JTA and JDBC DataSource

2015-05-12 Thread ellirael
Thanks, Christian. The docs you provided helped me a lot. It works. -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-JTA-and-JDBC-DataSource-tp4039081p4040300.html Sent from the Karaf - User mailing list archive at Nabble.com.

Is there a way to access current blueprint container?

2015-05-12 Thread ellirael
When I create blueprint container manually I can ger access to it: BlueprintContainerImpl container = new BlueprintContainerImpl(classLoader, resourcePaths); Foo foo = (Foo) container.getComponentInstance(foo); container.destroy(); Is there a way to access Karaf blueprint container? -- View

Re: Is there a way to access current blueprint container?

2015-05-12 Thread ellirael
Type is BluePrintContainer? Interface? How to do it inside my code without injection? My objects lifecycle controlled from another container. -- View this message in context: http://karaf.922171.n3.nabble.com/Is-there-a-way-to-access-current-blueprint-container-tp4040301p4040307.html Sent

Re: Is there a way to access current blueprint container?

2015-05-12 Thread Christian Schneider
IBM has got some nice documentation about this: http://www.ibm.com/developerworks/library/os-osgiblueprint/ Christian On 12.05.2015 14:46, ellirael wrote: Type is BluePrintContainer? Interface? How to do it inside my code without injection? My objects lifecycle controlled from another

Re: Is there a way to access current blueprint container?

2015-05-12 Thread Achim Nierbeck
Let Blueprint do it, you'll just need a bean which does have the BluePrintContainer interface as property, where you reference just this. regards, Achim 2015-05-12 14:46 GMT+02:00 ellirael ellir...@mail.ru: Type is BluePrintContainer? Interface? How to do it inside my code without

Re: Is there a way to access current blueprint container?

2015-05-12 Thread ellirael
I'm trying to get blueprint service proxy inside vaadin UI. My current solution is to create BlueprintContainer Vaadin aware servlet with BlueprintContainer property. Then register my servlet with whiteboard pattern injecting blueprintContainer in it. Then in UI access my service proxies like

Re: javax.naming.NoInitialContextException: Unable to find the InitialContextFactory org.jnp.interfaces.NamingContextFactory

2015-05-12 Thread panneerselvam
Yes i do. I have installed mvn:jboss/jnp-client/4.2.2.GA which has the file. Even if it is not found, it should throw ClassNotFoundException Right? why I am gettting javax.naming.NoInitialContextException: Unable to find the InitialContextFactory org.jnp.interfaces.NamingContextFactory? -- View

[ANN] Apache Karaf Cellar 3.0.3 released

2015-05-12 Thread Jean-Baptiste Onofré
The Karaf team is pleased to announce the availability of Karaf Cellar 3.0.3. Apache Karaf Cellar 3.0.3 is a major update on the 3.0.x series branch. It includes several big fixes, especially on the bundle sync support. For more information, please see the release notes:

Re: Is there a way to access current blueprint container?

2015-05-12 Thread ellirael
The place where I need BlueprintContainer reference is the class which object creation maintained by another container. I cannot let blueprint do it. -- View this message in context: http://karaf.922171.n3.nabble.com/Is-there-a-way-to-access-current-blueprint-container-tp4040301p4040317.html

Re: Is there a way to access current blueprint container?

2015-05-12 Thread Achim Nierbeck
In that case use the service. regards, Achim 2015-05-12 15:58 GMT+02:00 ellirael ellir...@mail.ru: The place where I need BlueprintContainer reference is the class which object creation maintained by another container. I cannot let blueprint do it. -- View this message in context:

Re: Configuration in Service(Factory) is not updated properly

2015-05-12 Thread Thomas
Unfortunately I couldn't reproduce it within a little example. Even in our other containers, which are running with the same version, everything seems to be fine. I would assume that this is a startup issue. I started the container and checked who sets the targetPid in the SingleComponent class.

Re: Is there a way to access current blueprint container?

2015-05-12 Thread James Carman
How about we approach this another way? What exactly are you trying to do? On Tue, May 12, 2015 at 9:58 AM ellirael ellir...@mail.ru wrote: The place where I need BlueprintContainer reference is the class which object creation maintained by another container. I cannot let blueprint do it.

Karaf 3.0.3 Feature Deploy extremely slow

2015-05-12 Thread bobshort
Hi, I have a feature I'm trying to get running on Karaf 3. The features install in seconds on Karaf 2.2, 2.3 and 2.4. On Karaf 3.0.3 it takes 1/2hr. The bundles use the http resolver. Any ideas? ?xml version=1.0 encoding=UTF-8? features name=My Feature

Re: Karaf 3.0.3 Feature Deploy extremely slow

2015-05-12 Thread Jean-Baptiste Onofré
I bet it tries to resolve first on all remote Maven repositories first (with aether). Can you try to remove the remote repos from etc/org.ops4j.pax.url.mvn.cfg ? I plan to provide a command to switch from dev to production mode to change the artifacts resolution order. Regards JB On