[osgi-dev] Valid DS Component Name?

2018-06-11 Thread David Leangen via osgi-dev
Hi! Can anybody tell me what a valid component name looks like? I am trying to organize a somewhat complex array of components by including something similar to a namespace in the component name. It appears (but I’m not sure because I cannot tell from the error message) that I am getting

Re: [osgi-dev] Valid DS Component Name?

2018-06-11 Thread David Leangen via osgi-dev
. > You will definitely be fine if you stick to ‘.’ as the default naming scheme > uses the fully qualified class name. > > Tim > >> On 11 Jun 2018, at 08:04, David Leangen via osgi-dev > <mailto:osgi-dev@mail.osgi.org>> wrote: >> >> >> Hi! >

Re: [osgi-dev] Multi-Tenancy with OSGI

2018-07-01 Thread David Leangen via osgi-dev
Hi Clément, We ended up doing this via ServiceFactory. A service is either “tenant-aware” (meaning that the tenant logic is built into the service), or more commonly “tenant-unaware” (meaning that it’s like you write below: the service has no knowledge of the tenant). For those that are

[osgi-dev] DS factory-type pattern

2018-07-03 Thread David Leangen via osgi-dev
Hi, This may be another really dumb question… but is there a smart way to use DS as a kind of factory? What I have been doing so far: * Creating a Configuration via ConfigurationAdmin (I need to configure my component first) * In the config, including a kind of “secret” so I know which is

Re: [osgi-dev] DS factory-type pattern

2018-07-04 Thread David Leangen via osgi-dev
gt; > -Ursprüngliche Nachricht- > Von: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] > Im Auftrag von David Leangen via osgi-dev > Gesendet: Mittwoch, 4. Juli 2018 07:12 > An: osgi-dev@mail.osgi.org > Betreff: [osgi-dev] DS factory-type pattern >

Re: [osgi-dev] enRoute R7

2018-02-26 Thread David Leangen via osgi-dev
Hi Tim, Great to know that there is an enRoute R7 coming! Do you know who the committers are? I am getting no response to my pull request on GitHub. I would like to ping a committer, or something, but I don’t understand how the project is being managed. Cheers, =David > On Feb 26, 2018,

[osgi-dev] Life-cycle race condition

2018-07-31 Thread David Leangen via osgi-dev
Hi! I am running into a situation where, what I think is happening is: Component A gets instantiated Component B - references A - gets satisfied once A is satisfied - kicks off a long-running process when one of its methods are called - the long-running process is run in a different

Re: [osgi-dev] Angular New Enroute

2018-08-03 Thread David Leangen via osgi-dev
Hi, Angular 2+ works very differently from AngularJS. In enRoute (or at least in v2, I am not yet familiar with the current enRoute), it used AngularJS. You used to be able to just include the JS file, and that was it. Angular 2+ requires you to build/compile your application first, so you

Re: [osgi-dev] Life-cycle race condition

2018-08-01 Thread David Leangen via osgi-dev
only works if the service object is not stateful, > otherwise we need >// to do a check and throw away an intermediate invalidated result > > MyService myService = myRef.get(); >doSomethingWithMyService(myService); >} >} > } >

Re: [osgi-dev] Life-cycle race condition

2018-08-02 Thread David Leangen via osgi-dev
FzWCDlHyRl5ksXDN6LWsPNaiteIhpUBjk_D2EGRZeVD1PayrdMv4WKu4_xv1G00> > [3]: https://v2archive.enroute.osgi.org/ <https://v2archive.enroute.osgi.org/> > [4]: > https://github.com/osgi/v2archive.osgi.enroute/tree/master/osgi.enroute.executor.simple.provider > > <https://github.com/osgi/v2archive.osgi.enr

[osgi-dev] Question about consistency and visibility

2018-08-13 Thread David Leangen via osgi-dev
Hi! In a concurrent system, if a class is immutable, the problem is simplified and the class can be used without fear by multiple threads because (i) it’s state does not change, and (2) it’s state is guaranteed to be visible; Example: /** * The class is immutable because the fields are both

Re: [osgi-dev] Help validating pattern

2018-08-12 Thread David Leangen via osgi-dev
Hi Alain, Since you are annotating classes that are generated, does the generator has some configurability? Is it possible for you to instead generate configurations? The config could be a properties file, a JSON, or even a class if necessary. If this is possible, you could for instance use

Re: [osgi-dev] Help validating pattern

2018-08-12 Thread David Leangen via osgi-dev
Hi Alain, >> Since you are annotating classes that are generated, does the generator has >> some configurability? > Yes, it is our own. Ok, great! That will make things easier. >> Is it possible for you to instead generate configurations? The config could >> be a properties file, a JSON, or

Re: [osgi-dev] Help validating pattern

2018-08-12 Thread David Leangen via osgi-dev
Hi Alain, Maybe there is a way of having 25 different interfaces in your API instead? Or, if they are private, maybe you don’t even need to use services? Are you able to share your code? Would be helpful to have a little more information. Cheers, =David > On Aug 12, 2018, at 6:58, Alain

Re: [osgi-dev] Help validating pattern

2018-08-11 Thread David Leangen via osgi-dev
Hi Alain, What is it you are trying to accomplish? Is there a reason you are exposing the implementation class? Maybe you know this already, but the “usual” practice is to expose an interface in your API (and export the containing package), and to keep the implementation private. Also: >

Re: [osgi-dev] Double config

2018-08-25 Thread David Leangen via osgi-dev
I am at a loss... Cheers, =David > On Jul 14, 2018, at 4:05, David Leangen via osgi-dev > wrote: > > > Hi Tim, > >>> What is a good way to test for robustness against this phenomenon? >> >> Again, I wish to go on record as saying that bouncing does not mean t

[osgi-dev] Logger at startup

2018-08-26 Thread David Leangen via osgi-dev
Hi! I’m sure that this question has been asked before, but I did not successfully find an answer anywhere. It applies to both R6 and R7 logging. I would like to set up diagnostics so I can figure out what is happening during system startup. however, by the time the logger starts, I have

Re: [osgi-dev] Dealing with bouncing

2018-08-26 Thread David Leangen via osgi-dev
( new BarImpl2(e) ); >> } >> >> >> public void m1() { >> delegate.getPromise().m1(); >> } >> >> public void m2() { >> delegate.getPromise().m2(); >>

Re: [osgi-dev] Double config

2018-08-26 Thread David Leangen via osgi-dev
>> Unless maybe there is a bug in SCR for some edge case (felix version 2.0.2). > > This is indeed my suspicion based on what you have described. Have you tried > using a later SCR implementation, just in case it's a bug that's already been > fixed? Thanks, Neil! I updated to 2.0.14, and the

Re: [osgi-dev] Double config

2018-08-26 Thread David Leangen via osgi-dev
Hi Neil, Thanks for the tips. > With regard to "testing bouncing", there are two sides to this question: the > component being bounced, and the other components that may be exposed to it > bouncing. > > The component itself should never actually know that it is being, or has > been,

Re: [osgi-dev] Life-cycle race condition

2018-08-26 Thread David Leangen via osgi-dev
ince I've no > good other place at the moment. > > http://aqute.biz/2018/08/02/the-service-window.html > <http://aqute.biz/2018/08/02/the-service-window.html> > > Let me know if things are unclear. Kind regards, > > Peter Kriens > > >>

Re: [osgi-dev] Logger at startup

2018-08-27 Thread David Leangen via osgi-dev
s for the framework event types. > -- > > BJ Hargrave > Senior Technical Staff Member, IBM // office: +1 386 848 1781 > OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788 > hargr...@us.ibm.com <mailto:hargr...@us.ibm.com> > > > -

Re: [osgi-dev] Logger at startup

2018-08-27 Thread David Leangen via osgi-dev
Hi Ray, That’s interesting. Thanks for sharing. I think your point of view makes sense: > Logging is an infrastructure detail unlike any other. It really must be > bootstrapped with the runtime as early as possible I still don’t like having to pull in dependencies, though. Doing a quick

Re: [osgi-dev] Service binding order

2018-07-18 Thread David Leangen via osgi-dev
hat should be used to run > callbacks. In this case, for example, you may wish to use an Immediate > executor (available as a static method on PromiseFactory) to ensure that the > callbacks are always run without a thread switch. > > Best Regards, > > Tim > >> On 1

[osgi-dev] Service binding order

2018-07-17 Thread David Leangen via osgi-dev
Hi! I have a component that acts a bit like a whiteboard provider. It looks something like this: public class MyWhiteboard { boolean isActive; @Reference MyExecutor executor; // Required service to execute on an Item @Reference(multiple/dynamic) void bindItem( Item item ) { if

Re: [osgi-dev] Re : Service binding order

2018-07-17 Thread David Leangen via osgi-dev
at if your executor comes before yours items reference in >> the component declaration you have the garantee that the executor will be >> bounded before your items. >> >> Cheers, >> Clément. >> >> >> >> >> Message d'origine --

Re: [osgi-dev] Re : Service binding order

2018-07-17 Thread David Leangen via osgi-dev
tor will be > bounded before your items. > > Cheers, > Clément. > > > > > Message d'origine > On 18 juil. 2018 à 00:16, David Leangen via osgi-dev < osgi-dev@mail.osgi.org > > a écrit : > > > Hi! > > I have a component t

Re: [osgi-dev] Service binding order

2018-07-18 Thread David Leangen via osgi-dev
html>. They really shine in these > ordering issues. > > Kind regards, > > Peter Kriens > > > >> On 18 Jul 2018, at 00:16, David Leangen via osgi-dev > <mailto:osgi-dev@mail.osgi.org>> wrote: >> >> >> Hi! >> >> I ha

Re: [osgi-dev] Functions as configuration

2018-07-16 Thread David Leangen via osgi-dev
version but I did not > have authority. Will try to get that. > > Kind regards, > > Peter Kriens > >> On 16 Jul 2018, at 03:09, David Leangen via osgi-dev > <mailto:osgi-dev@mail.osgi.org>> wrote: >> >> >> Thanks, Peter. That could a

Re: [osgi-dev] Functions as configuration

2018-07-15 Thread David Leangen via osgi-dev
15, 2018, at 1:01, Peter Kriens wrote: > > The v2Archive OSGi enRoute has a Configurer that uses a subset of the bnd > Macro language. This supports ${system;..} and ${system_allow_fail}. These > take shell command lines. > > P > > > >> On 14 Jul 2018,

[osgi-dev] Dealing with bouncing

2018-07-22 Thread David Leangen via osgi-dev
Hi, This may be more of a basic Java question, but I’ll ask it anyway because it relates to “bouncing” and the handling of dynamic behavior. In my @Activate method, I configure my component. Since the configuration may be long-running (data is retrieved remotely), I use a Promise. But, the

Re: [osgi-dev] Dealing with bouncing

2018-07-22 Thread David Leangen via osgi-dev
; init() method that blocks until init is done. However, the delegate has some > nice qualities if you switch more often than just at init. > > Kind regards, > > Peter Kriens > >> On 22 Jul 2018, at 10:35, David Leangen via osgi-dev >> wrote: >> >&g

Re: [osgi-dev] Functions as configuration

2018-07-14 Thread David Leangen via osgi-dev
CR would not police the value object types :-) > -- > > BJ Hargrave > Senior Technical Staff Member, IBM // office: +1 386 848 1781 > OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788 > hargr...@us.ibm.com > > > - Original message - > Fro

Re: [osgi-dev] DS factory-type pattern

2018-07-04 Thread David Leangen via osgi-dev
y repeatedly. The MyServiceFactory is then just a simple type which > instantiates a MyServiceImpl, passing in any necessary backing > services/objects/additional configuration as needed. > > I hope this helps to widen your available options. > > Best Regards, > &g

Re: [osgi-dev] Double config

2018-07-12 Thread David Leangen via osgi-dev
are unfortunately not so urgent :-( > > Kind regards, > > Peter Kriens > > > >> On 12 Jul 2018, at 13:38, David Leangen via osgi-dev > <mailto:osgi-dev@mail.osgi.org>> wrote: >> >> >> As always, thank you VERY much to all of you f

[osgi-dev] Double config

2018-07-11 Thread David Leangen via osgi-dev
Hi! A question about component configuration. I have a component that has a required configuration policy. Using a (pre R7) Configurator to configure the component. For some reason, the Component gets activated, deactivated, then activated again, which is not desirable. Questions: 1. How

Re: [osgi-dev] Double config

2018-07-12 Thread David Leangen via osgi-dev
the bouncing > caused for these kind of components. > > And if you’re asking why I am still on the enRoute classic Configurer. Well, > it has ‘precious’ fields and they solved a nasty problem. We needed to use a > well defined value but if the user set one of those values, we wante

Re: [osgi-dev] DS factory-type pattern

2018-07-09 Thread David Leangen via osgi-dev
>> } >> >> The only addition I had to make was, because there are actually several >> MyServiceFactories that provide different implementations, to add a target >> property to the MyServiceFactory @Reference. (Actually, the target is >> configured in a con

Re: [osgi-dev] DS factory-type pattern

2018-07-09 Thread David Leangen via osgi-dev
. Thanks for pointing this out! Cheers, =David > On Jul 5, 2018, at 7:56, David Leangen via osgi-dev > wrote: > > > Thanks to Dirk, Tim, and Christian for your replies. > > That gives me plenty of options. Some very nice insights. > > Cheers!! > > &g

Re: [osgi-dev] Double config

2018-07-13 Thread David Leangen via osgi-dev
Hi Tim, >> What is a good way to test for robustness against this phenomenon? > > Again, I wish to go on record as saying that bouncing does not mean that > anything is wrong, nor is it intrinsically bad. Thanks. Understood. I did not mean to imply anything about “goodness” or “badness”, but

[osgi-dev] Functions as configuration

2018-07-13 Thread David Leangen via osgi-dev
Hi! Is there any way to include functions as part of a component configuration? Cheers, =David ___ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] enRoute R7

2018-03-11 Thread David Leangen via osgi-dev
Will start another thread so as to not hijack this one any more than I already have. :-) > On Feb 27, 2018, at 5:21, David Leangen via osgi-dev <osgi-dev@mail.osgi.org> > wrote: > > > Hi Tim, > > Great to know that there is an enRoute R7 coming! > > Do y

[osgi-dev] enRoute R7 Development Process (was: enRoute R7)

2018-03-11 Thread David Leangen via osgi-dev
Hi, I am a heavy user of, and minor contributor to enRoute. For that reason, I am interested in understanding the development process a little better. Does anybody have any information about whom I can contact for information about this? Cheers, =David > Hi Tim, > > Great to know that

[osgi-dev] Build issue when wrapping a jar

2018-03-27 Thread David Leangen via osgi-dev
Hi! I have a bnd project that wraps a few jars. It works just fine in Eclipse and for my local gradle build as well. However, when I put it on the build server, it breaks with the following: Warning: Unused Export-Package instructions: [okhttp3*] Warning: Unused Import-Package instructions:

Re: [osgi-dev] Build issue when wrapping a jar

2018-03-27 Thread David Leangen via osgi-dev
} > > Bundle-Name: retrofit > Bundle-Description: \ > Provides an OSGi-ready bundle for retrofit > > Conditional-Package: \ > retrofit2* > > Export-Package: \ > retrofit2*;version=${version.retrofit} > > Import-Package: \

Re: [osgi-dev] Build issue when wrapping a jar

2018-03-27 Thread David Leangen via osgi-dev
; > > -- > > BJ Hargrave > Senior Technical Staff Member, IBM // office: +1 386 848 1781 > OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788 > hargr...@us.ibm.com > > > - Original message - > From: David Leangen via osgi-dev <osgi-dev

Re: [osgi-dev] Build issue when wrapping a jar

2018-03-27 Thread David Leangen via osgi-dev
I probably should have posted this to the bnd group. Please ignore. I will repost there. Thanks! =David > On Mar 27, 2018, at 19:43, David Leangen via osgi-dev > <osgi-dev@mail.osgi.org> wrote: > > > Hi! > > I have a bnd project that wraps a few jars. It

Re: [osgi-dev] Build issue when wrapping a jar

2018-03-27 Thread David Leangen via osgi-dev
:=optional,\ * > On Mar 28, 2018, at 5:08, David Leangen via osgi-dev <osgi-dev@mail.osgi.org> > wrote: > > > Sorry for the noise! For some reason your reply was in my spam box and I did > not see it. > > Will reply a bit later. Thanks for addressing this.

Re: [osgi-dev] enRoute R7 Development Process (was: enRoute R7)

2018-03-21 Thread David Leangen via osgi-dev
back can be > given before work is started. > > Does this answer your question? > > Tim > >> On 11 Mar 2018, at 17:38, David Leangen via osgi-dev <osgi-dev@mail.osgi.org >> <mailto:osgi-dev@mail.osgi.org>> wrote: >> >> >> Hi, &g

Re: [osgi-dev] Servlet Context in OSGi

2018-10-10 Thread David Leangen via osgi-dev
ful), isolation of redirection to named servlets (less useful) and I’m > sure a bunch of other things. > > Tim > > Sent from my iPhone > >> On 9 Oct 2018, at 22:48, David Leangen via osgi-dev >> wrote: >> >> >> Hi! >> >> From what I un

[osgi-dev] Servlet Context in OSGi

2018-10-09 Thread David Leangen via osgi-dev
Hi! From what I understand, ServletContext is not really thought about much in a non-OSGi application because there is basically one ServletContext per app. I never really gave it much thought before. In OSGi, we have more flexibility. So my question: when should I consider using a

Re: [osgi-dev] Questions about R7 Configurator

2019-12-17 Thread David Leangen via osgi-dev
s > also has this functionality built-in. There it's called 'component property > types'. > > Hope this helps, > > David > > On Tue, 17 Dec 2019 at 06:56, David Leangen via osgi-dev > mailto:osgi-dev@mail.osgi.org>> wrote: > > Hi! > > I have a que

[osgi-dev] Questions about R7 Configurator

2019-12-16 Thread David Leangen via osgi-dev
Hi! I have a question about the Configurator spec. I am trying to update from the old enRoute Configurer to the new R7 Configurator. I am not sure what this means: > A convenient way to convert a configuration map to the desired data types is > by using the Converter to convert it to an

[osgi-dev] Library development

2020-05-20 Thread David Leangen via osgi-dev
Hi! What is the best way to prepare a library to OSGi-compatible, but not force the use of OSGi (including forcing transitive dependencies)? The library should be split into api / implementation and offered as a service, but it should be possible for those who do not use OSGi to obtain the

Re: [osgi-dev] Library development

2020-05-20 Thread David Leangen via osgi-dev
Hi Bernd, Thank you, this is good information. Much appreciated. Would you happen to have a link to an example project? Cheers, =David ___ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Library development

2020-05-22 Thread David Leangen via osgi-dev
Thank you all. This has been very helpful. :-) ___ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev