Re: felix:persistentFactoryComponent

2023-04-25 Thread David Jencks
Yes, now that you mention it, that is actually seeming like more of the motivation for the flag than what I originally recalled. In general I think it’s supposed to make the factory-created instances act as much as possible like regular components. David Jencks > On Apr 25, 2023, at 9:05

Re: felix:persistentFactoryComponent

2023-04-25 Thread David Jencks
the created instances are not automatically disposed of. I thought I’d documented all the non-standard behaviors I implemented, but this certainly isn’t in the .md. David Jencks > On Apr 25, 2023, at 6:56 AM, Raymond Augé > wrote: > > Hello all, > > Could someone explain wh

Re: @Component and @AspectService not playing nice

2021-06-16 Thread David Jencks
I’m used to the DS OSGI spec @Component annotation but I guess you are using the DM annotations and not DS? David Jencks > On Jun 16, 2021, at 1:57 PM, Steve Runion > wrote: > > My company has used activators for quite some time, instead of annotations, > due to a perc

Re: SCR duplicating service PIDs

2020-12-02 Thread David Jencks
east their > component name as a service.pid (AFAIC this is one of the most understated > wonders of DS.) What if you’ve specified configuration policy IGNORE? Otherwise, I agree it’s a wonderful feature, although I always preferred configuration policy REQUIRE. David Jencks > > --

Re: FrameworkEvent ERROR org.osgi.framework.ServiceException: Service factory exception: Could not obtain lock

2020-05-08 Thread David Jencks
it’s been quite a few years since I worked on this area…. do you have any circular references between DS components? Sometimes a thread dump is useful in understanding what is going on: I thought DS actually produced one in this situation. David Jencks > On May 8, 2020, at 10:09 AM, raj.

Re: Missing Capability for ComponentFactory service

2019-06-09 Thread David Jencks
a ComponentFactory service for the bundle A. so you should look in the A manifest. I don’t know if this actually works, but it would be a bnd thing, not something felix has any control over. David Jencks > On Jun 9, 2019, at 10:58 AM, Clément Delgrange > wrote: > > Thanks a lot, I should

Re: Running felix container inside another felix container

2018-11-05 Thread David Jencks
constraints on how additional bundles must be deployed that don’t work for you. However, from your description, deploying your solution in a subsystem and exporting the packages and services you want to expose for extension will meet your needs. David Jencks Sent from my iPhone > On Nov 5, 2

Re: how to enable http2 in jetty

2018-10-20 Thread David Jencks
more likely to work correctly with a fat bundle than with spi-fly. These are rather abstract or philosophical arguments, so they may or may not match the reality of using jetty in any particular way. david jencks > On Oct 20, 2018, at 1:20 PM, Eric Norman wrote: > > Carsten a

Re: Constructor injection with multivalue

2018-09-21 Thread David Jencks
could use the new configurator (?name) and put a json file in your bundle with the appropriate configuration. I’m not sure how is determined for activator parameters, you might consult the spec. david jencks > On Sep 21, 2018, at 6:01 PM, David Daniel wrote: > > Thank you David

Re: Constructor injection with multivalue

2018-09-21 Thread David Jencks
. david jencks > On Sep 21, 2018, at 5:16 PM, David Daniel wrote: > > Adding a cardinality did not seem to solve the issue. It appears to be an > issue with the startlevel as stopping and starting the bundle worked and > the only bundle that started before it was added. Is t

Re: Configurator R7 example

2018-07-16 Thread David Jencks
Require” configuration policy for your DS tenant component. Then, when a management agent creates a factory configuration for each tenant, DS will create a corresponding instance of the tenant component. ? Config admin isn’t going to create component instances for you. This is close to nitpicking,

Re: Configurator R7 example

2018-07-13 Thread David Jencks
of the components uses ManagedProperties for this pid and some others use ds config-by-annotation, and ManagedProperties has conflicting info for this pid from config admin, the components will get conflicting configuration. thanks david jencks > On Jul 13, 2018, at 12:09 AM, Martin Nielsen wr

Re: Configurator R7 example

2018-07-12 Thread David Jencks
service. I wonder if you might be able to repackage some of your code as a converter service enabling its’ use in more contexts. thanks! David Jencks > On Jul 12, 2018, at 1:39 PM, Martin Nielsen wrote: > > Hi David > > I started managedproperties before tjat specificati

Re: Configurator R7 example

2018-07-12 Thread David Jencks
Hi Martin, I guess you are the developer of this ManagedProperties? How does it differ in capabilities to the configuration-by-annotation that is built into DS 1.3? thanks david jencks > On Jul 12, 2018, at 10:53 AM, Martin Nielsen wrote: > > Hello everyone > > I saw Ma

Re: How to investigate a "Unsatisfied" reference with felix.scr ?

2018-07-11 Thread David Jencks
using felix ds and that the scr:info command you use actually comes from felix? What is in the “equinox compendium” you mention? Did anyone significantly change how scr:info works? thanks david jencks > On Jul 11, 2018, at 9:51 AM, Cristiano wrote: > > Hi David, thanks for

Re: How to investigate a "Unsatisfied" reference with felix.scr ?

2018-07-09 Thread David Jencks
didn’t work, but I think that was long ago. I certainly used the info provided from the scr command (although in IBM Liberty it shows up elsewhere more easily) to figure out missing references. david jencks > On Jul 9, 2018, at 4:29 PM, Cristiano wrote: > > Hi all, > > Cou

Re: Override Require-Capability in Maven-Bundle-Plugin

2017-12-13 Thread David Jencks
spec so it ought to work fine. Perhaps asking on the Aries list would get better results. David Jencks Sent from my iPhone > On Dec 13, 2017, at 4:19 AM, Kerry <karaf-u...@avionicengineers.com> wrote: > > David, > > Thanks for taking a look. As you and Neil Bartlett have

Re: Override Require-Capability in Maven-Bundle-Plugin

2017-12-12 Thread David Jencks
or not it was present. This makes me wonder even more where the generated headers are coming from any why. david jencks > On Dec 12, 2017, at 2:23 PM, Kerry <karaf-u...@avionicengineers.com> wrote: > > David, > > I quickly tried your suggested POM modification and still generates the >

Re: New to Felix - can someone help explain what this error means (and how to fix it)?

2017-09-06 Thread David Jencks
to correspond to the contents of lib/ you've listed. David Jencks Sent from my iPhone > On Sep 6, 2017, at 12:06 PM, Neil Bartlett <njbartl...@gmail.com> wrote: > > This error message simply says that your bundle imports (that is, it depends > on) the package named “o

Re: Service Factory returned null

2017-07-07 Thread David Jencks
;keep component switch"? Thanks David Jencks Sent from my iPhone > On Jul 7, 2017, at 5:46 AM, Carsten Ziegeler <cziege...@apache.org> wrote: > > I cant tell atm what is going on, but I suggest you to use the latest > Apache Felix SCR Release (org.apache.felix.scr) just

Re: SCR : Unsatisfied ComponentFactory

2017-03-31 Thread David Jencks
eference named Foo you’d have Foo.cardinality.minimum=1. As long as the factory component is enabled the ComponentFactory service will be registered and if you can’t create an instance you might be able to figure out why. david jencks > > Dave > > On Fri, Mar 31, 2017 at 5:12

Re: SCR : Unsatisfied ComponentFactory

2017-03-31 Thread David Jencks
> On Mar 31, 2017, at 1:02 PM, David Jencks <david.a.jen...@gmail.com> wrote: > >> >> On Mar 31, 2017, at 11:03 AM, Dave Smith <dave.sm...@candata.com >> <mailto:dave.sm...@candata.com>> wrote: >> >> See below >> >> On Fr

Re: SCR : Unsatisfied ComponentFactory

2017-03-31 Thread David Jencks
> On Mar 31, 2017, at 11:03 AM, Dave Smith <dave.sm...@candata.com> wrote: > > See below > > On Fri, Mar 31, 2017 at 1:51 PM, David Jencks <david.a.jen...@gmail.com > <mailto:david.a.jen...@gmail.com>> > wrote: > >> I think scr:info sho

Re: Using OSGi DS and old Apache Felix SCR together

2017-03-16 Thread David Jencks
will never be able to get the xml’s in time for unit tests. I don’t know if integration tests (failsafe plugin) run before or after the bundle is assembled, but I think after, so perhaps that would be worth looking into. david jencks > On Mar 16, 2017, at 2:09 AM, Stefan Seifert <sseif.

Re: How to compile classes in different packages ?

2017-03-12 Thread David Jencks
to the service you want to use. hope this helps david jencks > On Mar 12, 2017, at 1:13 PM, Dorian Vegara <dorian.veg...@gmail.com> wrote: > > Hello to everyone, > > > I wrote three bundles : a provider (providing a service|A|), a client > (containing one `BundleActivato

Re: [osgi-dev] Components are not started,although marked with immediate=true

2017-02-17 Thread David Jencks
, the “Configuration” section explains this accurately. thanks david jencks > On Feb 17, 2017, at 3:07 PM, Neil Bartlett <njbartl...@gmail.com> wrote: > > Normally it’s enough to have a Log Service bundle installed, such as > org.apache.felix.log. Then you can view messages with

Re: [osgi-dev] Components are not started,although marked with immediate=true

2017-02-17 Thread David Jencks
in excruciating detail what is happening. hope this helps, if it’s not exceptions please supply debug logs and i will take a look. david jencks > On Feb 17, 2017, at 12:36 PM, Thomas Driessen <thomas.driessen...@gmail.com> > wrote: > > After asking in the osgi-dev list in was

Re: DS 1.3 Components from different bundle using same configurationPid are not all updated

2017-01-11 Thread David Jencks
in config admin. I’m not sure if it’s released yet. david jencks > On Jan 11, 2017, at 1:31 AM, Christian Wolf <christian.wol...@gmail.com> > wrote: > > Hi, > > As Carsten suggested in a previous email, I moved to scr 2.0.6. It is > working fine. I don't have any probl

Re: Config admin: when do the CM_UPDATED, CM_DELETED events actually get called?

2017-01-09 Thread David Jencks
I’m not sure if my suggestion would continue to work i R7 due to coordination support. david jencks > On Jan 9, 2017, at 11:46 AM, David Jencks <david.a.jen...@gmail.com> wrote: > > Felix DS runs off the configuration events too, so just waiting for the > events isn’t

Re: DS 1.3 Components from different bundle using same configurationPid are not all updated

2017-01-09 Thread David Jencks
the first bundle to start wins and no other bundle uses the configuration. david jencks > On Jan 9, 2017, at 8:17 AM, Christian Wolf <christian.wol...@gmail.com> wrote: > > Hi, > > I did more tests and I noticed the following behavior with karaf 4.0.8 and > scr 2.0

Re: Config admin: when do the CM_UPDATED, CM_DELETED events actually get called?

2017-01-09 Thread David Jencks
after DS, the configuration event is processed synchronously by DS. hope this helps david jencks > On Jan 9, 2017, at 9:01 AM, Tom Quarendon > <tom.quaren...@worldprogramming.com> wrote: > > I'm trying to use the CM_UPDATED and CM_DELETED config admin events in a test &

Re: SCR: Issues with static reference mixed with multiple dynamic ref

2016-11-28 Thread David Jencks
, which will result in the UPDATE fieldOption? thanks david jencks > On Nov 28, 2016, at 2:51 PM, Roy Teeuwen <r...@teeuwen.be> wrote: > > Hey, > > Maybe I should start making a new thread for this hehe :). Not sure if this > is a bug or if I'm just using it incorrect

Re: SCR: Issues with static reference mixed with multiple dynamic ref

2016-11-28 Thread David Jencks
the service type very well, and I’m not sure anyone has tested with the <> “diamond” notation (although I can’t imagine how this could mess anything up). thanks david jencks > On Nov 28, 2016, at 12:33 PM, Roy Teeuwen <r...@teeuwen.be> wrote: > > Hey Karel, > > Sorry to g

Re: OSGi and ObjectInputStream.readObject() deserialization classloading

2016-11-03 Thread David Jencks
involved in recently spent a lot of time rewriting their ObjectInputStreams to whitelist allowable classes. One approach I have used is for a bundle with classes that need to be deserialized to register those class names together with the bundle with the class loading apparatus. david jencks

Re: Unhappy log message from felix DS/CM, what is is trying to tell me?

2016-10-08 Thread David Jencks
david jencks > On Oct 7, 2016, at 7:30 AM, Benson Margulies <ben...@basistech.com> wrote: > > What is this about? I have DS and CM in my container. > > [java] ERROR: Cannot create MetaType providing ManagedService; > not providing Metatype information but just

Re: setting the objectclassdefinition from felix file install

2016-10-03 Thread David Jencks
, or explicitly specified pid Hook the component and OCD together using either @Designate or specifying pid in @ObjectClassDefinition, but not both Make sure the file name matches the pid. david jencks > On Oct 3, 2016, at 10:38 AM, Raymond Auge <raymond.a...@liferay.com> wrote: >

Re: OSGi Declarative Services

2016-10-02 Thread David Jencks
Yes :-) I think you’ll like it…. I did :-) david jencks > On Oct 2, 2016, at 2:56 PM, Roy Teeuwen <r...@teeuwen.be> wrote: > > Hey Neil, > > Thanks, I guess I have to use ObjectClassDefinition and AttributeDefinition > annotations then :) > > Greets > Roy

Re: Does SCR have to start before the bundles with services?

2016-09-29 Thread David Jencks
Neither this nor restarting the framework should cause problems. Can you come up with a self contained demonstration of this (no components) behavior? I vaguely recall someone having a similar problem that I couldn’t reproduce. thanks david jencks > On Sep 28, 2016, at 8:50 AM, Ben

Re: Does SCR have to start before the bundles with services?

2016-09-28 Thread David Jencks
It should work in any order. david jencks > On Sep 28, 2016, at 8:28 AM, Benson Margulies <ben...@basistech.com> wrote: > > I'm trying to retrofit SCR/DS into a very dumb application that loads > some bundles and starts the framework. Everything is at the same start > leve

Re: JNI, classloaders, framework shutdown

2016-09-17 Thread David Jencks
Ah, I didn’t read your first post closely enough….. IIUC your code is loading the native library, you are not using OSGI native code support? Can you modify things to use OSGI native code support? david jencks > On Sep 17, 2016, at 4:16 PM, Benson Margulies <ben...@basistech.com&

Re: Prop expansion via fileinstall but not configuration admin

2016-09-17 Thread David Jencks
the persistence is encoding the value somehow. thanks david jencks > On Sep 17, 2016, at 9:59 AM, Benson Margulies <ben...@basistech.com> wrote: > > I could commit this test, which fails, if you like, with an @Ignore. > > > public class InvalidFileSyntaxTest { >private

Re: Prop expansion via fileinstall but not configuration admin

2016-09-17 Thread David Jencks
{x} syntax long before a plugin would get a > chance to modify the dictionary contents, or so I thought. I’ve been assuming you only want to put the ${xxx} in values, where I’d expect it to be a fine persistable value…. you weren’t using it as a key were you (where it won’t work AFAIK)?

Re: Prop expansion via fileinstall but not configuration admin

2016-09-16 Thread David Jencks
are using instead of fileinstall. Maybe others have other opinions…. david jencks > On Sep 16, 2016, at 5:47 PM, Benson Margulies <ben...@basistech.com> wrote: > > The system property expansion feature of the configuration-admin > behavior of fileinstall is quite conven

Re: CM and DS logging interpretation

2016-09-16 Thread David Jencks
description. Is there a config admin gogo command to show you all the configurations it found? david jencks > On Sep 16, 2016, at 7:37 AM, Benson Margulies <ben...@basistech.com> wrote: > > I need some help interpreting the logging from DS and CM, if someone > could be kind eno

Re: DM4 service factory/multiple service instance support

2016-08-24 Thread David Jencks
you look up the service, not the service it’s a factory for. DS already registers a ServiceFactory for each component. Hopefully someone who actually knows something about DM will speak up soon :-) david jencks > On Aug 24, 2016, at 5:54 PM, Raymond Auge <raymond.a...@liferay.com&

Re: DM4 service factory/multiple service instance support

2016-08-24 Thread David Jencks
I think he wants something like DS’s prototype scope in DependencyManager 4….. I don’t know if it’s available. david jencks > On Aug 24, 2016, at 12:02 PM, Raymond Auge <raymond.a...@liferay.com> wrote: > > On Wed, Aug 24, 2016 at 2:17 PM, mduduzik <mdudu

Re: DM4 service factory/multiple service instance support

2016-08-24 Thread David Jencks
). thanks david jencks > On Aug 24, 2016, at 11:17 AM, mduduzik <mduduzi.ke...@gmail.com> wrote: > > I would like to create and new instance of component for every service > request. I believe by default a component is a singleton - i.e. the same > instance will be retur

Re: Bundles needed to use DS/SCR

2016-08-10 Thread David Jencks
the configuration to that one bundle. “?” lets all bundles see the configuration. david jencks > On Aug 10, 2016, at 8:29 AM, Benson Margulies <ben...@basistech.com> wrote: > > Configuration-wise, I have the following code. Logging-wise, I have > pax-exam installing logging,

Re: Bundles needed to use DS/SCR

2016-08-10 Thread David Jencks
> Configuration Policy: require > (No Component Configurations) You need a configuration or change the configuration policy. Is your minimal container so minimal that it doesn’t include a log service or something to collect messages from it? david jencks > On Aug 10, 2016, at 8:14 A

Re: Cannot use configuration pid ... for bundle XX because it belongs to bundle YY

2016-08-10 Thread David Jencks
ration. david jencks > On Aug 10, 2016, at 7:36 AM, Raymond Auge <raymond.a...@liferay.com> wrote: > > Carsten, are you sure about null and not the literal string "?" > > - Ray > > On Wed, Aug 10, 2016 at 9:57 AM, Carsten Ziegeler <cziege...@apache.org> >

Re: Logging uncaught exceptions?

2016-08-04 Thread David Jencks
. thanks david jencks > On Aug 4, 2016, at 12:29 PM, list+org.apache.fe...@io7m.com wrote: > > Hello. > > I have a simple declarative service such as: > > --8<-- > @Component(immediate = true) > public final class Speaker implements SpeakerType > { > public Sp

Re: doubt about component DS 1.3 with scope Prototype and ConfigurationPolicy.REQUIRE

2016-06-27 Thread David Jencks
the ServiceObjects interface you can get as many instances as you want. There’s also stuff you can now do with multiple pids but maybe the above is enough for now…. hope this helps david jencks > On Jun 27, 2016, at 3:32 PM, Cristiano Gavião <cvgav...@gmail.com> wrote: > > Sorry, my mista

Re: doubt about component DS 1.3 with scope Prototype and ConfigurationPolicy.REQUIRE

2016-06-27 Thread David Jencks
without a user either unless you specify immediate=true as well. I generally don’t specify enabled=true since that is the default value. david jencks > On Jun 27, 2016, at 2:42 PM, Cristiano Gavião <cvgav...@gmail.com> wrote: > > Hello, > > I'm facing a situation that I'm n

Re: Same private service in different bundles

2016-06-17 Thread David Jencks
xml using bnd, so you’d get the same one everywhere. More flexibly, you can specify the component properties in a property file, using the @Component properties member. You can put properties files with the same name and location but different contents in each bundle. david jencks > On

Re: Managing transactions in iPOJO or OSGi component

2016-05-25 Thread David Jencks
these transactions to have? thanks david jencks > On May 25, 2016, at 1:23 PM, tho huynh ngoc <ngocthob...@gmail.com> wrote: > > Hi, > > > I define a transaction is a set of continuous activities (one method or set > of methods) in a component. > > I wrote a simple e

Re: OSGi R6/DS 1.3 + Felix + Bnd: Interfaces in Component Lifecycle methods

2016-05-22 Thread David Jencks
more or less ready. I have to investigate whether the nested object key encoding scheme implemented in DS can be added to a spec converter using an adapter. Meanwhile, can you use an array? thanks david jencks > On May 22, 2016, at 9:59 AM, David Jencks <david_jen...@yahoo.com.I

Re: OSGi R6/DS 1.3 + Felix + Bnd: Interfaces in Component Lifecycle methods

2016-05-22 Thread David Jencks
types for 2.0.4. I need to consult the draft object conversion spec to see what might be reasonable. thanks david jencks > On May 22, 2016, at 4:54 AM, Steven Walters <kemu...@gmail.com> wrote: > > On Sun, May 22, 2016 at 4:24 PM, David Jencks > <david_jen...@yahoo.com.inva

Re: OSGi R6/DS 1.3 + Felix + Bnd: Interfaces in Component Lifecycle methods

2016-05-22 Thread David Jencks
or use both metatype and config admin and specify then in the metatype defaultValue. Hope this helps david jencks > On May 21, 2016, at 9:51 PM, Steven Walters <kemu...@gmail.com> wrote: > > I've found that Felix appears to have an extension to the OSGi R6/DS > 1.3 specifi

Re: DS: invalid/alarmist circular reference log

2016-05-12 Thread David Jencks
Can you verify that your case is the same as Victor’s? All the circular references I encounter work fine, if there are 2 different broken cases that would be good to know when investigating Victor’s case. thanks david jencks > On May 12, 2016, at 2:58 AM, Ferry Huberts <maili...@hup

Re: [SCR] Selecting services without giving a service interface

2016-04-09 Thread David Jencks
the > BundleContext because there is no way to have dynamic objectclasses for > provided services in DS or do I miss someting? > > Have a nice weekend. > > Best regards, > Jens > > > Gesendet: Freitag, 08. April 2016 um 17:29 Uhr > Von: "David Jencks"

Re: [SCR] Selecting services without giving a service interface

2016-04-08 Thread David Jencks
concerns about interference between specifying something with the spec anno and the custom anno so I gave up. However this might be worth revisiting. It might look like @Component @ExtraService(FooProvider.class) public class FooProviderChildImpl implements FooProviderChild {…} david jencks

Re: Multiple component instances in DS 1.3

2016-04-08 Thread David Jencks
helps…. david jencks > On Apr 8, 2016, at 12:57 AM, Jens Offenbach <wolle5...@gmx.de> wrote: > > Hallo, > I am making intensive use of the DS pattern that allows us to couple a single > configuration to a single component instance using a Managed Service Factory > P

Re: [SCR] Selecting services without giving a service interface

2016-04-08 Thread David Jencks
the references? thanks david jencks > On Apr 8, 2016, at 6:23 AM, Simon Chemouil <schemo...@gmail.com> wrote: > > Hi, > > For the record I have had the same need as Jens in the past. As Neil > suggested, I ended up using a ServiceTracker but this is a pity. > >

Re: Updating org.apache.felix.scr from 1.8.2 to 2.0.2 breaks injection of service

2016-03-23 Thread David Jencks
Felix scr version >= 2 requires an R6 framework, which exports the dto package at version 1.0.0. There have been at least one request to provide a version that runs on R5 frameworks, but I haven’t had time to set that up. thanks david jencks > On Mar 23, 2016, at 2:51 PM, d...@beye

Re: maven-scr-plugin and DS 1.3 annotations not working

2016-03-22 Thread David Jencks
I’m not certain how the maven-bundle-plugin is set up, but with bnd by itself the default is dsannotatios and metatypeannotations are *, so I’d be surprised if you have to specify them in the instructions here. david jencks > On Mar 22, 2016, at 12:18 AM, Jens Offenbach <wolle5...@

Re: SCR: Sometimes component gets instantiated twice

2016-03-09 Thread David Jencks
Can you check if this still happens with trunk? I recently fixed https://issues.apache.org/jira/browse/FELIX-5194 <https://issues.apache.org/jira/browse/FELIX-5194> which is a race condition on component startup between querying config admin and getting the initial configuration event.

Re: ComponentException: Field value type must not be set for unary field references.

2016-01-22 Thread David Jencks
will bind, and want them all before the component starts, you can use the .cardinality.minimum property to specify how many services to bind must be available before the component is satisfied and activates. thanks david jencks > On Jan 22, 2016, at 11:22 AM, b...@petinou.fr wrote: > > One l

Re: ComponentException: Field value type must not be set for unary field references.

2016-01-22 Thread David Jencks
um, multiple and dynamic is greedy anyway, so you don’t need to specify it explicitly. multiple and static requires specifying greedy explicitly to get the greedy behavior. Other than that, I think your explanation is correct. david jencks > On Jan 22, 2016, at 7:20 AM, Raymond A

Re: ComponentException: Field value type must not be set for unary field references.

2016-01-12 Thread David Jencks
Yes, this is a better place to ask :-) I don’t see what’s wrong by just looking, I’m hoping to have enough time shortly to try your code, unless someone else gets there first. thanks david jencks > On Jan 12, 2016, at 11:02 PM, b...@petinou.fr wrote: > > Hi everyone, &g

Re: scr:info missing info

2015-12-03 Thread David Jencks
model. I haven’t been able to figure out improvements to what is there that actually seem to me to provide more information without being very redundant and more confusing. Maybe you will have better luck. thanks david jencks > On Dec 3, 2015, at 8:19 AM, Raymond Auge <raymond

Re: scr:info missing info

2015-12-03 Thread David Jencks
well, to me it did state that quite plainly: >>>> Configuration Policy: require I look forward to your suggestions. thanks david jencks > On Dec 3, 2015, at 9:12 AM, Raymond Auge <raymond.a...@liferay.com> wrote: > > The point is that it took me and a techni

Re: scr:info missing info

2015-12-03 Thread David Jencks
It looks pretty blatant to me that the reason there are no component configurations is that there is no CA configuration. What kind of notification do you want? thanks david jencks > On Dec 3, 2015, at 7:57 AM, Raymond Auge <raymond.a...@liferay.com> wrote: > > Hey all

Re: scr:info missing info

2015-12-03 Thread David Jencks
more or less solved by Ray’s request…. although it turns out you can’t tell whether the component description is enabled or disabled, so you can’t distinguish between missing configuration and disabled. thanks david jencks > On Dec 3, 2015, at 2:14 PM, Neil Bartlett <njbartl...@gmail.com&

Re: scr:info missing info

2015-12-03 Thread David Jencks
Since the Component Configuration: header appears for each component configuration, I might prefer … (No Component Configuration) I think I’d leave this out when the component is disabled as an additional clue about the state. WDYT? thanks david jencks > On Dec 3, 2015, at 9:50 AM, Raym

Re: DRY for DS?

2015-11-17 Thread David Jencks
nonstandard == not in the DS 1.3 spec. These options are only supported by bnd, but I don’t really foresee anyone else writing a ds annotation processing tool. Do you? thanks david jencks > On Nov 17, 2015, at 2:47 PM, Benson Margulies <ben...@basistech.com> wrote: > > On Tu

Re: DRY for DS?

2015-11-17 Thread David Jencks
sure you can -dsannotations-options=inherit not spec yet, but maybe we can eventually twist some arms :-) I really recommend only doing this if all the classes with annotations are in the same bundle. david jencks > On Nov 17, 2015, at 1:00 PM, Benson Margulies <ben...@basistech.com&

Re: DRY for DS?

2015-11-17 Thread David Jencks
is that (1) allowing this for classes where all the annotated superclasses are in the same bundle is completely safe (2) in any case it is just as safe as the service-component header method. So I’d be in favor of lobbying that the 1.4 ds spec allow at least case (1). david jencks > On Nov

Re: Aries Subsystems using Repository

2015-10-10 Thread David Jencks
If you use bnd3 these Provide-Capability/Require-Capability headers should be generated for you from the DS info. david jencks > On Oct 10, 2015, at 8:55 AM, Paul F Fraser <pa...@a2zliving.com> wrote: > > On 10/10/2015 10:17 PM, John Ross wrote: >> I'm not sure if this

Re: scr:details reports greedy as static with karaf 4.0.1

2015-10-01 Thread David Jencks
Well, that’s not too surprising because your reference is indeed static (the default). Whatever is producing this report apparently doesn’t know about the policy option so isn’t reporting it. david jencks > On Oct 1, 2015, at 7:54 PM, Benson Margulies <ben...@basistech.com> wrote:

Re: How to 'let the dust settle' with DS?

2015-09-08 Thread David Jencks
. You need to include a lot more information about exactly what your components look like and the circumstances around the behavior you report to assign a specific cause to it. thanks david jencks > On Sep 8, 2015, at 1:23 PM, Benson Margulies <ben...@basistech.com> wrote: > >

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread David Jencks
for this purpose. There’s no guarantee that a bundle starting will start all the DS services it provides. They might have all sorts of unsatisfied dependencies….. such as missing configurations. Let me know if this guess is a total miss :-) thanks david jencks > On Sep 7, 2015, at 10:52

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread David Jencks
to tell cxf. A pretty simple example of how to do this is in the aries imx jmx-whiteboard project, which is more complicated than you would need since it has to deal with multiple MBean servers whereas I think you would have only one cxf. thanks david jencks > On Sep 7, 2015, at 12:46

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread David Jencks
and not be immediate, then it won’t be activated until someone needs it and will pick up however many are then available, even without the cardinality set. david jencks > On Sep 7, 2015, at 11:46 AM, Neil Bartlett <njbartl...@gmail.com> wrote: > > Just to add a bit of detail… &

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread David Jencks
> On Sep 7, 2015, at 5:06 PM, Benson Margulies <ben...@basistech.com > <mailto:ben...@basistech.com>> wrote: > > On Mon, Sep 7, 2015 at 4:07 PM, David Jencks > <david_jen...@yahoo.com.invalid <mailto:david_jen...@yahoo.com.invalid>> > wrote: >

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread David Jencks
nt past I think that an exception on activation did something like disabling the component. Due to all the cool new 1.3 features you should use the latest release 2.0 but the previous release may have also had the cardinality.minimum support… but don’t quote me :-) thanks david jen

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread David Jencks
strength available but to me it has the feel of logic programming. thanks david jencks > On Sep 7, 2015, at 2:55 PM, Benson Margulies <ben...@basistech.com> wrote: > > I think I now understand what I have failed to explain here (and I > probably know why my service is ac

Re: Managing gogo command order

2015-08-30 Thread David Jencks
forgot the magic words in the commit again, could you close the pull request? thanks david jencks On Aug 22, 2015, at 12:38 PM, Benson Margulies ben...@basistech.com wrote: Oh, and I submitted two more JIRAs with PR's for gogo. On Sat, Aug 22, 2015 at 12:36 PM, Benson Margulies ben

Re: Managing gogo command order

2015-08-22 Thread David Jencks
to a branch in my github felix clone and then cherry-pick from there? I’d expect that would reduce a combinatorial explosion of remote branches as more people supplied patches on github. I didn’t see 4970 yet… thanks david jencks On Aug 22, 2015, at 7:36 AM, Benson Margulies ben...@basistech.com

Re: Managing gogo command order

2015-08-21 Thread David Jencks
bundle, so the wiring info works even when regions/framework hooks are present. thanks david jencks On Aug 21, 2015, at 5:15 PM, Benson Margulies ben...@basistech.com wrote: Derek, Thanks, that did it. I've got an outstanding PR for some fixes in gogo, could I perhaps interest you in having

Re: Enterprise business domain using DS - is it good idea?

2015-07-20 Thread David Jencks
there may be different considerations for your use. thanks david jencks On Jul 20, 2015, at 9:17 AM, Alex Sviridov ooo_satu...@mail.ru wrote: Hello, Christian. Thank you very much for detailed answers and great tutorial! I have one question - Does blueprint support scopes - I need new instance

Re: Is this mailing-list dead?

2015-07-16 Thread David Jencks
integration. DS component factories as specced are almost useless IMO and are certainly not the solution you want to try here. Why do you need to use CDI? If you are writing an OSGI based application I would look into simply using DS for all components. thanks david jencks On Jul 16, 2015, at 11:41 AM

Re: DS - component per service

2015-04-24 Thread David Jencks
. they get the same ref for each per-service instance) then these can be provided as DS references in this DS component. I agree that using ServiceTracker in this way is reasonable and simpler than only using DS. thanks david jencks On Apr 24, 2015, at 12:05 PM, Neil Bartlett njbartl...@gmail.com

Re: DS property replacement?

2015-03-09 Thread David Jencks
to? thanks david jencks On Mar 9, 2015, at 11:10 AM, Raymond Auge raymond.a...@liferay.com wrote: In fact, I would be satisfied it there were placeholders ONLY for the service properties which can only be known at runtime. On Mon, Mar 9, 2015 at 11:07 AM, Raymond Auge raymond.a...@liferay.com

Re: metatype extension

2015-03-03 Thread David Jencks
into the metatype xml. The proprietary metatype framework I work with uses the pid of the target configuration for foreign key references. thanks david jencks On Mar 3, 2015, at 2:29 PM, Raymond Auge raymond.a...@liferay.com wrote: Some searching lead to another request for something like

Re: OSGi Declarative Services dependency on a generic supertype

2015-02-05 Thread David Jencks
in the philosophy behind DS which is unlikely to happen any time soon. Having dealt with annotation processing for javaee I cannot express how strongly I am against runtime annotation processing for DS. thanks david jencks On Feb 5, 2015, at 3:41 PM, Milen Dyankov milendyan...@gmail.com wrote: So

Re: OSGi Declarative Services dependency on a generic supertype

2015-02-05 Thread David Jencks
to not use the default. To understand what the component exposes you would also have to try to figure out what the bundle exports, which is not obvious from the component class itself. thanks david jencks On Feb 5, 2015, at 1:06 PM, Pawel Pogorzelski pawel.pogorzels...@gmail.com wrote

Re: OSGi Declarative Services dependency on a generic supertype

2015-02-05 Thread David Jencks
as there would be no way to specify service properties in order to distinguish different instances. It would certainly interfere with any existing component model such as DS or blueprint and probably with any attempt to register a service in code. david jencks On Feb 5, 2015, at 2:37 PM, Milen

Re: OSGi Declarative Services dependency on a generic supertype

2015-02-05 Thread David Jencks
class you actually want to be a real live button with @Component so DS knows enough to create one, you could write an extension processor that would find your @AutoRegister annotation on the interface in the inheritance hierarchy and add it to the exposed services. thanks david jencks On Feb 5

Re: Loading a class from a different bundle dynamically

2014-12-12 Thread David Jencks
test would be a stretch). david jencks On Dec 12, 2014, at 9:31 AM, Achim Nierbeck bcanh...@googlemail.com wrote: Dynamic Import? Add a manifest header or dynamically importing your testclass in case it's available, but I would actually work with a service tracker that waits

Re: memory mapping, bundle resources

2014-12-12 Thread David Jencks
If there was (I don't think there is), since the bundle is normally a zip file, it would expect that would mean that the framework was copying the zip entry into a file, so I don't see how you would be gaining anything time-wise, perhaps just a tiny bit less code? david jencks On Dec 12, 2014

  1   2   >