Re: Gogo output not always showing

2015-01-21 Thread Bulu
On 21 Jan 2015, at 11:42, Bulu wrote: My command is not doing anything fancy with System.out - just calling println(). Also I couldn't find any call to System.setOut() in my code. If the System.out is set globally how is it possible that some commands write to gogo shell while, at the sa

Re: Gogo output not always showing

2015-01-21 Thread Bulu
to see exactly how System.out is obtained and whether there are any calls to System.setOut(). — Derek On 21 Jan 2015, at 08:54, Bulu wrote: Hello again Using the internal telnetd does not fix the problem, output of this one command is still going to the java exe std-out instead of the gog

Re: Gogo output not always showing

2015-01-21 Thread Bulu
:12, Bulu wrote: Hello Derek I then access gogo through telnet (Felix Remote Shell 1.1.2). Sometimes (rarely), certain of my commands do no longer output to the shell, instead the output is really going to the std-out of the java application. Note that at the same time, other of my own commands

Re: Gogo output not always showing

2015-01-21 Thread Bulu
Hello Derek I then access gogo through telnet (Felix Remote Shell 1.1.2). Sometimes (rarely), certain of my commands do no longer output to the shell, instead the output is really going to the std-out of the java application. Note that at the same time, other of my own commands in the same bun

Gogo output not always showing

2015-01-20 Thread Bulu
Hello In my gogo commands, I use simple System.println(...) calls to output things to the gogo shell. (is that the correct way?) I then access gogo through telnet (Felix Remote Shell 1.1.2). Sometimes (rarely), certain of my commands do no longer output to the shell, instead the output is re

Re: Felix DependencyManager on OSGi 3

2015-01-20 Thread Bulu
classes, so out of the box that won’t work. I do think that, with a few patches, you could make it work. Greetings, Marcel On 20 Jan 2015 at 11:11:02, Bulu (b...@romandie.com) wrote: Dear Felix DM users Is it possible to use Felix DM on OSGi 3? I hope it is :-) Regards Philipp

Re: Felix DependencyManager on OSGi 3

2015-01-20 Thread Bulu
eded by R4 more than ten years ago… Neil On 20 Jan 2015, at 10:05, Bulu wrote: Dear Felix DM users Is it possible to use Felix DM on OSGi 3? I hope it is :-) Regards Philipp - To unsubscribe, e-mail: user

Felix DependencyManager on OSGi 3

2015-01-20 Thread Bulu
Dear Felix DM users Is it possible to use Felix DM on OSGi 3? I hope it is :-) Regards Philipp - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org

Re: DependencyManager: publish object as several interfaces and change their properties in init()

2014-12-10 Thread Bulu
Hello Marcel Thanks for you answer and the clarification. On 09.12.2014 10:18, Marcel Offermans wrote: Hello Philipp, On 09 Dec 2014, at 10:03 am, Bulu wrote: In Felix DM, can I publish a certain object as several services / interfaces, but each with different properties? Calling

DependencyManager: publish object as several interfaces and change their properties in init()

2014-12-09 Thread Bulu
Hello All In Felix DM, can I publish a certain object as several services / interfaces, but each with different properties? Calling setInterface() multiple times does not seem to do the trick. Calling setInterface(String[],Dictionary) will assign the same properties to each. If I use several

Re: Gogo shell - don't call getXXX on each object

2014-11-27 Thread Bulu
Nov 2014, at 09:44, Bulu wrote: Hello all When I assign variables in Gogo Shell like so: g! _srefs = $.context getServiceReferences "com.example.Class" "(some=filter)" the shell automatically calls all getXXX methods on the returned object and prints the result out. How

Gogo shell - don't call getXXX on each object

2014-11-19 Thread Bulu
Hello all When I assign variables in Gogo Shell like so: g! _srefs = $.context getServiceReferences "com.example.Class" "(some=filter)" the shell automatically calls all getXXX methods on the returned object and prints the result out. How can I avoid this? I have some long running getXXX m

Re: DependencyManager: notify third party object of changed adaptee properties

2014-10-16 Thread Bulu
issue for it, and I will add a createAdapterService signature allowing to specify a callbackObject, similar to what is currently done int the createResourceAdapterService methods. (Marcel, would you be OK for this new feature ?) kind regards; /Pierre On Wed, Oct 15, 2014 at 2:52 PM, Bulu wrote

Re: DependencyManager: notify third party object of changed adaptee properties

2014-10-15 Thread Bulu
ep.setCallbacks(deviceManager, BIND_METHOD, CHANGED_METHOD, UNBIND_METHOD); mgr.add(adapter); Is this the right way? Regards Philipp On 15.10.2014 14:12, Bulu wrote: Hello All Using Dependency Manager, I declare adapters like this: mgr.add(createAdapterService(Device.class,null) .setImplementation(Devi

DependencyManager: notify third party object of changed adaptee properties

2014-10-15 Thread Bulu
Hello All Using Dependency Manager, I declare adapters like this: mgr.add(createAdapterService(Device.class,null) .setImplementation(DeviceAdapter.class) .setCallbacks(deviceManager, "init", "start", "stop", "destroy")); So deviceManager gets notified when the adapters appear. Now I also want

Re: Dependency Manager: registering FrameworkListener

2014-10-09 Thread Bulu
rcel Offermans wrote: Let me reverse the question: what would be a newer/better way and how should that be implemented. I mean I can see somebody writing a whiteboard style handler and donating it to (for example) Felix. Is that what you would like, or?? On 09 Oct 2014, at 9:02 am, Bulu wrote:

Re: Dependency Manager: registering FrameworkListener

2014-10-09 Thread Bulu
board style handler for this (just like one exists to handle Servlets for HttpService)… Greetings, Marcel On 8 Oct 2014 at 10:06:01 , Bulu (b...@romandie.com) wrote: Hello all I'm declaring a component using DM which gets created when all dependencies are met. This component should also get n

Dependency Manager: registering FrameworkListener

2014-10-08 Thread Bulu
Hello all I'm declaring a component using DM which gets created when all dependencies are met. This component should also get notified of framework events and thus implements FrameworkListener. Does the OSGi framework also use a whiteboard pattern for delivering these events, meaning I only

Re: DependencyManager: start order relevant for adapters?

2014-10-01 Thread Bulu
ethod. You can take a look at [1] for an example. kind regards; /Pierre [1] http://svn.apache.org/viewvc/felix/trunk/dependencymanager/test/src/test/java/org/apache/felix/dm/test/integration/api/MultipleExtraDependenciesTest.java?revision=1532440&view=markup On Tue, Sep 30, 2014 at 7:46 PM,

Re: DependencyManager: start order relevant for adapters?

2014-09-30 Thread Bulu
Obviously it works great on the small example... :-) Ergo: the problem is in my code or more complex than explained... On 30.09.2014 19:14, Marcel Offermans wrote: On 30 Sep 2014, at 9:50 am, Bulu wrote: Hi all Using DM I declare adapter services like this // without filter mgr.add

DependencyManager: start order relevant for adapters?

2014-09-30 Thread Bulu
Hi all Using DM I declare adapter services like this // without filter mgr.add(createAdapterService(SomeClass.class,null) .setImplementation(...) .setCallbacks(...)); // with filter String someFilter = ... mgr.add(createAdapterService(OtherClass.class, someFilter

Re: Dependency Manager: publish adapter with properties of the adapted service

2014-09-25 Thread Bulu
Id() + ")"); c.setServiceProperties(props); } This works with DM 4.0.0, but should also work with DM 3.2.0 (but I did not have time to test). regards /Pierre On Thu, Sep 25, 2014 at 11:07 AM, Bulu wrote: Hello Pierre My example was too simple, I would like to republish the adap

Re: Dependency Manager: publish adapter with properties of the adapted service

2014-09-25 Thread Bulu
ass) .setInterface(EventHandler.class.getName(), props); Philipp On 25.09.2014 10:53, Pierre De Rop wrote: Hi Philipp; On Thu, Sep 25, 2014 at 8:54 AM, Bulu wrote: Hello all (sorry for asking so many questions - they come-up as I write my code) no problem at all :-) In DM, how can you adapt a ce

Dependency Manager: publish adapter with properties of the adapted service

2014-09-24 Thread Bulu
incomplete properties, and just update them in the init method when the values are present. But that seems like a hack... Is there a better way? Thanks Philipp On 24.09.2014 18:09, Pierre De Rop wrote: Hi Philipp; see my response, inlined below: On Wed, Sep 24, 2014 at 4:46 PM, Bulu wrote

Re: Dependency Manager: how to update service properties

2014-09-24 Thread Bulu
, inlined below: On Wed, Sep 24, 2014 at 4:46 PM, Bulu wrote: Hello all If the published property of a service is based on a value in the actual service object, and that value later changes, how can I update the properties using DM? Example: You have Device objects (and the corresponding impl) public

Dependency Manager: how to update service properties

2014-09-24 Thread Bulu
Hello all If the published property of a service is based on a value in the actual service object, and that value later changes, how can I update the properties using DM? Example: You have Device objects (and the corresponding impl) public interface Device{ public int getRoom(); public vo

Re: Dependency Manager: depend on several linked services

2014-09-23 Thread Bulu
hope this helps; cheers; /Pierre [1] http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dependencymanager.samples/src/org/apache/felix/dependencymanager/samples/device/ On Mon, Sep 22, 2014 at 6:04 PM, Bulu wrote: Hello Pierre Yes, this is exac

Re: Dependency Manager: depend on several linked services

2014-09-22 Thread Bulu
e it corresponds to your needs), I will probably commit it in the sample code from the DM 4.0.0, in [2]. [1] http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager-prototype/ [2] http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.de

Dependency Manager: depend on several linked services

2014-09-22 Thread Bulu
Hello all I'm trying Felix Dependency Manager and have come across the following case. For each registered service of type A, I want to create a component, only when the corresponding service B is also present. The corresponding service is determined by a property of A. Example: I have a ser

Deploying maven central jars to OBR

2014-09-16 Thread Bulu
Hi I have my jars in my local maven repo, they typically come from central. I develop my own bundles and deploy to my remote OBR using maven-bundle-plugin: the bundles are uploaded and the repository.xml is updated. Good. Now I want also to push the needed dependency jars coming from central

Multithreading in OSGi

2014-09-02 Thread Bulu
Dear all My bundles need to use diverse threads to do their work (Timers, Workers, Events). And they need to clean them up on stop(). I have found this article (http://www.drdobbs.com/jvm/multithreading-java-osgi/191601642) which addresses the problem by using a Thread management class in ea

Re: OSGi and Git - what release process, how many repos?

2014-08-20 Thread Bulu
ion is just for this bundle, avoid confusing when need to back to an old version or need to work with more than one version at same time (multi-tenant). regards, Cristiano On 12-08-2014 06:48, Bulu wrote: Hi Paul, hi all Do I understand correctly, that your bundles have different (semantic) versi

Re: OSGi and Git - what release process, how many repos?

2014-08-12 Thread Bulu
e all possible combinations... I would love to here more experiences of other people doing OSGi on Git... Regards Philipp On 11.08.2014 15:21, Paul Bakker wrote: Hi Bulu, All our projects are based on Bndtools. This is by far the best development environment for OSGi and I strongly advise tak

OSGi and Git - what release process, how many repos?

2014-08-11 Thread Bulu
Hi all I'm new to Git and want to use it for my new OSGi project. The project will be split in some ~20 bundles which are intended to work together and form a single shippable product with a unique release version number. Nonetheless, at a later time, some of these bundles might be used outsid

Re: Building better OSGi applications

2014-07-17 Thread Bulu
eers, Paul On Thu, Jul 17, 2014 at 10:04 AM, Bulu wrote: Hi all I'm building an application on an embedded system which will contain ~20 bundles. There are many dependencies of services - say for example to provide its service, module A (several classes) needs services B,C,D. In order

Building better OSGi applications

2014-07-17 Thread Bulu
Hi all I'm building an application on an embedded system which will contain ~20 bundles. There are many dependencies of services - say for example to provide its service, module A (several classes) needs services B,C,D. In order to fully account for the dynamics of OSGi, I have to monitor B,

Re: [ANN] Felix Bundle Repository version 2.0.2 Released

2014-06-27 Thread Bulu
This is good news! Is the new repository.xml backwards compatible with the existing specs (as produced eg. by maven-bundle-plugin 2.3.7)? I.e. can I upgrade my OBR Bundle on just some of the clients - or will this break? Regards Philipp On 27.06.2014 10:34, dav...@apache.org wrote: The Feli

Planed Felix packages

2014-04-30 Thread Bulu
Dear all I want to use Servlet 2.6/3. The current Felix (all-in-one) HTTP bundle exports servlet 2.5. Is a release planed which supports servlet 2.6/3? Also I would like to use ServiceTracker with generics. The osgi.compendium from Felix (v. 1.4.0) doesn't support generics (as far as I can t