Re: Get a list of paths of registered servlets

2016-06-01 Thread Marcel Offermans
That only helps him if he uses the whiteboard API. If he directly talks to HttpService it probably won’t work. Another problem is that you probably can’t do this as an atomic operation so after you’ve checked, someone else can still beat you to it. That said I don’t have a great solution to

Re: Better go go shell

2015-11-03 Thread Marcel Offermans
I have. I tried it (some years ago) and it just about pulled in every dependency on the internet. Okay, I’m exaggerating a bit here, but at that time it needed so many dependencies that I immediately stopped using it myself. Now that might have changed, or maybe Guillaume’s new project is

Re: Cannot build project from source

2015-07-27 Thread Marcel Offermans
On 27 Jul 2015 at 20:11:02 , Ken Gilmer (kgil...@gmail.com) wrote: /Users/kggilmer/dev/repos/felix/dependencymanager/pom.xml of  /Users/kggilmer/dev/repos/felix/pom.xml does not exist @  [exec] @  Dependency Manager no longer uses a Maven based build, so it should probably be excluded from a list

Re: Difference between ServiceFactory and ConfigurationFactory?

2015-07-22 Thread Marcel Offermans
In short a service factory allows you to create a different implementation of your service for each bundle that consumes it. An example is the implementation of LogService. Greetings, Marcel On 22 Jul 2015 at 09:01:02, Satya Deep Maheshwari (connus...@gmail.com) wrote: Hi I am trying to

Re: Dependency Manger - multiple instances of service

2015-03-12 Thread Marcel Offermans
Hello Angelo, Jan, In general, Angelo is completely right, but there is one thing in his response that is not: .setService(IGPIOPin.class, (( + Constants.OBJECTCLASS + = + IGPIOPin.class.getName() + )(PinNumber=1)))  .setRequired(true)  .setAutoConfig(fanPin))  In the code above, Angelo added

Re: Felix DependencyManager on OSGi 3

2015-01-20 Thread Marcel Offermans
. :) Greetings, Marcel On 20 Jan 2015 at 15:36:02 , Bulu (b...@romandie.com) wrote: OK thanks. Do you know of another dependency manager which might work on OSGi 3? Regards Philipp On 20.01.2015 13:01, Marcel Offermans wrote: Hello Philipp, When the DM project was started, a long

Re: Bundle dependency management

2014-12-12 Thread Marcel Offermans
What I was trying to say, before incidentally hitting “send”… Hello Christian, On 12 Dec 2014 at 16:06:02 , Christian Schneider (ch...@die-schneider.net) wrote: I am especially interested in using maven central as most of the apache  projects are only available there.  I’m sorry, but this is

Re: Bundle dependency management

2014-12-12 Thread Marcel Offermans
Hello Christian, On 12 Dec 2014 at 16:06:02 , Christian Schneider (ch...@die-schneider.net) wrote: I am especially interested in using maven central as most of the apache  projects are only available there.  I’m sorry, but this is simply not true. All Apache projects are actually required to

Re: Bundle dependency management

2014-12-12 Thread Marcel Offermans
Hello Christian, I doubt you will find all releases in dist. For example most of the aries releases are missing there. Maybe this is an error. That's exactly what I wanted to point out. That is an error, see: http://www.apache.org/dev/release.html#where-do-releases-go It is quite explicit,

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

2014-12-10 Thread Marcel Offermans
Hello Philipp, On 10 Dec 2014, at 14:43 pm, Bulu b...@romandie.com wrote: On 09.12.2014 10:18, Marcel Offermans wrote: Hello Philipp, On 09 Dec 2014, at 10:03 am, Bulu b...@romandie.com wrote: In Felix DM, can I publish a certain object as several services / interfaces, but each

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

2014-12-09 Thread Marcel Offermans
Hello Philipp, On 09 Dec 2014, at 10:03 am, Bulu b...@romandie.com wrote: 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

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

2014-10-16 Thread Marcel Offermans
Hello Pierre, Philipp, On 16 Oct 2014, at 8:50 am, Pierre De Rop pierre.de...@gmail.com wrote: Now, if you really need to be able to specify a callback instance to be called when the adaptee service properties are changed (Device), then can you please create a Jira issue for it, and I will

Re: Dependency Manager: registering FrameworkListener

2014-10-09 Thread Marcel Offermans
: Hello Marcel Yes I already knew the standard way you describe. I just wanted to clarify whether a newer/better method existed. Thanks again for your answer. Philipp On 08.10.2014 11:24, Marcel Offermans wrote: From the spec: A FrameworkListener object is registered with the Framework

Re: Dependency Manager: registering FrameworkListener

2014-10-08 Thread Marcel Offermans
From the spec: A FrameworkListener object is registered with the Framework using the BundleContext.addFrameworkListener method.” So it is not whiteboard-style (it pre-dates the whiteboard pattern afaik). In DM I would do: in the init: dm.add(createComponent().setImplementation(Comp.class));

Re: DependencyManager: start order relevant for adapters?

2014-09-30 Thread Marcel Offermans
On 30 Sep 2014, at 9:50 am, Bulu b...@romandie.com wrote: Hi all Using DM I declare adapter services like this // without filter mgr.add(createAdapterService(SomeClass.class,null) .setImplementation(...) .setCallbacks(...)); // with filter String

RE: Felix File Install not installing some bundles?

2014-08-01 Thread Marcel Offermans
My guess (but I did not check the code) is that file install might require a Bundle-SymbolicName to be present. Felix still allows bundles without them, which is why your example is working if you're installing them by hand. From: Phillip Rhodes

Re: Building better OSGi applications

2014-07-19 Thread Marcel Offermans
On 19 Jul 2014, at 16:26 pm, Bram Pouwelse b...@pouwelse.com wrote: I've built a proprietary solution for managed JPA with support for JTA transactions which is using the dependency manager. I'm willing to share this but then I'll need to change some package names first. @Paul, do you think

Re: Classloader exception

2014-03-19 Thread Marcel Offermans
Hello Frizz, That is exactly why OSGi has a built-in mechanism to load native code, to deal with such problems. You say you are loading the DLL yourself, but did you look at the specification and its abilities to load native code? If for some reason you really can’t use the spec for this, I

Re: How to use a service immediately after its activation?

2014-03-18 Thread Marcel Offermans
Hello Bertrand, On 18 Mar 2014, at 22:09 pm, Bertrand Delacretaz bdelacre...@apache.org wrote On Tue, Mar 18, 2014 at 7:24 PM, David Jencks david_jen...@yahoo.com wrote: ...If you have a DS component with a reference to your desired service, with a bind method, the bind method will be called

Re: Gogo Shell, leveraging existing Java capabilities

2014-03-06 Thread Marcel Offermans
The error message states the command cannot be found. That's probably either caused by the fact that the bundle that supplies this command is not yet started, or the bundle is missing altogether. Remember that shell commands are registered whiteboard style meaning that if you startup a

Re: Gogo Shell, leveraging existing Java capabilities

2014-03-06 Thread Marcel Offermans
On 06 Mar 2014, at 13:19 , Daniel McGreal dan...@redbite.com wrote: Does the Shell bundle put a CommandSession into the OSGi service registry, for example? A CommandProcessor is exposed as a service (by the Gogo runtime bundle). You can use it to create a new CommandSession. Greetings,

Re: Component tied to garbage collection

2014-02-13 Thread Marcel Offermans
On 13 Feb 2014, at 12:27 pm, Daniel McGreal dan...@redbite.com wrote: An application, for which I use Felix, has some functionality which I would like to only be active if the JVM has enough memory to support it. I wonder, can anyone think of a way of tying component (or bundle) lifecycle to

Re: EventAdmin Bundle Installation

2014-02-01 Thread Marcel Offermans
On 01 Feb 2014, at 23:20 pm, masti whoknows masti...@yahoo.com wrote: Here is simple Java code that I am using to install the EventAdmin bundle //now install the EventAdmin: org.apache.felix.eventadmin 1.3.2 Bundle eventAdminBundle =

Re: obr:deploy and bundle versions

2013-11-11 Thread Marcel Offermans
Hello Stijn, On 11 Nov 2013, at 13:46 pm, Stijn de Witt stijn.dew...@planonsoftware.com wrote: For now I would advise people against using a qualifier at all. So how do you version your snapshot builds if you don't use a qualifier at all? Do you bump the micro version on every change in a

Re: obr:deploy and bundle versions

2013-11-07 Thread Marcel Offermans
There are two other solutions: If your latest release is, for example, 1.8.0 you can: 1) Start using snapshots that are named 1.8.0.xxx (where xxx is either SNAPSHOT or some increasing number/timestamp) to ensure that whatever next release you make after 1.8.0 is always newer than all of these

Articles about the Apache Felix Dependency Manager

2013-10-29 Thread Marcel Offermans
For everybody that is interested in the Dependency Manager, my colleague Peter is working on a series of articles about it: http://arnhem.luminis.eu/introduction-apache-felix-dependency-manager/ http://arnhem.luminis.eu/introduction-apache-felix-dependencymanager-part-2/ I personally think they

Re: BND not re-creating JAR on resource change, shows (not modified)

2013-10-18 Thread Marcel Offermans
On Oct 18, 2013, at 9:12 , Stijn de Witt stijn.dew...@planonsoftware.com wrote: Sorry if I am wrong here, but I understood BND questions are often sent to (and answered on) this list and that BND does not have it's own list. If I'm wrong and this is offtopic, please forgive me and point me

Re: questions about felix

2013-10-13 Thread Marcel Offermans
On Oct 13, 2013, at 22:54 PM, Peter Cheung mcheun...@hotmail.com wrote: Dear All I have a standalone java app that embedded felix. I can start it, load bundle and call the method from bundle (using reflection). 1) My first question is, using reflection is not efficiency. I imported the

Re: How to improve the start time of Apache Felix

2013-09-06 Thread Marcel Offermans
On Sep 6, 2013, at 9:05 AM, Roland w...@ids.de wrote: The biggest problem is loading of third-party-bundles. Foremost, the loading of log4j2 is slow because this bundle has many dependencies. Although most dependencies are declared as optional, I need them to resolve dependencies. Ditch

Re: How to improve the start time of Apache Felix

2013-09-06 Thread Marcel Offermans
On Sep 6, 2013, at 11:27 AM, Roland w...@ids.de wrote: Is it possible to start the framework and the cached bundles concurrently? No, and yes. If you want to do things concurrently, move any work you're doing in the start() method of the bundle activator to a new thread (or some executor

Re: Some download links not working

2013-08-22 Thread Marcel Offermans
Looks like the links on the page are indeed wrong. I quickly looked at Main (gz and zip) and they simply have a different name. The files are on the mirrors, so I guess our script is wrong. Could you please raise an issue in Jira for this? Greetings, Marcel On Aug 22, 2013, at 16:12 , jacgec

Re: Some download links not working

2013-08-22 Thread Marcel Offermans
Thanks! Crossposting to dev@ for follow up. I took a quick look but I'm not quite sure how to fix this. Felix (Meschberger), could you take a quick look, since I'm guessing you came up with the code to generate the downloads page? Greetings, Marcel On Aug 22, 2013, at 16:37 , jacgec

Re: inspect req of fragmented bundles

2013-08-19 Thread Marcel Offermans
Inspect the host bundle, that should work. On Aug 19, 2013, at 14:53 , Roland w...@ids.de wrote: Hello OSGi-experts, sometimes I want to print all requirements of a fragmented bundle because I want to know why it can not be resolved. But this is not possible with the inspect command. What

Re: How can you suppress Managed Service Factory from being displayed on Configurations tab?

2013-06-25 Thread Marcel Offermans
Authentication/authorization should be a separate concern. I agree with Felix, WebConsole was never designed as an end-user tool, it is technical in nature and will allow end-users to screw things up in many interesting ways. What you need is a layer on top of Configuration Admin that will

Re: Get version of package (not bundle) with OSGi

2013-06-21 Thread Marcel Offermans
On Jun 21, 2013, at 8:48 , Christopher BROWN br...@reflexe.fr wrote: Is there any correct way to get the version of a package with OSGi ? I didn't see anything on the Bundle or BundleContext other than the bundle version. Take a look at Package Admin (chapter 7 in the core spec). Greetings,

[ANN] Deployment Admin 0.9.4 and AutoConf 0.1.4 released

2013-06-05 Thread Marcel Offermans
The Felix team is pleased to announce the release of Deployment Admin 0.9.4 and AutoConf 0.1.4. This release is available from http://felix.apache.org/site/downloads.cgi and Maven: Release Notes: DeploymentAdmin Release 0.9.4 - FELIX-3336 Exceptions related to the pipe used in

Re: Log Service

2013-05-08 Thread Marcel Offermans
On May 9, 2013, at 1:06 AM, Dan Miller digi...@gmail.com wrote: I have installed the Log bundle into felix, and have implemented the LogListener to output those logs to the console. I see that i can get a reference to the bundle where the log originated, but can i get the class/method/line

Re: Felix latest release download link broken

2013-04-10 Thread Marcel Offermans
Please go to http://felix.apache.org/downloads.cgi instead. The link you used is old and will soon be removed. There you will see the latest release is 4.2.1 (but older versions are still available in the archives). Greetings, Marcel On Apr 10, 2013, at 11:42 , Pradeep Simha

Re: [DISCUSS] rename maven-bundle-plugin to bnd-maven-plugin

2013-02-28 Thread Marcel Offermans
On Feb 28, 2013, at 13:43 , Stuart McCulloch mccu...@gmail.com wrote: On 28 Feb 2013, at 07:05, fbalicchia wrote: I think it is the best choice to follow the naming convention. What I do not understand is why plugins can't be hosted by Apache The Apache Maven team prefer to keep the

Re: DependencyManager - spirit behind init,start,stop,destroy

2012-11-11 Thread Marcel Offermans
Hello Bokie, On Nov 11, 2012, at 13:40 PM, bokie jms.cer...@gmail.com wrote: When working with the DependencyManager api, there's always a little voice saying: where do I put this, in the init or the start, in the stop or in the destroy, is it really that important - so, what is the spirit

Re: DependencyManager - ResourceDependency

2012-11-11 Thread Marcel Offermans
Hello Bokie, On Nov 11, 2012, at 13:11 PM, bokie jms.cer...@gmail.com wrote: 1. If my ResourceProvider provides two resources; /res/file1 and /res/file2, the added callback of the impl class that I've defined as having a dependency on /res/file1 gets called twice even though I've

Re: DependencyManager - ResourceDependency

2012-11-10 Thread Marcel Offermans
Hello Bokie, On Nov 10, 2012, at 14:18 PM, bokie jms.cer...@gmail.com wrote: There must be something about the ResourceDependency which I don't understand because nothing happens in the class that depends on a specific resource. I have embedded a text file with my bundle (/res/file.txt).

Re: SCR Commands not showing up in gogo shell

2012-10-29 Thread Marcel Offermans
To me it sounds more like one or more bundles have bad metadata. If things resolve but don't work, that's usually a sign that something in one of the bundles is wrong (bundles don't use substitutability by importing what they export, or have private copies of public packages, or optional

Re: Service properties on aspect services in DM

2012-10-22 Thread Marcel Offermans
Hello Mark, On Oct 22, 2012, at 23:42 PM, Mark van Cuijk m...@van-cuijk.nl wrote: On Oct 21, 2012, at 23:08 , Marcel Offermans wrote: Out of curiosity, did you want to exploit the behavior you expected? In other words, do you have a use case for it? I was indeed working on something

Re: Service properties on aspect services in DM

2012-10-21 Thread Marcel Offermans
Hello Mark, On Oct 20, 2012, at 23:34 PM, Mark van Cuijk m...@van-cuijk.nl wrote: I've been playing a bit with aspect services using the DependencyManager and I've found some behavior that doesn't match my expectations. So either my expectations are wrong or I stumbled upon a bug...

Re: Guidance on using auto deploy, OBR or something else for initial provisioning and updates

2012-06-20 Thread Marcel Offermans
On Jun 20, 2012, at 18:23 , Richard S. Hall wrote: On 6/20/12 12:15 , Dan Gravell wrote: On Wed, Jun 20, 2012 at 4:06 PM, Richard S. Hall he...@ungoverned.orgwrote: (make sure you refresh too) The Resolver doesn't refresh after deploy? Well I suppose that's a different conceptual level of

Re: JSP support on Felix

2012-05-31 Thread Marcel Offermans
On May 31, 2012, at 10:01 , Jeffrey Huang wrote: I tried a lot of ways to let Felix support JSP. Pax Web seems still can not work on my try. Does any one know any way to let Felix support JSP? Which bundles should be installed ? Thanks. Just to add to the list of already mentioned

Re: can web console RESTful API block until installation has been finished?

2012-05-31 Thread Marcel Offermans
On May 23, 2012, at 19:49 , Neil Bartlett wrote: 2) Allow the REST interface to receive a zip of bundles; it would install and then start all of the enclosed bundles as a unit. Or take a look at DeploymentAdmin and use that to install and update collections of bundles in a single

Re: system bundle and imports

2012-05-24 Thread Marcel Offermans
On May 24, 2012, at 16:35 PM, chad.da...@emc.com chad.da...@emc.com wrote: I'm trying to come to a more elegant solution to some hibernate and osgi issues. I'm somewhat familiar with the problems, i.e. I understand that hibernate uses some sort of dynamic class loading that short cuts the

Re: OSGi bundles and Pack200 format with Bundle-Classpath

2012-05-03 Thread Marcel Offermans
On May 4, 2012, at 0:11 , Christopher BROWN wrote: However, I don't think there's any way of doing this for embedded JARs in the Bundle-Classpath, which is a shame as the software contains bundles that encapsulate dependencies that we don't want customers to rely on if we decide to change

Re: Using bundle update method

2012-05-02 Thread Marcel Offermans
You are doing the right thing: calling update should work, and you should not need to stop it beforehand (or start it afterwards). Could you please show more exactly what code you are using and what exception you are getting? On May 2, 2012, at 10:23 , Thierry Templier wrote: Hello, I

Re: Coverity Static Analysis

2012-04-16 Thread Marcel Offermans
Message- From: Marcel Offermans [mailto:marcel.offerm...@luminis.nl] Sent: Monday, April 09, 2012 9:33 AM To: users@felix.apache.org Subject: Re: Coverity Static Analysis Hello Joel, On Apr 9, 2012, at 14:30 PM, Joel Schuster wrote: I'm using Felix within a gov't project. Lately

[ANN] Apache Meetup NL - April 26th

2012-04-14 Thread Marcel Offermans
Hello all, A week or so ago I had a nice meeting with a couple of Apache friends in a lovely place in Utrecht, the Netherlands. Among other Apache related stuff we discussed how to get-together as many people interested in the Apache community as possible on frequent/regular basis in the

Re: EventAdmin Performance

2012-04-10 Thread Marcel Offermans
sandbox. It runs a parallel test with some threads etc. and by looking at the log one can compare the time difference between event admin versions. Carsten 2012/4/5 Carsten Ziegeler cziege...@apache.org: Both is possible :) 2012/4/5 Marcel Offermans marcel.offerm...@luminis.nl: Snow? :) I

Re: Annotation Decorated Service

2012-04-10 Thread Marcel Offermans
Hello Jorge, On Apr 10, 2012, at 17:15 PM, Quecas wrote: One of the big paradigms of OSGI is to define a public API/SPI as an interface while keeping the implementation(s) private. Having said that and if the various implementations of a specific service each define meta-data using

Re: Annotation Decorated Service

2012-04-10 Thread Marcel Offermans
Sounds to me like your Task services are configurable, and you should consider using Configuration Admin to provide them with their configuration. The services themselves can then propagate the configuration (or the relevant parts of it) as service properties. You can still convert your

Re: Coverity Static Analysis

2012-04-09 Thread Marcel Offermans
Hello Joel, On Apr 9, 2012, at 14:30 PM, Joel Schuster wrote: I'm using Felix within a gov't project. Lately there has been a push to have open source projects be scanned by 3rd party static analysis tools to show the value of using OSS within gov't projects while showing that the risk is in

Re: EventAdmin Performance

2012-04-05 Thread Marcel Offermans
, promised: i'll commit something in the next two weeks Carsten 2012/4/4 Marcel Offermans marcel.offerm...@luminis.nl: How about just putting those bundles in your sandbox? I would be interested to have something to measure the performance of EventAdmin. It does not necessarily need to be a Pax

Re: EventAdmin Performance

2012-04-04 Thread Marcel Offermans
Out of curiosity, did anybody ever write a test that we can run to benchmark the performance of EventAdmin. I don't mean an ad-hoc test but something we can put in the Felix repository (in a sandbox). Greetings, Marcel On Apr 4, 2012, at 19:30 PM, Carsten Ziegeler wrote: Hi Joel, yes, we

Re: EventAdmin Performance

2012-04-04 Thread Marcel Offermans
Marcel Offermans marcel.offerm...@luminis.nl: Out of curiosity, did anybody ever write a test that we can run to benchmark the performance of EventAdmin. I don't mean an ad-hoc test but something we can put in the Felix repository (in a sandbox). Greetings, Marcel On Apr 4, 2012, at 19:30 PM

Re: Error with multiple instances of Felix running as separate EAR deployments in WebLogic

2012-01-09 Thread Marcel Offermans
On Jan 9, 2012, at 17:44 PM, Karl Pauls wrote: As of R4.3, we do have a framework ID spec, so we could do this, but it would still only solve case (2) above. As long as that is your case, then it would work. Yeah, we should use the framework ID. Please open a bug for this. You're referring

Re: Error with multiple instances of Felix running as separate EAR deployments in WebLogic

2012-01-09 Thread Marcel Offermans
On Jan 9, 2012, at 19:47 PM, Karl Pauls wrote: On Mon, Jan 9, 2012 at 6:22 PM, Marcel Offermans marcel.offerm...@luminis.nl wrote: On Jan 9, 2012, at 17:44 PM, Karl Pauls wrote: As of R4.3, we do have a framework ID spec, so we could do this, but it would still only solve case (2) above

Re: Resources administration / Virtual Bundle

2011-12-15 Thread Marcel Offermans
Hello Fabian, On Dec 6, 2011, at 9:07 AM, Fabian Broekhof wrote: I'm relatively new to Apache Felix. We are doing a project for component distribution on an Android platform, using Apache Felix and Ace. We have the basic distribution working. Because you and I started discussing this

Re: Vector version of Felix logo

2011-10-07 Thread Marcel Offermans
I've added it (PDF) to the media pagina on our wiki: https://cwiki.apache.org/confluence/display/FELIX/Media On Oct 6, 2011, at 3:49 PM, Marcel Offermans wrote: I'm going to try to get it for you. Hang on... On Oct 6, 2011, at 3:07 PM, Eamonn Maguire wrote: Hi all

Re: Vector version of Felix logo

2011-10-06 Thread Marcel Offermans
I'm going to try to get it for you. Hang on... On Oct 6, 2011, at 3:07 PM, Eamonn Maguire wrote: Hi all, Are there are vector versions of the apache felix logo. I wanted to include it in slides for a presentation I'm giving this month. Many thanks, Eamonn

Re: qualifier versus SNAPSHOT in the bundle plugin

2011-08-29 Thread Marcel Offermans
On 29 Aug 2011, at 14:43 , Benson Margulies wrote: The eclipse ecosystem seems to like to use 'qualifier' as a qualifier to spit out a unique number. Can I do that in the plugin by explicitly specifying 'qualifier' in the instructions? The Bnd instructions for this are: build = ${tstamp}

Re: handling native libs

2011-07-26 Thread Marcel Offermans
On 26 Jul 2011, at 16:31 , Richard S. Hall wrote: On 7/26/11 10:27 AM, Beyer, Doug wrote: I'm aware of the Bundle-NativeCode manifest entry. However this requires you to specifically list the native dll's. If I'm using 3rd party software that comes with its native dlls packaged in jars, do

Re: Managing Dynamism

2011-07-15 Thread Marcel Offermans
: That sounds perfect for what I'm trying to do! Quoting Marcel Offermans marcel.offerm...@luminis.nl: On 14 Jul 2011, at 23:00 , john.dun...@exceter.com wrote: I would like to hide the update mechanism from the end user. As far as the client is be concerned, the application should be versioned

Re: Managing Dynamism

2011-07-14 Thread Marcel Offermans
On 14 Jul 2011, at 23:00 , john.dun...@exceter.com wrote: I would like to hide the update mechanism from the end user. As far as the client is be concerned, the application should be versioned as a whole. For example, I would like the client to see that an update from version 1.2.3.4 to

Re: DependencyManager vs iPOJO

2011-05-18 Thread Marcel Offermans
Hello Marian, On 18 May 2011, at 22:15 , marian grigoras wrote: I would like to understand the relation between DependencyManager and iPOJO. I see that both are apache projects, both under active development - is there any difference in the problem they try to solve? They solve the same

Re: OSGi Deployment Admin

2011-05-04 Thread Marcel Offermans
Hello Olivier, On 4 May 2011, at 15:30 , Olivier Bigard wrote: We are currently having a look at the OSGi Deployment Admin service. I found an implementation of it in Apache Felix sources (not released yet), A vote for its release is running right now on the dev list. Expect it to be

Re: Recommended approach for consistent deployment

2011-05-03 Thread Marcel Offermans
Hello Jim, On 3 May 2011, at 17:52 , Jim Talbut wrote: I'm just starting out on the OSGi road and what bothers me is that the complete flexibility offered by OSGi makes it difficult to ensure that every deployed instance is identical. With a pair of live instances and innumerable test

Re: How to create an immediate component with DependencyManager?

2011-04-22 Thread Marcel Offermans
Hello Marian, On 22 Apr 2011, at 13:33 , marian grigoras wrote: i want to use the DependencyManager to register a component which does not offer any services for other components, but only listens to events and displays them. With the registration code shown below, the events arrive at the

Re: [ANN] OSGi in Action book

2011-03-28 Thread Marcel Offermans
Congratulations, OSGi now has its own Gang of Four it seems! ;) On 28 Mar 2011, at 22:55 , Richard S. Hall wrote: Sorry, for the blatant advertising, but the OSGi book that Karl, Stuart, David, and I have been working on forever is finally done and available (in electronic form now and

Re: AspectService for dynamic reference

2011-03-16 Thread Marcel Offermans
Some comments inline... On 15 Mar 2011, at 22:42 , Pierre De Rop wrote: Hi Vladimir, I'm not sure to understand: when you are talking about AspectService, are you talking about DependencyManager AspectService ? if true, then I don't think it works in your case, because DM AspectService

Re: Deployment Admin implementation

2011-03-03 Thread Marcel Offermans
What is missing is mainly support to uninstall deployment packages. Apache ACE uses the current implementation, but it never uninstalls a deployment package (it replaces it with a new, empty version) so we never got round to implementing that. A contribution there would definitely help. I

Re: Deployment Admin implementation

2011-03-03 Thread Marcel Offermans
Point taken guys! :) On 3 Mar 2011, at 17:34 , Guillaume Nodet wrote: On Thu, Mar 3, 2011 at 16:19, Richard S. Hall he...@ungoverned.org wrote: On 3/3/11 7:08, Marcel Offermans wrote: What is missing is mainly support to uninstall deployment packages. Apache ACE uses the current

Re: Updatable agent with OSGI. Possible?

2011-02-11 Thread Marcel Offermans
On Feb 10, 2011, at 20:25 , teemu kanstren wrote: OK, thanks everyone for your information and suggestions! I still did not really understand how all these help me define a proper way to do state-transfer or control how the install/uninstall happens the way I want. But at least I know my

Re: Updatable agent with OSGI. Possible?

2011-02-11 Thread Marcel Offermans
On Feb 12, 2011, at 0:48 , Andriy Drozdyuk wrote: Dropbox? Does that really work? Haha! Does one have to mount the folder every time - or can some kind of url be used? Dropbox, on my Mac, just looks like a local folder that appears on startup and automatically keeps the data in sync, so that

Re: Updatable agent with OSGI. Possible?

2011-02-09 Thread Marcel Offermans
a running system with complex configurations, existing interactions and connections between different component/service versions, state transfers, etc. Cheers, Teemu 2011/2/9 Marcel Offermans marcel.offerm...@luminis.nl Hello Dan, Like Steven says, I recommend you have a look at Apache

Re: Questions on OSGI testing

2011-01-21 Thread Marcel Offermans
The best document on how the system should behave is the OSGi specification itself. Your specific test case sounds like there's something seriously going wrong, if you can isolate and reproduce that, let us know and/or file a bug. Greetings, Marcel On 21 Jan 2011, at 19:53 , Adarsh Ashok

Re: Questions on OSGI testing

2011-01-21 Thread Marcel Offermans
Message- From: Marcel Offermans [mailto:marcel.offerm...@luminis.nl] Sent: Friday, January 21, 2011 11:06 AM To: users@felix.apache.org Subject: Re: Questions on OSGI testing The best document on how the system should behave is the OSGi specification itself. Your specific test case

Re: Running HTTP service on random free port

2011-01-17 Thread Marcel Offermans
On Jan 17, 2011, at 21:05 , Holger Hoffstätte wrote: I'm looking at the HTTP Service and was wondering if anyone can tell if or how I can let the implementation pick a free port for a service, instead of having to choose one myself? The reachable address would be communicated to the outside

Re: DependencyManager lifecycle callbacks contract? Aka multiple init() invokes in service impl

2011-01-03 Thread Marcel Offermans
On Jan 3, 2011, at 10:57 , Bram de Kruijff wrote: question/observation about the dependencymanager callbacks contract. I noticed that init() was being invoked more then once over the lifespan of my service instance because 1) I constructed it with an instance (insted of class/factory)

Re: DependencyManager lifecycle callbacks contract? Aka multiple init() invokes in service impl

2011-01-03 Thread Marcel Offermans
Hello Bram, On Jan 3, 2011, at 11:54 , Bram de Kruijff wrote: On Mon, Jan 3, 2011 at 11:09 AM, Marcel Offermans marcel.offerm...@luminis.nl wrote: On Jan 3, 2011, at 10:57 , Bram de Kruijff wrote: question/observation about the dependencymanager callbacks contract. I noticed that init

Re: DependencyManager lifecycle callbacks contract? Aka multiple init() invokes in service impl

2011-01-03 Thread Marcel Offermans
On Jan 3, 2011, at 13:25 , Bram de Kruijff wrote: Ah yes! That was the behaviour I was looking for, looks good :) One final question: Assuming one honours the start/stop contract and memory concerns aside. Why would one choose not te make a dependency instanceBound(true)? No reason other

Re: How to deal with ClassLoader.getSystemClassLoader()

2010-11-23 Thread Marcel Offermans
On 23 Nov 2010, at 23:45 , Bram de Kruijff wrote: On Tue, Nov 23, 2010 at 9:54 PM, Richard S. Hall he...@ungoverned.org wrote: On 11/23/10 15:51, Bram de Kruijff wrote: Hi List, we are embedding a 3rd party library (in this case Apache Cassandra) in a bundle . At startup it uses

Re: Dependencymanager factory with ConfigurationDependency

2010-11-22 Thread Marcel Offermans
On 22 Nov 2010, at 10:52 , Bram de Kruijff wrote: Hi Marcel, On Fri, Nov 19, 2010 at 2:05 PM, Marcel Offermans marcel.offerm...@luminis.nl wrote: Hello Bram, On 19 Nov 2010, at 13:45 , Bram de Kruijff wrote: So I was thinking. What if Dependencymanager would allow you to specify

Re: Dependencymanager factory with ConfigurationDependency

2010-11-22 Thread Marcel Offermans
On 22 Nov 2010, at 13:59 , Bram de Kruijff wrote: On Mon, Nov 22, 2010 at 11:34 AM, Marcel Offermans marcel.offerm...@luminis.nl wrote: On 22 Nov 2010, at 10:52 , Bram de Kruijff wrote: Thanks, I overlooked this signature. However, it seems only to solve my case partially as I do not get

Re: Class loading problem

2010-11-19 Thread Marcel Offermans
@Jean-Baptiste: Perhaps a stupid question, but since it's a javax.* class that cannot be found, are you actually exporting these packages through the system bundle? On 19 Nov 2010, at 10:01 , Karl Pauls wrote: Can you share the manifest of your bundle with us? Additionally, can you set the

Re: Class loading problem

2010-11-19 Thread Marcel Offermans
Code: 310007 Tel:13735434226 MSN:yaoke...@hotmail.com -Original Message- From: Marcel Offermans [mailto:marcel.offerm...@luminis.nl] Sent: 2010年11月19日 17:10 To: users@felix.apache.org Subject: Re: Class loading problem @Jean-Baptiste: Perhaps a stupid question, but since

Re: Dependencymanager factory with ConfigurationDependency

2010-11-19 Thread Marcel Offermans
Hello Bram, On 19 Nov 2010, at 13:45 , Bram de Kruijff wrote: Using the dependencymanager, when registering a component with a factory and a (required) ConfigurationDependency. When the configuration becomes available the component instance is retrieved from the factory and then onUpdate is

Re: ManagedService and FileInstall

2010-11-18 Thread Marcel Offermans
That won't work: the fact that the configuration admin service is available does not mean there will be a configuration available for you. And even if there is, there will still be all kinds of timing issues. If your service needs to be configured before it can be used, don't publish it until

Re: a bundle is at Stopping state.

2010-11-16 Thread Marcel Offermans
So please take Felix's advice and please do a thread dump when that happens, take a look at which threads are involved in the deadlock and if you believe this is caused by the framework, file a bug report in JIRA so we can take a look at it. Greetings, Marcel On 16 Nov 2010, at 9:12 ,

ApacheCon 2010 NA Felix/OSGi Meetup

2010-10-14 Thread Marcel Offermans
Hi all, As the Felix project we're organizing a Felix/OSGi meetup at ApacheCon NA 2010 in a few weeks. If you're going, please sign up for the meetup on this wiki page, so we know approximately how many people to expect: http://wiki.apache.org/apachecon/ApacheMeetupsNa10 Also, if you want to

Re: Bundle-NativeCode question...

2010-09-26 Thread Marcel Offermans
On 27 Sep 2010, at 5:09 , Richard S. Hall wrote: On 9/26/10 22:22, Tony Anecito wrote: I have my native libs for each OS in separate jars and in some cases I have quite a few jars. I have some simple questions 1. Can I keep my native jars as separate bundles? No, they must be packaged in

Re: Converting a Java app into an OSGi bundle

2010-09-23 Thread Marcel Offermans
Hello Mike, On 23 Sep 2010, at 21:56 , mvangeert...@comcast.net mvangeert...@comcast.net wrote: I have not created bundle activators, as I was told (likely incorrectly), that this was unnecessary if I use Spring DM, but that it required some sort of configuration file. After further

Re: Converting a Java app into an OSGi bundle

2010-09-23 Thread Marcel Offermans
On 23 Sep 2010, at 23:29 , Guillaume Nodet wrote: I'd go with #3. Especially if you plan to deploy in Karaf, i'd avoid #1 because Karaf has some bundles with a Main-Class attribute which would cause undesired side effects if you scan all bundles with this attribute and start those. Just out

Re: Question

2010-08-11 Thread Marcel Offermans
To get you started, this is an example of how to build a bundle: http://felix.apache.org/site/apache-felix-tutorial-example-1.html Mind you, most OSGi project don't create their bundles like this (by hand) but use some Bnd based task that integrates with either Ant or Maven. For an example of

Re: Re : Installing a bundle

2010-08-11 Thread Marcel Offermans
On 11 Aug 2010, at 16:08 , gharbi wrote: Yes, it is in the folder \first. I have tried to install this bundle using this command but it does not work install C:\Users\atef\org.apache.felix.main.distribution-3.0.1\felix-framework-3.0.1\first\example1.jar Last time I looked,

  1   2   3   >