Re:

2021-11-04 Thread David Jencks
as minimum 1 (or however many are expected), so it’s mandatory. If a product doesn’t include the service, it sets the cardinality 0, so it’s optional. David Jencks > On Nov 4, 2021, at 3:40 AM, JB Onofré wrote: > > Hi > > Why not using a whiteboard pattern. You can have kin

Re: Data isolation between Karaf bundles/features: how to achieve?

2021-10-10 Thread David Jencks
usually better to find a way to avoid XA, such as sending idempotent messages. David Jencks > On Oct 10, 2021, at 11:37 AM, jgfrm wrote: > > Suppose the following case: > > - there is a Person bundle, responsible of managing persons > - there is a Department bundle, repo

Re: Possible to get config on first component startup?

2020-09-21 Thread David Jencks
is not very helpful, but you may be in one of the cases where it’s useful. David Jencks > On Sep 21, 2020, at 10:55 AM, Steinar Bang wrote: > >>>>>> Francois Papon : > >> Hi, >> May be you can try with: > >> @Component(immediate = true, conf

Re: Is it possible to activate a DS component only when an HTTP request is completed?

2020-08-29 Thread David Jencks
, please, to not delay other startup) and if successful register the preHook service “by hand”. David Jencks > On Aug 29, 2020, at 9:41 AM, Steinar Bang wrote: > > Is it possible to have a DS component to only go active when an HTTP > request is successfully completed? > > H

Re: Wordpress-like plugin functionality

2019-09-26 Thread David Jencks
How does what you want relate to http whiteboard? David Jencks Sent from my iPhone > On Sep 26, 2019, at 2:40 AM, Julian Feinauer > wrote: > > Hi Jaap, > > I am also fairly new to karaf but I know some internal applications that do > exactly that. Basically

Re: Can I set a timeout for Component activation

2019-08-29 Thread David Jencks
for this but I don’t know what it does. David Jencks Sent from my iPhone > On Aug 29, 2019, at 4:44 AM, Kamil Paśko wrote: > > Dear Karaf users, > > Is it possible to set a timeout for Component activation? > Let’s say: If Component’s references are not satisfied

Re: Authentication with configuration: BundlevsDeclarativeService?

2019-08-23 Thread David Jencks
r bundle which, in its bundle activator, tries remote authentication and shuts down if it fails. If the configuration disappears, the component deactivate method can stop the other bundle. David Jencks > > Kind regards, > Kamil > > > Od: David Jencks <mailto:david.a.jen...@gmail.

Re: ODP: ODP: Authentication with configuration: Bundle vsDeclarativeService?

2019-08-23 Thread David Jencks
services availability. I don’t recall ever finding a situation where restarting a bundle was a reasonable response. I may not understand your situation... David Jencks Sent from my iPhone > On Aug 23, 2019, at 4:43 AM, Kamil Paśko wrote: > > @David, > > Thank you for your a

Re: ODP: Authentication with configuration: Bundle vs DeclarativeService?

2019-08-19 Thread David Jencks
a ManagedService as a DS component that authenticates and if successful creates the actual service. David Jencks Sent from my iPhone > On Aug 19, 2019, at 5:21 AM, Kamil Paśko wrote: > > I see that my examples where trimmed. So I send them once again: > > I have a case with three require

Re: Bug or missing configuration?

2019-07-23 Thread David Jencks
How do you build your bundle? Does it explicitly import the package of the missing class? (it needs to) David Jencks > On Jul 23, 2019, at 11:33 AM, djawaica wrote: > > Hello together, > > I try to explain my problem as short as possible. > >

Re: Which karaf concept is used in JMXCollector to dynamically add harvester per config file

2019-06-21 Thread David Jencks
uses the same words in a different order so I think being very careful or perhaps pedantic about terminology, while annoying to write:-) is worth the time. Thanks David Jencks Sent from my iPhone > On Jun 21, 2019, at 12:13 AM, Jean-Baptiste Onofré wrote: > > Hi, > &

Re: Fine-grained control of service dependencies, constraints and capabilities in OSGi r6 (or r7)

2019-06-03 Thread David Jencks
I don’t understand most of the question but wonder if you are looking for the capabilities of Declarative Services, especially reference target filters, perhaps configured via Configuration Admin. David Jencks Sent from my iPhone > On Jun 3, 2019, at 1:24 AM, Jean-Baptiste Onofré wr

Re: Service Sisibility

2019-05-15 Thread David Jencks
this helps David Jencks > On May 15, 2019, at 10:28 AM, Markus Rathgeb wrote: > > Hi Tim, > > can you point me to the part of the spec that states that service > configuration properties can be used to set such fields (e.g. target filter)? > I just know that it works ;) >

Re: How to prevent Declarative Service activation

2019-04-14 Thread David Jencks
Please distinguish between the state of a bundle and the state of a DS component. I suggest that you have one (new) component, always enabled, that enables the other components if appropriate. The DS model is not designed for components to control their own state or existence. David Jencks

Re: AW: AW: AW: AW: ComponentFactory

2019-03-26 Thread David Jencks
a multivalued reference of type MyInterface. What do you need that this doesn’t provide? Thanks David Jencks Sent from my iPhone > On Mar 26, 2019, at 1:21 AM, Matthias Leinweber > wrote: > > Hi JB, > > yes but until i created one there is nothing to iterate/find. >

Re: ComponentFactory

2019-03-25 Thread David Jencks
instances. Since it’s all the same component code, why are different factoryPids useful rather than some other configuration element? thanks david jencks > On Mar 25, 2019, at 12:01 PM, Matthias Leinweber > wrote: > > ... i can iterate over "my" servicefactories. > &

Re: @Reference(service = MyApi.class) is not re-populated

2019-03-07 Thread David Jencks
method to update the field yourself. The modified method is called when the configuration for a component is changed, and an updated method is called when the configuration for the reference is changed; I do t think you’ve mentioned any of your comments using configuration. David Jencks Sent

Re: @Reference(service = MyApi.class) is not re-populated

2019-03-06 Thread David Jencks
instance will be deactivated, recreated, and activated with the new set of references. David Jencks > On Mar 6, 2019, at 7:48 PM, Xtra Coder wrote: > > I'm trying to use Declarative Services as outlined here > https://blog.osgi.org/2018/03/osgi-r7-highlights-declarative-services.html

Re: Netty with Karaf/Camel

2018-12-28 Thread David Jencks
david jencks > On Dec 28, 2018, at 12:57 PM, Ranx wrote: > > The Camel Netty component permits it to be used in Camel routes (I've pasted > the configuration class below for illustration). In the case of the shared > configuration and HTTP server in an OSGi context, the server

Re: Netty with Karaf/Camel

2018-12-28 Thread David Jencks
the camel netty component. Does the camel netty component add anything useful to netty? thanks david jencks > On Dec 28, 2018, at 9:53 AM, Ranx wrote: > > David, > > Thanks for the feedback. > > DS doesn't really provide what I'm after here. It still requires a PID

Re: Netty with Karaf/Camel

2018-12-27 Thread David Jencks
I’m biased but I would use DS to expose Netty as a service (with factory configurations). I don’t know much about Netty but I’d think the ideal location would be there. David Jencks > On Dec 27, 2018, at 3:17 PM, Ranx wrote: > > I've been kicking the tires on Fuse 7 and took at Cam

Re: Aries

2018-11-27 Thread David Jencks
it with a feature subsystem? Thanks David Jencks Sent from my iPhone > On Nov 27, 2018, at 11:27 AM, Leschke, Scott wrote: > > I was wondering if there is a possibility that the Aries project would > provide OSGi Feature Subsystems for each of the OSGi services they’ve &

Re: Startup timing Windows vs. Mac

2018-11-21 Thread David Jencks
A possible reason could be lots of DS services with greedy optional static dependencies started in different orders on the two OSs. If a service with such a reference is started first, it will get restarted every time a target service for the reference is started. David Jencks Sent from my

Re: Blueprint, DS and CDI State of the Art...

2018-11-20 Thread David Jencks
As I noted previously the OSGI CDI reference implementation is at Apache Aries and I believe differs significantly from Guillaume’s implementation in philosophy. David Jencks Sent from my iPhone > On Nov 20, 2018, at 10:14 AM, Ranx wrote: > > It appears that Fuse 7 is supportin

Re: Blueprint, DS and CDI State of the Art...

2018-10-17 Thread David Jencks
to distract from the benefits of an OSGI service model; IMO there’s a big impedance mismatch between the mental models of blueprint and OSGI services making it hard to smoothly flow into creating well designed services. I have no experience or opinion about the CDI approaches. David Jencks

Re: Resolving a type from a wrapped jar file

2018-09-09 Thread David Jencks
the neo4j jars completely unmodified, but contained in an appropriate osgi environment (completely hidden inside the bundle). -conditionalpackage is a considerably more sophisticated approach, if you are comfortable with the licensing implications. thanks david jencks > On Sep 9, 2018, at 4

Re: Resolving a type from a wrapped jar file

2018-09-09 Thread David Jencks
; such a script would just be something that puts neo4j jars in a particular place in a production system. David Jencks > On Sep 9, 2018, at 12:35 PM, Steinar Bang wrote: > >>>>>> Jean-Baptiste Onofré : > >> why you don't just put this as private package

Re: execute only at first startup?

2018-06-08 Thread David Jencks
ing)> you could put the logic in a bundle activator or possibly in a DS component activate method. Create a file in the bundle private data area when the initialization completes and check for its existence before the initialization. David Jencks > On Jun 7, 2018, at 10:56 PM, Christian

Re: execute only at first startup?

2018-06-07 Thread David Jencks
the configuration so the versions match. The current version could be hard coded in the class if that is easier than updating the json. David Jencks Sent from my iPhone > On Jun 7, 2018, at 5:48 PM, Leschke, Scott wrote: > > You mean the logic should only execute if the service is

Re: MariaDB/JPA Transaction rollback not working

2018-05-18 Thread David Jencks
Maybe try upgrading config admin also? There are a lot of new capabilities ds takes advantage of. David Jencks Sent from my iPhone > On May 18, 2018, at 11:07 AM, Alex Soto <alex.s...@envieta.com> wrote: > > Tried adding Felix SCR 2.1.0, but it looks like it i

Re: Custom PersistenceManager configurations not instantiating components

2018-03-23 Thread David Jencks
I’m glad it works! FWIW when osgi r7 is available there will be a mechanism for specifying the pid of factory configurations. David Jencks Sent from my iPhone > On Mar 23, 2018, at 9:30 AM, Jean-Baptiste Onofré <j...@nanthrax.net> wrote: > > FYI, > > We have a s

Re: Custom PersistenceManager configurations not instantiating components

2018-03-22 Thread David Jencks
the fact that config admin is also storing the configurations locally. David Jencks Sent from my iPhone > On Mar 22, 2018, at 1:30 PM, Paul McCulloch <pkmccull...@gmail.com> wrote: > > Thanks for the reply. > > The component requiring the configuration that I'm persisting in

Re: What feature is needed to make DS work?

2018-03-09 Thread David Jencks
their dependencies are satisfied. Hope this helps David Jencks Sent from my iPhone On Mar 9, 2018, at 1:41 PM, Steinar Bang <s...@dod.no> wrote: >>>>>> Christian Schneider <ch...@die-schneider.net>: > >> You only need the scr feature. >> Then you

Re: On another topic: Creating services programatically again

2018-02-23 Thread David Jencks
Karaf console and they end up in the associated .cfg. > My recollection is that it was even careful to not mess up the formatting of > the .cfg. I thought I remembered something like that, but I’ve never known exactly what it does or where the change detection happens. David Jencks > >

Re: On another topic: Creating services programatically again

2018-02-23 Thread David Jencks
except making an unusable system. Other people might have different points of view. david jencks > On Feb 23, 2018, at 1:49 PM, Leschke, Scott <slesc...@medline.com> wrote: > > The fundamental question is: > > What is the best way to create service instances (fro

Re: On another topic: Creating services programatically again

2018-02-23 Thread David Jencks
I’m not sure what all of your code is doing. However, pre R7 you can’t specify the pid of a factory configuration. You might get the desired result by, on only one karaf instance, writing the .cfg file without creating a factory configuration yourself. David Jencks Sent from my iPhone

Re: On another topic: Creating services programatically again

2018-02-23 Thread David Jencks
created through the ca api, but doing both of creating a configuration and writing out a .cfg file is pretty sure to result in 2 instances, at least until the r7 ca changes let you specify the pid of a factory configuration. David Jencks Sent from my iPhone > On Feb 23, 2018, at 9:20

Re: On another topic: Creating services programatically again

2018-02-23 Thread David Jencks
in a typed form and you can supply default values for any keys not present in the factory configuration. David Jencks Sent from my iPhone > On Feb 23, 2018, at 6:32 AM, Leschke, Scott <slesc...@medline.com> wrote: > > OK, that sounds like it may be a good approach. Cou

Re: SCR unsatisfied reference to a registered service

2018-02-13 Thread David Jencks
Clrgen versus crlgen? A typo that in my experience always requires a new pair of eyes to see :-) David Jencks Sent from my iPhone > On Feb 13, 2018, at 11:16 AM, Alex Soto <alex.s...@envieta.com> wrote: > > Hello, > > I am running Karaf 4.0.8, and I

Re: Bundle dependencies in prod env

2018-01-04 Thread David Jencks
they are quite unlikely to contain both exported interfaces and osgi-usable implementations. Thanks David Jencks Sent from my iPhone > On Jan 4, 2018, at 9:21 AM, Jean-Baptiste Onofré <j...@nanthrax.net> wrote: > > Did you check your import/export ? > > Creating a uber bun

Re: How's config connected to a bundle

2017-12-06 Thread David Jencks
it to change. I generally use the default component pid (the fully qualified class name or component name if specified) or give it a name distinct from the bundle name unless the config is shared by several components in the same bundle. david jencks > On Dec 6, 2017, at 11:43 AM, Steinar Bang

Re: What kind of things would prevent a set of bundles from going Active?

2017-10-03 Thread David Jencks
You could look into ldap filter syntax for a complete explanation. Roughly speaking, there are simple clauses such as a=b, logical operations & | ! and enough parentheses to make everything unambiguous. david jencks > On Oct 2, 2017, at 4:37 PM, KARR, DAVID <dk0...@att.

Re: rmi to EJB2 / weblogic container

2017-07-24 Thread David Jencks
be what the web logic client library is already using. Does the client library include an orb? more good luck :-) david jencks > On Jul 24, 2017, at 6:24 PM, Matthew Shaw <matthew.s...@ambulance.qld.gov.au> > wrote: > > Thanks David, you might be onto something there. Just t

Re: rmi to EJB2 / weblogic container

2017-07-24 Thread David Jencks
the ORB with e.g. the unreleased trunk Yoko orb which does work for EJBS, at least for IBM Websphere Liberty, is quite difficult. I thought WebLogic had a proprietary transport not using CORBA. Is there any chance you can use that? good luck, David Jencks > On Jul 24, 2017, at 5:02 PM, Matt

Re: config file and "multiple bundle locations"

2017-07-05 Thread David Jencks
shouldn't have to worry. If one or more of the configuration consumers is a managed service [factory] or something else that sets the bundle location you'll need to find a way to configure a multi-location. Hope this helps David Jencks Sent from my iPhone > On Jul 5, 2017, at 11:56 AM, J

Re: Multiple bundles dependencies injection (pax-cdi or blueprint)

2017-03-28 Thread David Jencks
would be helpful if it provided an example of filter syntax (people often leave off the parentheses the first time) and pointed out that all the @Reference choices are available for the event strategy (and indeed lookup strategy) by explicitly specifying them in the @Reference annot

Re: DS components not Active

2017-02-03 Thread David Jencks
. (It was extremely tricky to get DS to do this properly). So, I suspect it doesn’t actually have to do with configuration at all, just timing. david jencks > On Feb 3, 2017, at 7:40 AM, Tim Ward <tim.w...@paremus.com> wrote: > > I disagree with the earlier statement that Blueprint and DS

Re: Cannot inject blueprint exposed service with annotations

2017-02-02 Thread David Jencks
yes https://osgi.org/javadoc/r6/cmpn/org/osgi/service/component/annotations/Reference.html <https://osgi.org/javadoc/r6/cmpn/org/osgi/service/component/annotations/Reference.html> david jencks > On Feb 2, 2017, at 2:45 PM, Dario Amiri <dariusham...@hotmail.com> wrote: &

Re: DS components not Active

2017-02-02 Thread David Jencks
I think the problem is in blueprint somewhere. I’m a bit confused since you seem to be saying there is only one pid but the DS component uses “org.MyServiceImpl" and the blueprint container uses (IIUC, which I may not) “business”. david jencks > On Feb 2, 2017, at 1:13 PM, Alex Soto

Re: DS components not Active

2017-02-02 Thread David Jencks
IMO it’s unlikely to be a problem in the DS framework. Why is a change in a configuration making a blueprint container restart? I’d expect the damping proxies to leave the same blueprint component instance in place. david jencks > On Feb 2, 2017, at 12:04 PM, Alex Soto <alex.s...@envie

Re: DS components not Active

2017-02-02 Thread David Jencks
they remain in SATISFIED state while the service is unused. The default for a deactivate method is “deactivate”. Whether or not there is such a method is determined when it’s time to call it (if present). I suspect you’ve annotated the activate method? david jencks > On Feb 2, 2017, at 11:04 AM, A

Re: Levels of Containerization - focus on Docker and Karaf

2017-01-13 Thread David Jencks
specifically do you want different from what’s already working? david jencks > On Jan 13, 2017, at 2:01 PM, Dario Amiri <dariusham...@hotmail.com> wrote: > > You should not have to build a new docker container image for every possible > type of configuration. Just look at any stan

Re: Levels of Containerization - focus on Docker and Karaf

2017-01-13 Thread David Jencks
decided what you want it to do. david jencks > On Jan 13, 2017, at 1:13 PM, Nick Baker <nba...@pentaho.com> wrote: > > Injecting configuration into a containerized app (docker) is considered > standard practice. The friction here is the level of sophistication in OSG

Re: Levels of Containerization - focus on Docker and Karaf

2017-01-13 Thread David Jencks
uses to move the configuration from files to config admin) so it would do property substitution based on environment variables. david jencks > On Jan 13, 2017, at 12:21 PM, Dario Amiri <dariusham...@hotmail.com> wrote: > > Let me expand on why this is desirable. Without the

Re: Karaf-4.0.7/8 - ResolutionException for existing Aries TransactionControl Service.

2016-12-30 Thread David Jencks
My guess is that the bundle providing the TransactionControl service doesn’t say so by having a Provide-Capability header for it. For runtime resolution the effectice=active requirements don’t matter but for at last subsystem resolution they do. david jencks > On Dec 30, 2016, at 6:08

Re: Unable to resolve 'org.osgi.service.component.annotations'

2016-10-17 Thread David Jencks
Why? these are the OSGI spec annotations processed by bnd. They are not used at runtime and there should be no such wiring requirement. Perhaps the bnd instructions say to import the package? david jencks > On Oct 17, 2016, at 7:31 AM, Christian Schneider <ch...@die-schneider.net>

Re: Feature resolution for service capabilities of services with filters

2016-10-12 Thread David Jencks
What is generating the Require-Capabiility header? The target filter isn’t supposed to be there on either Provide- or Require-Capability since it can generally be overridden by configuration. AFAICT the bnd DS processing doesn’t add the target filter to the Require-Capability header. david

Re: Issue with SCR - ID = -1

2016-10-05 Thread David Jencks
The scr command from felix ds does and has for quite a while. david jencks > On Oct 5, 2016, at 4:32 AM, Jens Reimann <jreim...@redhat.com> wrote: > > That was exactly the problem. Actually there was a configuration present, but > it was bound to a different

Re: scr:details command

2016-09-20 Thread David Jencks
either - minimum cardinality 0, so it’s always satisfied - the component is not satisfied for some other reason so nothing is bound to any reference. I think this is the karaf scr command so I might be wrong about the meaning. david jencks > On Sep 20, 2016, at 8:33 AM, Leschke, Scott <

Re: Features Core bundle stuck in "Resolved" state

2016-09-14 Thread David Jencks
of the service depending on what configurations are present, but they still declare a single capability for the service. thanks david jencks > On Sep 14, 2016, at 7:56 PM, oski_bear <dariusham...@hotmail.com> wrote: > > OK but in this case it's actually pax-jdbc-config that

Re: DS and immediate and configurationPolicy == REQUIRE

2016-09-14 Thread David Jencks
of deadlocks but I haven’t seen any for a long time. david jencks > On Sep 14, 2016, at 2:15 PM, Benson Margulies <ben...@basistech.com> wrote: > > I'm hoping I know the answer to the following: > > Assume a DS component with immediate=true and configurationPolicy=REQUIRE. >

Re: Configuration Admin

2016-09-14 Thread David Jencks
Then someone should fix the metatype….. david jencks > On Sep 14, 2016, at 12:39 PM, Guillaume Nodet <gno...@apache.org> wrote: > > Actually and fwiw, FileInstall registers a ManagedServiceFactory, not a > ManagedService. > See > https://github.com/apache/felix/blob/tr

Re: Configuration Admin

2016-09-14 Thread David Jencks
ean by “more explicit Managed Service Factory”. So the filter to ca.listConfigurations would look like (&(service.factoryPid=)(felix.fileinstall.filename=)) david jencks > > Scott > > From: David Jencks [mailto:david.a.jen...@gmail.com] > Sent: Wednesday, Sept

Re: Configuration Admin

2016-09-14 Thread David Jencks
id and the resulting pid will include the id. hope this helps… david jencks > On Sep 14, 2016, at 11:23 AM, Leschke, Scott <slesc...@medline.com> wrote: > > Not specifically a Karaf question but I’ll start here. > > If I would like to be able to modify the component in

Re: Features Core bundle stuck in "Resolved" state

2016-09-13 Thread David Jencks
what the service interfaces are? A Provide-Capability for a service with effective-active basically means “this bundle might possibly register some service with this interface but it might not and who knows what the service properties will be”. thanks david jencks > On Sep 13, 2016, at 9:50

Re: Features Core bundle stuck in "Resolved" state

2016-09-13 Thread David Jencks
requirement that isn’t matched by a declared service capability. For instance, bnd will generate capabilities and requirements for DS services and references, but for other services as far as I know you would need to add the capabilities explicitly. who knows… this might help :-) david jencks

Re: Karaf 4.x startup - Aries causing components to deactivate and re-activate multiple times

2016-09-13 Thread David Jencks
on ManagedService[Factory] so since config admin works it should too (no guarantees). Otherwise you might need to have several copies of the configuration or move all the code consuming the configuration into one bundle. david jencks > On Sep 13, 2016, at 8:33 AM, David Jencks <david

Re: Karaf 4.x startup - Aries causing components to deactivate and re-activate multiple times

2016-09-13 Thread David Jencks
. hope this helps david jencks > On Sep 13, 2016, at 8:01 AM, Marc Durand <marc.dur...@gmail.com> wrote: > > I've been having a problem that I can't seem to resolve even after days of > troubleshooting. When Karaf starts up, some of my components are activated > (methods ann

Re: Component configuration pid

2016-09-10 Thread David Jencks
> On Sep 9, 2016, at 11:00 PM, Jean-Baptiste Onofré <j...@nanthrax.net> wrote: > > I fixed that already and you can use the felix command. > Thank you! david jencks > Regards > JB > > On 09/10/2016 05:50 AM, David Jencks wrote: >> >>> On S

Re: Component configuration pid

2016-09-09 Thread David Jencks
> On Sep 9, 2016, at 8:07 PM, Benson Margulies <ben...@basistech.com> wrote: > > > > On Fri, Sep 9, 2016 at 10:00 PM, David Jencks <david.a.jen...@gmail.com > <mailto:david.a.jen...@gmail.com>> wrote: > Well, either > 1. you didn’t actually succeed

Re: Component configuration pid

2016-09-09 Thread David Jencks
bundle has a different version than the old one you should be able to distinguish which one is actually activated. 3. karaf’s scr:info is flakier than I think possible. I really don’t think (3) is plausible. david jencks > On Sep 9, 2016, at 7:20 AM, Leschke, Scott <slesc...@medline.com&

Re: configuration property types and enums

2016-09-06 Thread David Jencks
the DSExt annotations in the org.apache.felix.scr.ext.anno bundle. You’d use @DSExt.ConfigureWithInterfaces. Hope this helps david jencks > On Sep 6, 2016, at 2:08 PM, Leschke, Scott <slesc...@medline.com> wrote: > > Yes, this is a DS component. > > @Component( >

Re: configuration property types and enums

2016-09-06 Thread David Jencks
? If you’ve used any extra annotations on the component please show them too. thanks david jencks > On Sep 6, 2016, at 11:52 AM, Leschke, Scott <slesc...@medline.com> wrote: > > I’m getting the following exception from an activate method. > > org.osgi.service.compone

Re: Is blueprint missing from the 'minimal' feature?

2016-09-05 Thread David Jencks
Stack trace for felix scr command NPE? in my experience the gogo annotations have to be loaded before scr in order for the “help” on the command to work, but I don’t recall an NPE. AFAICT to fix this (missing help) the scr gogo command would have to be in a separate bundle. thanks david

Re: RESTful web service in Karaf using CXF and blueprint

2016-08-15 Thread David Jencks
? thanks david jencks > On Aug 15, 2016, at 10:10 AM, Benson Margulies <ben...@basistech.com> wrote: > > I do this by making DS @Activate methods call the CXF API to publish > REST services. > > > On Mon, Aug 15, 2016 at 1:08 PM, Scott Lewis <sle...@composent.com> w

Re: WeavingHook using Felix

2016-07-15 Thread David Jencks
I hope there aren’t any uses that don’t work with any R5 framework. I believe Apache Aries proxy and (IIRC) spi-fly use weaving hooks. hope this helps david jencks > On Jul 15, 2016, at 4:51 PM, Pratt, Jason <jason.pr...@windriver.com> wrote: > > Hello - Can anyone recommend

Re: What does it mean when scr:details says 'UNSATISFIED' and nothing else?

2016-07-06 Thread David Jencks
I’m wondering what the DS implementation bundle is getting it’s Config Admin packages from in each case. thanks david jencks > On Jul 6, 2016, at 9:20 AM, Benson Margulies <ben...@basistech.com> wrote: > > I can dump a bunch of wiring. But I'd have to repro the problem. >

Re: What does it mean when scr:details says 'UNSATISFIED' and nothing else?

2016-07-06 Thread David Jencks
implementation, but something appears really different on restart. david jencks > On Jul 6, 2016, at 9:18 AM, Benson Margulies <ben...@basistech.com> wrote: > > Here's how I got into this. > > I have this Karaf assembly. If I start if just after it is built, it > works fin

Re: What does it mean when scr:details says 'UNSATISFIED' and nothing else?

2016-07-06 Thread David Jencks
gets wired correctly to config admin. thanks david jencks > On Jul 6, 2016, at 9:10 AM, Benson Margulies <ben...@basistech.com> wrote: > > com.basistech.worker.service.cfg exists. > > And when I stopped and started karaf, the component got itself activated. > > >

Re: What does it mean when scr:details says 'UNSATISFIED' and nothing else?

2016-07-06 Thread David Jencks
satisfied or not from the references section of the component configuration. thanks david jencks > On Jul 6, 2016, at 8:52 AM, Benson Margulies <ben...@basistech.com> wrote: > > Folks, I have a service that isn't starting, and I cannot see why. Any clues? > > >

Re: SCR, Akka, and maven-bundle-plugin

2016-06-01 Thread David Jencks
a way to write a self contained test or at least give instructions on finding the scala class that would be a big help. thanks david jencks > On Jun 1, 2016, at 12:03 PM, Alex Soto <alex.s...@envieta.com> wrote: > > With Karaf version 4.0.4. I want to use Declarative Ser

Re: Finding DS Component Factories

2016-05-27 Thread David Jencks
framework. thanks david jencks > On May 27, 2016, at 10:05 AM, jer...@javaxpert.com wrote: > > Hi Alex > I guess that you should always use the plain old low level API and use > getServiceReference from BundleContext class > But you may look for an annotation based method? > Regar

Re: Bundle startup

2016-05-04 Thread David Jencks
if you can provide some kind of test project I could look at? thanks david jencks > On May 4, 2016, at 7:10 PM, David Leangen <apa...@leangen.net> wrote: > > > Hi, > > Thank you. > > Here is the output for the UserAdmin: > > karaf.log.1:2016-05-04 21:

Re: Bundle startup

2016-05-04 Thread David Jencks
expect that we’d see ServiceEvents too. One of these days I will translate the state constants into words in the logging…. I can’t remember the meanings of the numbers either. david jencks > On May 4, 2016, at 4:57 AM, Morgan Hautman <morgan.haut...@gmail.com> wrote: > > Hi David

Re: Bundle startup

2016-05-04 Thread David Jencks
should be able to check if the filter is actually working the way you expect. david jencks > On May 3, 2016, at 11:08 PM, David Leangen <apa...@leangen.net> wrote: > > > Hi David, > > Here are the xmls for the 3 components in the bundle: > > > http://www.o

Re: Bundle startup

2016-05-04 Thread David Jencks
Maybe showing the component xml would be the quickest way to figure out the next step? I suspect your filter isn’t quite right. What are the service properties on the UserAdmin you aren’t supplying? david jencks > On May 3, 2016, at 10:52 PM, David Leangen <apa...@leangen.net> wrote

Re: Bundle startup

2016-05-03 Thread David Jencks
. Is there any isolation in your karaf instance, perhaps subsystems or regions? thanks david jencks > On May 3, 2016, at 8:16 PM, David Leangen <apa...@leangen.net> wrote: > > > Hi, David, > >> There must be a lot more going on for this to fail. This kind of situation >

Re: Bundle startup

2016-05-03 Thread David Jencks
“satisfied”? david jencks > On May 3, 2016, at 8:09 PM, David Jencks <david.a.jen...@gmail.com> wrote: > > There must be a lot more going on for this to fail. This kind of situation > normally works fine with scr. If you turn up ds logging, what do you see as > the reason

Re: Bundle startup

2016-05-03 Thread David Jencks
or equivalent info). thanks david jencks > On May 3, 2016, at 7:58 PM, David Leangen <apa...@leangen.net> wrote: > > > Hi! > > When I start up Karaf, all my bundles are activated, but a component service > is one bundle is not enabled. > > T

Re: Dynamic Config Loading in Camel Application Bundle in Karaf 3.0.5

2016-03-02 Thread David Jencks
. david jencks > On Mar 2, 2016, at 3:50 AM, Debraj Manna <subharaj.ma...@gmail.com> wrote: > > > I have a simple Camel Application bundle which is to be deployed in Karaf > 3.0.5 under Apache Service Mix 6.1. The configuration file is placed in etc/ > directory (let's s

Re: OSGi Compendium within a feature restarts the console

2016-02-29 Thread David Jencks
depending on both aries tx and spring? I really don’t think this is an argument for separating api and implementation. I could still be missing something here though…. david jencks > On Feb 29, 2016, at 11:09 AM, Christian Schneider <ch...@die-schneider.net> > wrote: > > The qu

Re: OSGi Compendium within a feature restarts the console

2016-02-29 Thread David Jencks
Sure, but I can’t imagine any such use case. I can imagine using the little bundles at compile time to make sure you know which specs you depend on, but I’m mystified how this could be useful at runtime. david jencks > On Feb 29, 2016, at 9:51 AM, Daniel McGreal <d.j.mcgr...@gmail.com&

Re: OSGi Compendium within a feature restarts the console

2016-02-29 Thread David Jencks
is highly misleading. david jencks > On Feb 29, 2016, at 9:20 AM, Markus Rathgeb <maggu2...@gmail.com> wrote: > > FYI > > "But what if you want to use the APIs at runtime? To support using the > APIs at runtime, OSGi has now made the companion code for individu

Re: Component view in WebConsole missing

2016-01-06 Thread David Jencks
eliminated in 4.0.4 yet? IIRC there were some major problems in the karaf scr console command, have these been fixed? If not if I can find some time to work on these problems when do expect (or hope :-) 4.0.4 to be released? thanks david jencks > On Jan 6, 2016, at 5:33 AM, Jean-Bapti

Re: Bundle in mysterious scr state

2015-12-08 Thread David Jencks
I have no idea what this command you are using is, can you show the output from the gogo scr:info command for this component? thanks david jencks > On Dec 8, 2015, at 3:51 PM, Benson Margulies <ben...@basistech.com> wrote: > > I have one particular bundle that gets into this st

Re: Bundle in mysterious scr state

2015-12-08 Thread David Jencks
property ds.loglevel=debug If you are configuring ds using config admin, put this in the configuration. Otherwise you can set it as a framework property (not sure how to do this in karaf, but I imagine it’s possible). hope this helps david jencks > On Dec 8, 2015, at 5:26 PM, Benson Margul

Re: Bundle in mysterious scr state

2015-12-08 Thread David Jencks
This looks like a back level scr? maybe 1.8.x? The info from those makes it really hard to tell what’s going on. Is it configuration required and no configuration? david jencks > On Dec 8, 2015, at 2:39 PM, Benson Margulies <ben...@basistech.com> wrote: > > Here's a bun

Re: Bundle in mysterious scr state

2015-12-08 Thread David Jencks
from the DTOs? The model the backwards compatibility bundle relies on is really bogus. david jencks > On Dec 8, 2015, at 4:38 PM, Benson Margulies <ben...@basistech.com> wrote: > > Dependencies are too big. I will debug the command and tell you what I see > when I get back

Re: Unsatisfied by information on unsatisfied service in 4.0.2

2015-12-02 Thread David Jencks
You’’ll need to specify the configuration location as something like “?" to get that to work. See the section on multi-locations, 104.4.1 p 93 in R6 in the spec. I don’t know if karaf lets you specify the location for a config. david jencks > On Dec 2, 2015, at 11:45 AM, Benson M

Re: Complex config

2015-11-18 Thread David Jencks
of a conversion spec in OSGI which may be relevant. EnRoute already has some quite sophisticated conversions. thanks david jencks > On Nov 18, 2015, at 1:12 PM, Benson Margulies <ben...@basistech.com> wrote: > > I realize that I forgot to supply the motivation for this questio

  1   2   >