Re: Enforcing mandatory components for an application

2021-10-14 Thread Robert Munteanu
On Wed, 2021-10-13 at 11:17 -0400, Raymond Augé wrote: > I don't think "readiness" is something you completely do inside an > app to > begin with. (assist with? sure!) > > This is why I proposed Condition Service; to model the details > required for > your application to be "ready", hoist that int

Re: Enforcing mandatory components for an application

2021-10-14 Thread Robert Munteanu
after the timer fires if the mandatory components are not available - > abort I am aware that this is somewhat of an edge case and not fully mapped on the OSGi model, but I kind of like OSGi so I'm exploring different scenarios with it. Thanks, Robert > > > On Tue, 12 Oct

Re: Enforcing mandatory components for an application

2021-10-12 Thread Robert Munteanu
(as the name implies) using OSGi service filters. > > [1] > https://osgi.github.io/osgi/cmpn/service.component.html#service.component-satisfying.condition > [2] > https://search.maven.org/artifact/org.apache.felix/org.apache.felix.scr/2.2.0-RC1/bundle > > On Tue, Oct 12, 2021 at

Enforcing mandatory components for an application

2021-10-12 Thread Robert Munteanu
Hi, I have written a couple of small OSGi apps where if a single top-level DS component, let's call it T, cannot start then the application should shut down immediately. One example are HTTP services where the HTTP server port cannot be bound to. The causes of failures I have seen are: - T activa

Wrong Felix logo on apache.org/logos?

2020-08-26 Thread Robert Munteanu
Hi, I was looking for a nicer version of the Felix logo and went to https://apache.org/logos/#felix . The logo there, although much larger, is different from the one on https://felix.apache.org/ . Which is the right one? And how can I get access to a large version of the right one? Thanks, Rob

Re: [healthcheck] Equivalent of SystemReady service?

2020-03-19 Thread Robert Munteanu
pache/felix-dev/blob/master/healthcheck/generalchecks/src/main/java/org/apache/felix/hc/generalchecks/FrameworkStartCheck.java#L46 > > > > Maybe Georg can help with more clear instructions. > > > > > > > > We should also add a systemready tag to the Felix HCs.

[healthcheck] Equivalent of SystemReady service?

2020-03-13 Thread Robert Munteanu
Hi, I am using the old systemready bundle and I configured a component to react a component when the system ready by reacting when the SystemReady service becomes available. How can I do the same with the new healtchecks bundle? I tried the README [1] and the migration guide [2] but got no ideas.

Re: Gogo shell + telnet without a local TTY

2020-02-13 Thread Robert Munteanu
e the port in the Dockerfile EXPOSE 5. Publish the port when running the application $ docker run -p Now I have a working remote shell without a TTY. Thanks Ray and Bernd for you help. Robert > HTH > - Ray > > On Thu, Feb 13, 2020 at 9:27 AM Robert Munteanu >

Re: Gogo shell + telnet without a local TTY

2020-02-13 Thread Robert Munteanu
apache.felix/org.apache.felix.shell.remote/1.2.0 Thanks, Robert > Gruss > Bernd > > > -- > http://bernd.eckenfels.net > > Von: Robert Munteanu > Gesendet: Wednesday, February 12, 2020 11:26:32 AM > An: users@felix.apache.org > Betreff: Gogo sh

Gogo shell + telnet without a local TTY

2020-02-12 Thread Robert Munteanu
Hi, I am trying to open up access to the gogo shell via telnet without allocating a TTY. The problem with the TTY is that is there is none the shell will get an interrupt, therefore shutting down the OSGi framework. I am running on a container platform, so no much luck in getting that changed. I

Re: Questions about Export-Package

2019-08-06 Thread Robert Munteanu
no idea this was possible. Robert > > Robert Munteanu 于2019年8月6日周二 下午4:40写道: > > > Hi Duan, > > > > On Tue, 2019-08-06 at 16:36 +0800, duan2ping DL• wrote: > > > Hi! > > > > > > I have some questions about Export-Package. >

Re: Questions about Export-Package

2019-08-06 Thread Robert Munteanu
Hi Duan, On Tue, 2019-08-06 at 16:36 +0800, duan2ping DL• wrote: > Hi! > > I have some questions about Export-Package. > > Example: > > >org.apache.felix >maven-bundle-plugin > > > > com.duan2ping.api.model;ex

Re: List of bundles required for Declarative Services Annotation

2019-04-04 Thread Robert Munteanu
Hi Davi, On Thu, 2019-04-04 at 11:19 -0300, Davi Baldin Tavares wrote: > Hello, > > I’m trying to move to DS Annotation. > > My Class: > > import org.osgi.service.component.annotations.Component; > > @Component(name = "ZPluginProvider Service", immediate = true, > service = ZPluginProvider.cla

Re: [logback] Automatically setting up JUL-to-slf4j bridge?

2019-01-15 Thread Robert Munteanu
On Tue, 2019-01-15 at 09:51 -0500, Raymond Auge wrote: > Yes, precisely! > > I was long struggling with it but I think in the spirit of > felix.logback > trying to just make logging work super well with minimal setup, I > just > embedded to JUL bridge directly into it and it will automatically be

Re: [logback] Automatically setting up JUL-to-slf4j bridge?

2019-01-15 Thread Robert Munteanu
Hi Ray, On Sun, 2018-11-25 at 11:55 -0500, Raymond Auge wrote: > On Tue, Nov 6, 2018 at 7:50 AM Robert Munteanu > wrote: > > > Hi, > > > > I am looking into using the felix logback module. The main setup > works > > just fine, and anything using slf4j routes

[logback] Automatically setting up JUL-to-slf4j bridge?

2018-11-06 Thread Robert Munteanu
Hi, I am looking into using the felix logback module. The main setup works just fine, and anything using slf4j routes its logging through this module. In my application one bundle (aries-spi-fly) uses java.util.logging APIs. Digging through the felix.logback tests I discovered that there are two

Re: Documentation for systemready?

2018-11-06 Thread Robert Munteanu
. I was looking on the main Felix site and found nothing there. Robert > > Hope this helps. > - Andrei > > On Wed, Oct 31, 2018, 16:15 Robert Munteanu > wrote: > > > Hi, > > > > Is there any user-facing documentation for systemready? I'm > > in

Documentation for systemready?

2018-10-31 Thread Robert Munteanu
Hi, Is there any user-facing documentation for systemready? I'm interested in seeing what 'gates' I can configure and maybe how to add my own. Thanks, Robert - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For add

Re: "partial fragment bundles"?

2018-08-13 Thread Robert Munteanu
as not our > plan). > > Do you see any other option we can try? > > > > > > > > > > > Am Mo., 13. Aug. 2018 um 11:05 Uhr schrieb Robert Munteanu < > romb...@apache.org>: > > > Hi Jörg, > > > > On Fri, 2018-08-10 at

Re: "partial fragment bundles"?

2018-08-13 Thread Robert Munteanu
Hi Jörg, On Fri, 2018-08-10 at 11:06 +0200, Jörg Hoh wrote: > and it turns > it that this library uses both the JVM-provided classes as well as > the > classes provided by the sling bundle, thus failing to run properly. What error do you get? Is it the cheerful uses constraints violation? One pos

Re: maven-bundle-plugin: baseline check complains about switching annotation types

2017-08-17 Thread Robert Munteanu
s this change must be > reflected by a change in the version number, therefore the baseline > detection is doing the right thing in this case. > > Regards, > > Tim > > > > On 2 Aug 2017, at 16:20, Robert Munteanu > > wrote: > > > > Hi, > &g

maven-bundle-plugin: baseline check complains about switching annotation types

2017-08-02 Thread Robert Munteanu
Hi, I am trying to migrate a project from the bnd versioning annotation to the OSGi ones. I am stuck with the maven-bundle-plugin complaining when baselining runs since the annotations have changed: [INFO] --- maven-bundle-plugin:3.3.0:baseline (baseline) @ oak-api --- [INFO] Baseline Report - Ge

Re: DRY for DS?

2015-11-17 Thread Robert Munteanu
On Tue, Nov 17, 2015 at 10:19 PM, Ferry Huberts wrote: > For bnd you really do need the @Activate and @Deactivate annotations, > otherwise the component XML doesn't specify them To my understanding they don't have to be in the component XML. See 112.5.8 - Activate Method and 112.5.15 - Deactiva

Re: DRY for DS?

2015-11-17 Thread Robert Munteanu
On Tue, Nov 17, 2015 at 9:47 PM, Benson Margulies wrote: > On Tue, Nov 17, 2015 at 2:43 PM, Robert Munteanu wrote: >> Hi Benson, >> >> On Tue, Nov 17, 2015 at 8:00 PM, Benson Margulies >> wrote: >>> I'm feeling a bit sad; I have a family of 12 very

Re: DRY for DS?

2015-11-17 Thread Robert Munteanu
Hi Benson, On Tue, Nov 17, 2015 at 8:00 PM, Benson Margulies wrote: > I'm feeling a bit sad; I have a family of 12 very similar services, > but I can't put the @Reference, @Activate, and @Deactivate into the > base class, I have to copy and paste it into each component class. > > Have I missed an

Re: After poking a blueprint service with configuration admin, how do I wait for it to restart?

2015-08-28 Thread Robert Munteanu
On Fri, 2015-08-28 at 08:29 -0400, Benson Margulies wrote: > I hope that this is a Felix question and not an Aries question ... > > I have a managed service. I want to write a test that tries it out > with several different configurations. So, my pax-exam test @Injects > the service, and @Injects

Re: Fwd: Felix compile issue

2015-06-16 Thread Robert Munteanu
Hi, Try downgrading your Maven version. Robert On Jun 16, 2015 4:36 AM, "飞颜" wrote: > I following > http://felix.apache.org/documentation/development/building-felix.html to > build felix but failed > > 1. Maven environment > Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; > 2015-0

Re: Bundle dependency management

2014-12-12 Thread Robert Munteanu
Hi Benson, On Thu, 2014-12-11 at 12:38 -0500, Benson Margulies wrote: > So, here I am, setting up an application that embeds Felix. I need it > to contain a certain collection of bundles -- and then some > dependencies of those bundles. > > Plain-old-maven can't help very much with managing those

Re: maven bundle plugin and baselining

2014-11-11 Thread Robert Munteanu
Hi, On Mon, Nov 10, 2014 at 10:23 PM, mit_jones wrote: > Hi, > > I have been experimenting with the maven-bundle-plugin baseline Mojo. I > can't find much documentation so not sure if I am seeing the expected > behaviour but it appears to be different than what I see in a 'native' > Eclipse bnd e

Re: [scr] java.lang.IncompatibleClassChangeError: Implementing class

2014-03-10 Thread Robert Munteanu
> uses an API incompatible with asm-all used in scr. Is there a way to ask scr > validator not to check too far? :-) Maybe @Component(inherit=false) ? Robert > > On 10 Mar 2014, at 10:49, Robert Munteanu wrote: > >> Maybe there's a clash between the ASM version used by

Re: [scr] java.lang.IncompatibleClassChangeError: Implementing class

2014-03-10 Thread Robert Munteanu
vautil > 3.1.1 > compile > > > asm > asm > 3.3.1 > compile > > > > > On 10 Mar 2014, at 10:32, Robert Munteanu wrote: > >> Hi Nicolas, >>

Re: [scr] java.lang.IncompatibleClassChangeError: Implementing class

2014-03-10 Thread Robert Munteanu
Hi Nicolas, On Sun, Mar 9, 2014 at 11:08 PM, Nicolas Peltier wrote: > Hi, > > while compiling a rather simple project with a one method interface, i get > the scr package phasis failing [0] , apparently when processing the only > reference i use in my project [1]. I’m out of ideas and hope th

[scr] Timeout waiting for reg change to complete unregistered

2014-03-05 Thread Robert Munteanu
Hi, I see this message logged at an ERROR level for one of my components. I traced it back to org.apache.felix.scr.impl.manager.RegistrationManager, but I'm not sure: - what impact it has, except for delaying component deactivation - what triggers it, so I can fix the underlying cause Any help

Re: Delegating loading of resources which are not in any package (in root of the osgi bundle jar)

2014-01-06 Thread Robert Munteanu
Hi, On Sun, Dec 22, 2013 at 2:27 AM, wrote: > Hello, i am trying to OSGify a non-OSGi library which is relying on loading > resources from root of itself, resources which are not in any package, using > something like > Thread.currentThread().getContextClassLoader().getResourceAsStream("nifty.vs

Re: Use JRE-Package com.sun.script.javascript in OSGi-Bundle

2013-12-12 Thread Robert Munteanu
Hi Stephan, On Thu, 2013-12-12 at 15:48 +0100, Stephan Burkard wrote: Hi Felix users > > I have an embedded JAR in my bundle that has a dependency to the package > "com.sun.script.javascript" from rt.jar. > > How can I "activate" and use the classes from this package in my OSGi > bundle since this

Re: Nothing happens when running felix.jar

2013-11-14 Thread Robert Munteanu
Hi Andriy, On Thu, Nov 14, 2013 at 4:30 PM, Andriy Polishchuk wrote: > After > $ java -jar felix.jar > it just runs and prints nothing, and doesn't respond to any input. > Tried java7-openjdk(1.7.0_25) and java8(1.8.0-ea-b115). 1. Is this the felix jar contained in the distribution from [1]? 2.

Re: SCR @Reference on fields?

2013-11-02 Thread Robert Munteanu
e of declaring a Reference on a field is that you don't have to declare the name and interfaceReference properties, which are inferred from the field. For more details, see [1]. Robert [1]: http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#reference >

Re: SCR @Reference on fields?

2013-11-02 Thread Robert Munteanu
on behind it, but I think that the Felix-specific SCR annotations predate the OSGi spec for annotations. Robert > > Best, Dan. > > > On 2 Nov 2013, at 13:43, Robert Munteanu wrote: > >> Hi Dan, >> >> On Sat, Nov 2, 2013 at 3:12 PM, Daniel McGreal wrote: >>&

Re: SCR @Reference on fields?

2013-11-02 Thread Robert Munteanu
Hi Dan, On Sat, Nov 2, 2013 at 3:12 PM, Daniel McGreal wrote: > Hi Felix users, > I wonder if anyone knows why the Felix @Reference annotations are valid on > fields, but not methods, whereas the opposite is true for the OSGi standard > @Reference annotation. > I would very much like to have a

Re: 回覆: adopt to OSGi

2013-10-18 Thread Robert Munteanu
On Fri, Oct 18, 2013 at 6:29 PM, mcheung63 wrote: > thank you Christian. > > if i let felix to start my app, seems not many people doing in this way. i > think embedding felix is my best choice. What makes you say that? Robert > > > thanks > from Peter > > 原有訊息 > 由: Christian

Re: OSGi-aware resource loading

2013-09-03 Thread Robert Munteanu
On Tue, Sep 3, 2013 at 1:42 AM, Nicolas Lalevée wrote: > > Le 2 sept. 2013 à 18:15, Murad Mamedov a écrit : > >> Hello, I'm newbie here, but using OSGi for long time. >> >> From my understanding of your problem: >> - you expect some bundles to have build.xml >> - you are a build system that does

Integrating the maven-scr-plugin with a Tycho build

2013-07-23 Thread Robert Munteanu
Hi, Has anyone tried integrating the maven-scr-plugin with a Tycho build? I'm currently maintaining the SCR descriptor files by hand and it's a pain. The main issue that I face is that I would need to get the scr annotations jar into a p2 repository to convince the toolchain ( Eclipse IDE include

Re: Problems whit ResourceBundle

2013-05-31 Thread Robert Munteanu
Hi Lissuan, > Is possible load ResourceBundle inside a OSGi bundle? , because every time > I do , a resource Missing Exception is throw , somebody help me? What have you tried, and how did it fail? Robert - To unsubscribe, e-

Re: SCR 1.6.2 behaviour change - services bound in an activate method are no longer bound back to the same component instance

2013-05-28 Thread Robert Munteanu
or the pointer, I saw the issue comment after I posted this mail. I'll just revert to a SCR 1.6.0 until 1.8.0 is out. Robert > > Regards > Felix > > Am 28.05.2013 um 16:52 schrieb Robert Munteanu: > >> Hi, >> >> I've noticed a behaviour change when up

SCR 1.6.2 behaviour change - services bound in an activate method are no longer bound back to the same component instance

2013-05-28 Thread Robert Munteanu
Hi, I've noticed a behaviour change when upgrading from SCR 1.6.0 to 1.6.2 . In the Apache Sling project we have a component which binds service references in its own activate method, and expects them to be bound to itself later on ( see [0], near the end of the activate method ). With SCR 1.6.0

RE: Safe to retain references to OSGi bundles?

2013-04-18 Thread Robert Munteanu
> >>> ...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 references to Bundle objects is fi

RE: Safe to retain references to OSGi bundles?

2013-04-18 Thread Robert Munteanu
> > ...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 references to Bundle objects is fine if you track t

Safe to retain references to OSGi bundles?

2013-04-18 Thread Robert Munteanu
Hi, Is it safe to retain references to OSGi bundles and - even more - use them as map keys? I make sure that I don't retain references to stale bundles by using a BundleTracker, but I haven't found anywhere whether this is safe to do or not. The reason I need to hold on to the bundle is to loa

RE: /SPAM!/ [51%] No accessors generated

2013-03-07 Thread Robert Munteanu
Hi Benjamin, > -Original Message- > From: Benjamin Wulff [mailto:bwu...@uos.de] > Sent: Wednesday, March 06, 2013 8:18 PM > To: users@felix.apache.org > Subject: /SPAM!/ [51%] No accessors generated > > Hi all, > > I'm using the SCR Maven Plugin and SCR Annotations in my project for over

RE: ClassNotFoundException: sun.awt.X11.XToolkit

2012-05-22 Thread Robert Munteanu
> -Original Message- > From: Benoît Thiébault [mailto:thieba...@artenum.com] > Sent: Tuesday, May 22, 2012 11:51 AM > To: users@felix.apache.org > Subject: ClassNotFoundException: sun.awt.X11.XToolkit > > Hi everyone, > > When running Felix 4.0.2 with an application I am developing, I a

RE: Proposal to make org.apache.felix.scr.annotations available at Runtime

2012-04-13 Thread Robert Munteanu
ASM? > > cheers, > Caspar > > > On 13 April 2012 14:03, Robert Munteanu wrote: > > > Hi Caspar, > > > > Thanks for your reply. I've glanced over > > http://www.osgi.org/download/osgi-early-draft-2011-09.pdf and noticed > > that the annot

RE: Proposal to make org.apache.felix.scr.annotations available at Runtime

2012-04-13 Thread Robert Munteanu
le at Runtime > > Hi Robert, > > In a broader scope this will happen for RFC 0172 Declarative Services > Annotations (runtime processing of SCR components), however this brings > with it standardised annotations. > > cheers, > Caspar > > > On 13 April 2012 13:

Proposal to make org.apache.felix.scr.annotations available at Runtime

2012-04-13 Thread Robert Munteanu
Hi, I've noticed that the annotations from org.apache.felix.scr.annotations are declared with @Retention(RetentionPolicy.SOURCE) . I think the following use cases would benefit from the annotations being available at runtime . 1. Configuring component instances outside a OSGi container I often

RE: maven-bundle-plugin : Class in different directory than declared

2012-04-04 Thread Robert Munteanu
verticalsite.version} > compile > > > > com.tivoli.am.fim > common > ${tfim.version} > provided > > > > com.tivoli.am.fim > sts > ${tfim

RE: maven-bundle-plugin : Class in different directory than declared

2012-04-04 Thread Robert Munteanu
> -Original Message- > Problem 1) > > Reading the docs, I should use packaging "bundle". This does not work, > and throws the following error > > Unknown packaging: bundle @ line 12, column 16 > > I just switched to "jar", and it seems to work ok just the same, > manifest.mf is created w