Re: Enforcing mandatory components for an application

2021-10-13 Thread Bertrand Delacretaz
On Tue, Oct 12, 2021 at 11:59 PM Neil Bartlett wrote: > ...But you are building a closed > world with a well-defined set of bundles. As the application assembler you > know that there will never be another bundle to come along and save the day... In such cases, I think having a PERMANENT_FAILURE

Re: Automatically update bundles

2014-08-05 Thread Bertrand Delacretaz
Hi, On Mon, Aug 4, 2014 at 5:34 PM, Tim McIver wrote: > ...I've begun writing code that gets the symbolic > name of any installed plugin, then uses this to get all Resources with a > given symbolic name from the external OBR. Next, I would see if any of > these Resources are a more recent versio

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

2014-03-24 Thread Bertrand Delacretaz
Hi Peter, Thanks for the detailed explanation! On Sun, Mar 23, 2014 at 4:57 PM, Peter Kriens wrote: > ...The beauty of it all is that with DS you can override the reference target > filters. So in the case you cannot change the client, > you set the Foo.target configuration property to the des

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

2014-03-20 Thread Bertrand Delacretaz
Hi Peter, On Thu, Mar 20, 2014 at 4:32 PM, Peter Kriens wrote: > ...The migrator depends on the raw service and registers a delegate service > after it has > migrated the database. You can easily make a pipeline like this. A simple > service property > will do the trick. In DS it is easy to use

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

2014-03-19 Thread Bertrand Delacretaz
Hi, On Tue, Mar 18, 2014 at 10:22 PM, Neil Bartlett wrote: > ...Whatever you're trying to do in your special listener, wouldn't it be > better done inside the same bundle as the service?... You're right, and this is similar to what Bruce suggests - the bundle's initialization code can look for i

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

2014-03-18 Thread Bertrand Delacretaz
Hi, On Tue, Mar 18, 2014 at 7:24 PM, David Jencks wrote: > ...If you have a DS component with a reference to your desired service, with > a bind method, > the bind method will be called at some point when the desired service is > available, > whether the service or your component starts first..

How to use a service immediately after its activation?

2014-03-18 Thread Bertrand Delacretaz
Hi, I'd like to interact with a given service as soon as it is created, ideally before other clients use it. Is it safe to use a service in the ServiceListener.serviceChanged(ServiceReference R) method, grabbing it from R? I suppose there's no way to prioritize a given ServiceListener, but at le

Re: OSGi Bundle Repository (How to host them on a server)?

2013-12-03 Thread Bertrand Delacretaz
On Tue, Dec 3, 2013 at 12:03 AM, Elliot Huntington wrote: > http://stackoverflow.com/questions/20337818/osgi-bundle-repositories-how-to-host-them-on-a-server This sounds like Apache ACE, http://ace.apache.org/ -Bertrand - To un

Re: declarative Services

2013-06-03 Thread Bertrand Delacretaz
Hi, On Sat, Jun 1, 2013 at 12:10 AM, bokie wrote: > I'm quite comfortable with OSGi and Felix but have I've never used > Declarative Services. I've started reading up on the topic and started to > ask my self some questions... I'm going to shamelessly plug my small example app at https://github.

Re: Safe to retain references to OSGi bundles?

2013-04-18 Thread Bertrand Delacretaz
On Thu, Apr 18, 2013 at 3:24 PM, Robert Munteanu wrote: > ...The reason I need to hold on to the bundle is to load classes using that > its classloader > at a later point in time... Can't you do that using getClass().getClassLoader() on a class that's inside that bundle? I *think* keeping refer

Re: Shutdown deadlock on OS X while doing AWT stuff

2013-03-05 Thread Bertrand Delacretaz
Hi, On Tue, Mar 5, 2013 at 2:15 PM, Dan Gravell wrote: > ...Stopping the > bundles has the effect of calling: > > @Deactivate def shutdown() { > awt.SystemTray.getSystemTray.getTrayIcons.foreach(systemTray.remove); > ... It's been a long time since I did any AWT...shouldn't that be called with E

Re: Permission to translate your page at http://felix.apache.org/

2013-03-05 Thread Bertrand Delacretaz
Hi, On Thu, Feb 28, 2013 at 7:36 PM, Anja Skrba wrote: > ...I would be grateful if you could allow me to translate your writing into > Serbo-Croatian language, that is used in all Former Yugoslav Republics and > to post it on my website... >From the foundation's point of view, this is cool as lo

Re: Configuration Admin service example?

2011-04-26 Thread Bertrand Delacretaz
Hi, On Tue, Apr 26, 2011 at 4:46 PM, Cristiano Gavião wrote: > ...I found maven-scr-plugin annotation very interesting and easy... > > Now I'm trying figuring out how I could inject properties from a config file > on the service using DS... The Felix file installer ( http://felix.apache.org/site

Re: Configuration Admin service example?

2011-04-26 Thread Bertrand Delacretaz
Hi, On Tue, Apr 26, 2011 at 12:03 AM, Cristiano Gavião wrote: > I would like to use Configuration Admin Service with Declared Service. > But I > couldn't find yet a updated tutorial with a good example If your goal is to create Declarative Services that have configuration parameters, th

Re: Alternative to Tycho using Felix

2011-04-14 Thread Bertrand Delacretaz
Hi Benoît, 2011/4/14 Benoît Thiébault : > ...I am currently working on a project that is managed by Maven as a > multi-modules project, each module representing an OSGi bundle. What I would > like to do is to automatically generate a distributable packaging of the > project for each targeted platf

Re: Unable to acquire global lock for resolve

2011-03-02 Thread Bertrand Delacretaz
Hi, On Wed, Sep 29, 2010 at 6:59 PM, wrote: > ...Error executing command: Could not start bundle > mvn:org.dom4j/com.springsource.org.dom4j/1.6.1 in feature(s): > Unresolved constraint in bundle com.springsource.org.dom4j [59]. Unable to > acquire global lock for resolve I've had a simila

Re: pax exam and felix

2011-02-28 Thread Bertrand Delacretaz
On Sun, Feb 27, 2011 at 7:04 PM, teemu kanstren wrote: >  I have been trying to learn to use Pax Exam with Felix but without much > success... FWIW we do use Pax Exam with Felix in Sling, see for example http://svn.apache.org/repos/asf/sling/trunk/installer/it but that might not use the very lat

Re: JUnit in Felix OSGI

2011-01-28 Thread Bertrand Delacretaz
Hi, On Thu, Jan 27, 2011 at 9:06 PM, teemu kanstren wrote: >... -integration with the environment (Felix, external bundles) using a > programmatic setup of Felix and programmatic control of Felix/access to > bundlecontext, etc That's where pax exam would help you - we're using it in Sling, y

Re: Swing-based OSGi management console

2010-12-02 Thread Bertrand Delacretaz
Hi, On Thu, Dec 2, 2010 at 1:45 PM, Daniel Faber wrote: > ...for a Swing-based desktop application with embedded OSGi framework I'm > looking for an OSGi management console.  Something similar to the Felix > Web Console, but with Swing GUI instead of web interface.  Are you aware > of such a proj

Re: [ANN] Felix R4.2 certification

2010-10-26 Thread Bertrand Delacretaz
On Tue, Oct 26, 2010 at 3:54 PM, Richard S. Hall wrote: > On 10/26/10 9:36, Bertrand Delacretaz wrote: >> >> On Tue, Oct 26, 2010 at 3:17 PM, Richard S. Hall >>  wrote: >>> >>> ...With sponsorship from Oracle, version 3.0.x of the Felix Framework and >

Re: [ANN] Felix R4.2 certification

2010-10-26 Thread Bertrand Delacretaz
On Tue, Oct 26, 2010 at 3:17 PM, Richard S. Hall wrote: > ...With sponsorship from Oracle, version 3.0.x of the Felix Framework and > version 1.4.x of the Framework Security Provider have been certified R4.2 > compliant... Very cool, but can you elaborate on the kind of sponsorship? With all the

Re: PermGen Space and creating executable jars that require no special arguments

2010-09-14 Thread Bertrand Delacretaz
Hi Reto, On Mon, Sep 13, 2010 at 10:51 AM, Reto Bachmann-Gmuer wrote: > ...clerezza always fails to be started without setting > "-XX:MaxPermSize=128m". I'm wondering if there are ways to either > reduce PermGen usage or otherwise make the jar executable without any > special argument (as with a

Re: Managing large Karaf projects with multiple bundles

2010-08-06 Thread Bertrand Delacretaz
On Fri, Aug 6, 2010 at 1:13 PM, Felix Meschberger wrote: > On 06.08.2010 12:41, Charles Moulliard wrote: >> If you don't want to use bundle start level, which solution do you use when >> you would like to start service or bundles in a specific order ? > > Point about the start level is, that it is

Re: Managing large Karaf projects with multiple bundles

2010-08-05 Thread Bertrand Delacretaz
Hi, On Thu, Aug 5, 2010 at 5:06 PM, wrote: > My project has about 130 different bundles, which appear to need to be > deployed in a specific > order because of thier dependencies Relying on bundles start order sounds bad, OSGi best practices should help avoid that. Using start levels can

Re: Custom resolver

2010-07-26 Thread Bertrand Delacretaz
On Mon, Jul 26, 2010 at 9:28 AM, Sander de Groot wrote: > ...ACE looks promising, I'm going to take a look. > However, whats bothering me is that I didn't found this (these kind of) > product while searching on google. > It seems to me that I'm searching for the wrong keywords, mm, better > rephra

Re: Custom resolver

2010-07-22 Thread Bertrand Delacretaz
Hi, On Thu, Jul 22, 2010 at 10:33 AM, Sander de Groot wrote: > ...My context is as follows: I've a cluster of servers (OSGi) and I want to > deploy a new application to each of these servers. These new applications > however sometimes have dependencies which are not installed on the (OSGi) > serv

Re: How to check if a bundle is already installed?

2010-04-14 Thread Bertrand Delacretaz
On Wed, Apr 14, 2010 at 5:00 AM, Mahammad Nasir wrote: > > Thanks, I think this will solve my problem wherever I have symbolic name. I > have some places I have only bundle physical name. Is there any otherways to > check based on physical name?... The bundle filename you mean? There's Bundle.ge

Re: How to check if a bundle is already installed?

2010-04-13 Thread Bertrand Delacretaz
Hi, On Tue, Apr 13, 2010 at 11:27 AM, Mahammad Nasir wrote: > ...How can i check if a bundle is already installed? i dint find any api to > check if it is already installed... you can do something like String bundleSymbolicName = ... Bundle[] bundles = bundleContext.getBun

Re: Webconsole hanging

2010-03-01 Thread Bertrand Delacretaz
Hi, On Fri, Feb 26, 2010 at 11:30 PM, John E. Conlon wrote: >> ka...@root> start 3 ... >> ka...@root> start 37 ... > After that I WAS able to connect to the webconsole. > > Start levels? Start levels shouldn't make a difference AFAIK, the console should work if started before or after the jetty

Re: Webconsole hanging

2010-02-26 Thread Bertrand Delacretaz
Hi, On Fri, Feb 26, 2010 at 2:25 AM, John E. Conlon wrote: > Have been experiencing an intermittent hanging problem when I try to connect > to a felix web console. By hanging I mean - connecting to the url produces a > blank webpage - no errors just a blank page.    Sometimes it works and other >

Re: Default web app integration behavior

2009-10-09 Thread Bertrand Delacretaz
Hi, On Fri, Oct 9, 2009 at 2:01 PM, Edelson, Justin wrote: > ...I can look at creating some patches against Sling that do the following:... > * Add SNAPSHOT version support (i.e. always upgrade SNAPSHOTs)... Sling's OSGi installer module (similar to fileinstall, but using bundles from a JCR repo

Re: Felix 2.0.0 download link broken

2009-09-29 Thread Bertrand Delacretaz
Hi, On Tue, Sep 29, 2009 at 3:09 PM, Sahoo wrote: > http://cwiki.apache.org/confluence/display/FELIX/%5Bpreferred%5D/felix/felix-framework-2.0.0.zip > is broken. Just noticed that as well, it's the mirror selection script that's not called apparently. Using http://www.apache.org/dyn/closer.cgi/

Re: Felix inside web container

2009-01-13 Thread Bertrand Delacretaz
Hi Vinicius, On Fri, Jan 9, 2009 at 7:12 PM, Vinicius Carvalho wrote: > Bertrand Sling is amazing,... Thanks! > ...One thing we really would like is to use some framework to help on the > development, I guess I'm just too lazy now that I've used Spring and Seam, > and all the stuff they do for

Re: Felix inside web container

2009-01-09 Thread Bertrand Delacretaz
Hi, On Tue, Jan 6, 2009 at 1:28 PM, Vinicius Carvalho wrote: > ...I was imagining putting the Felix inside a servlet context, much like > Spring > app do. And my servlets would consume services provided by the Felix, I > would create some special servlets front ends to install bundles, list them

Re: Error in fwk JarContent class: "Unable to open JAR file"

2008-12-09 Thread Bertrand Delacretaz
On Tue, Dec 9, 2008 at 4:01 PM, Richard S. Hall <[EMAIL PROTECTED]> wrote: > One quick question, are you running on Windows? Not me - I've seen the "java.util.zip.ZipException: error in opening zip file" error on macosx while working on jcrinstall. -Bertrand -

Re: Error in fwk JarContent class: "Unable to open JAR file"

2008-12-09 Thread Bertrand Delacretaz
Hi, On Mon, Dec 8, 2008 at 9:33 AM, Pierre De Rop <[EMAIL PROTECTED]> wrote: >... I am testing hot deployment on our app server (with Felix 1.4.0) and I > discovered that, after a couple of bundle updates, > then I end up with the following fwk exception: > > -> ERROR: JarContent: Unable to open J

Re: JMX UI for felix shell service

2008-12-04 Thread Bertrand Delacretaz
Hi Didier, On Thu, Dec 4, 2008 at 8:30 AM, Didier Donsez <[EMAIL PROTECTED]> wrote: > ...I have a license issue to solve for the plugin part: the JConsolePlugin > API is "GPL Classpath Exception" (like the OpenJDK and Glassfish) and I > don't know if it is compatible with the ASL2 FYI, the pl

Re: Questions about building a web-application with OSGi

2008-09-30 Thread Bertrand Delacretaz
Hi, I'm not an OSGi expert but a Sling committer, and we use OSGi in web applications extensively there, so I'll try. On Wed, Sep 17, 2008 at 2:04 AM, Joachim Rohde <[EMAIL PROTECTED]> wrote: > ...But first let me explain what I have in mind: I want to build a > web-application that can be modula

Re: OSGI Tools question

2008-09-11 Thread Bertrand Delacretaz
On Thu, Sep 11, 2008 at 10:20 AM, Peter Kriens <[EMAIL PROTECTED]> wrote: > ...Overall, trying to use maven + Eclipse is a bit of a mess... I agree, trying use the supposedly cool features of the current Eclipse/Maven plugins did not work well for me either. I went to back to working in a less i

Re: Wait for services to be fully registered?

2008-07-28 Thread Bertrand Delacretaz
On Wed, Jun 11, 2008 at 3:31 PM, jaredmac <[EMAIL PROTECTED]> wrote: > ...So even if I change my client to respond to bind() and unbind() methods, > and > dynamically register/unregister these menu items, then the UI will work > correctly (with menu items coming and going, I suppose), but the uni

[OT] Re: AW: AW: AW: AW: AW: AW: AW: AW: AW: AW:...

2008-07-28 Thread Bertrand Delacretaz
Hi Daniel, On Fri, Jul 25, 2008 at 8:58 PM, Daniel Felsing <[EMAIL PROTECTED]> wrote: > Hiho,... I assume it's your mailer that adds the multiple AW: prefixes to the subject line, if that's the case it would be nice if you could fix that - my felix inbox looks really funny today ;-) Thanks, -Ber

Re: Declarative Services with maven-bundle-plugin

2007-09-18 Thread Bertrand Delacretaz
On 9/19/07, Rodrigo Madera <[EMAIL PROTECTED]> wrote: > ...In a normal Eclipse project I would > add this to the manifest and all would be solved: > > Import-Package: org.eclipse.osgi.framework.console;version="1.0.0" Use the statement of maven-bundle-plugin, see http://felix.apache.

Re: Embedding and *hiding* Felix inside a jar?

2007-09-15 Thread Bertrand Delacretaz
Hi Felix, On 9/15/07, Felix Meschberger <[EMAIL PROTECTED]> wrote: > Let me see, whether I understand it correctly... You do, your description matches what I'm trying to do. > ...Probably, you will setup a class loader in whose parent is the class > loader loading the hammer.jar. This private cl

Re: Embedding and *hiding* Felix inside a jar?

2007-09-15 Thread Bertrand Delacretaz
On 9/15/07, Richard S. Hall <[EMAIL PROTECTED]> wrote: > Perhaps I don't understand exactly what you are asking, but doesn't the > example application basically do what you want? > > http://cwiki.apache.org/FELIX/apache-felix-application-demonstration.html... >From the functional side of things ye

Embedding and *hiding* Felix inside a jar?

2007-09-15 Thread Bertrand Delacretaz
Hi, For an upcoming project I'd like to use Felix to manage third-party dependencies internally, while hiding this completely from the users of the resulting tool, which would be delivered as a single jar file. If for example my library has this interface: package tunes.looney.hammer; public

Re: Declarative Services with maven-bundle-plugin

2007-09-15 Thread Bertrand Delacretaz
Hi Rodrigo, On 9/15/07, Rodrigo Madera <[EMAIL PROTECTED]> wrote: >... I'm trying to develop a Declarative Service using the maven-bundle-plugin, > but I can't find documentation on it The docs are at http://felix.apache.org/site/maven-bundle-plugin-bnd.html , but to create Declarative Servi