Re: [osgi-dev] Maintaining package versions

2011-07-31 Thread Raymond Auge
Lindsay, Thanks for starting this conversation as this has been on the edge of my mind over the past few days. Unlike yourself and Craig, I'm at cusp of a new venture into the world of OSGi and although integration of it into our product (embedded) is proceeding extremely well, the question of

Re: [osgi-dev] Logging Patterns

2011-10-11 Thread Raymond Auge
On Tue, Oct 11, 2011 at 1:26 PM, Raymond Auge raymond.a...@liferay.com wrote: On Tue, Oct 11, 2011 at 11:48 AM, Philipp Kursawe phil.kurs...@gmail.com wrote: On Tue, Oct 11, 2011 at 2:20 PM, Neil Bartlett njbartl...@gmail.com wrote:    log.log(LogService.LOG_ERROR, blah blah); i.e., why do

Re: [osgi-dev] Logging Patterns

2011-10-11 Thread Raymond Auge
On Tue, Oct 11, 2011 at 3:36 PM, BJ Hargrave hargr...@us.ibm.com wrote: My point is simply that the LogService makes writing code free of OSGi apis (as is commonly preached) difficult on top of the other concerns above. Your logging code has to be written to some logging API. Why is some

[osgi-dev] scaling in elastic cloud scenarios

2011-12-19 Thread Raymond Auge
Hello, I was wondering what kinds of stories people have about their experiences with scaling OSGi frameworks in elastic cloud scenarios. I'm just starting to touch this issue with our product and so any info on gotchas would be appreciated. The scenario I have is a central web app that

[osgi-dev] Re: scaling in elastic cloud scenarios

2011-12-19 Thread Raymond Auge
Sorry, I did find this: http://www.osgi.org/Conference/2010-CloudWorkshopand some other info on the wiki, which I will review. Any additional info is very welcome. Sincerely, - Raymond On Mon, Dec 19, 2011 at 4:44 PM, Raymond Auge raymond.a...@liferay.comwrote: Hello, I was wondering what

Re: [osgi-dev] What is OSGi bundle profiling going on?

2012-06-01 Thread Raymond Auge
My team is developing a service platform on OSGi platform. One big concern of my boss is bundle resource monitoring/profiling on service bundles. That is, if a service bundle eats too much memory or CPU, can OSGi runtime detect this event and take some action? I think the only way to do

Re: [osgi-dev] What is OSGi bundle profiling going on?

2012-06-03 Thread Raymond Auge
On Sun, Jun 3, 2012 at 9:02 AM, chris.g...@k-embedded-java.com wrote: Even using a custom SM or java.lang.instrumentation it's pretty difficult to answer question such as who is allocating so much memory?. Christer Larsson (MakeWave) and I demonstrated a resource management API at the OSGi

Re: [osgi-dev] Bundles in a bundle

2012-07-09 Thread Raymond Auge
2012/7/9 Völschow, Rainer rainer.voelsc...@awd.de Exists a way to create a bundle, that contains onther bundles? And if so how can I achive this? Can you explain the reason you would want to do that? I can think of three possible ones, each has a very different answer. All of them involve

Re: [osgi-dev] best way to generate a classpath for javax.tools.JavaCompiler

2012-09-13 Thread Raymond Auge
...@us.ibm.com office: +1 386 848 1781 mobile: +1 386 848 3788 From:Raymond Auge raymond.a...@liferay.com To:OSGi Developer Mail List osgi-dev@mail.osgi.org, Date:2012/09/13 10:41 Subject:[osgi-dev] best way to generate a classpath for javax.tools.JavaCompiler

Re: [osgi-dev] best way to generate a classpath for javax.tools.JavaCompiler

2012-09-14 Thread Raymond Auge
AM---Hi, Am 13.09.2012 um 17:01 schrieb Raymond Auge:]Felix Meschberger ---09/14/2012 06:37:05 AM---Hi, Am 13.09.2012 um 17:01 schrieb Raymond Auge: From: Felix Meschberger fmesc...@gmail.com To: OSGi Developer Mail List osgi-dev@mail.osgi.org, Date: 09/14/2012 06:37 AM

Re: [osgi-dev] best way to generate a classpath for javax.tools.JavaCompiler

2012-09-14 Thread Raymond Auge
OSGi Fellow and CTO of the *OSGi Alliance* http://www.osgi.org/* **hargr...@us.ibm.com* hargr...@us.ibm.com office: +1 386 848 1781 mobile: +1 386 848 3788 From:Raymond Auge raymond.a...@liferay.com To:OSGi Developer Mail List osgi-dev@mail.osgi.org, Date:2012/09/14

Re: [osgi-dev] best way to generate a classpath for javax.tools.JavaCompiler

2012-09-16 Thread Raymond Auge
as the jasper Jsr199JavaCompiler does. Sincerely, - Ray On Fri, Sep 14, 2012 at 2:30 PM, Raymond Auge raymond.a...@liferay.comwrote: Alright then! Thanks All, - Ray On Fri, Sep 14, 2012 at 2:17 PM, BJ Hargrave hargr...@us.ibm.com wrote: OSGi has done this for many other limited parts of Java

[osgi-dev] Re: Clarification of BundleWiring.listResources

2012-11-09 Thread Raymond Auge
Mvn, I clearly misinterpreted that second line.. *The names of resources visible to a bundle wiring's parent class loader, such as the bootstrap class loader, must not be included in the result.* * * *Sorry,* *- Ray* On Fri, Nov 9, 2012 at 12:39 PM, Raymond Auge raymond.a...@liferay.comwrote

[osgi-dev] Clarification of BundleWiring.listResources

2012-11-09 Thread Raymond Auge
Hello All, Regarding the definition of BundleWiring.listResources http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/wiring/BundleWiring.html#listResources(java.lang.String, java.lang.String, int) in particular the paragraph: *Only the resource names for resources in bundle wirings

[osgi-dev] best pattern for instance factories

2012-12-19 Thread Raymond Auge
Hello All, I'd like to asked what is the suggested method for creating instance factories according to the service pattern. i.e. I would like to obtain a list of stateless instances which are single use and which are subsequently simply collected. I'm thinking service factory but I'm not sure

Re: [osgi-dev] best pattern for instance factories

2012-12-19 Thread Raymond Auge
EventAdmin I believe. On Wed, Dec 19, 2012 at 11:54 AM, Raymond Auge raymond.a...@liferay.comwrote: On Wed, Dec 19, 2012 at 11:27 AM, Felix Meschberger fmesc...@gmail.comwrote: Hi, Am 19.12.2012 um 17:12 schrieb Raymond Auge: Hello All, I'd like to asked what is the suggested method

Re: [osgi-dev] best pattern for instance factories

2012-12-20 Thread Raymond Auge
. Sincerely, - Ray Kind regards, Peter Kriens On 19 dec. 2012, at 17:54, Raymond Auge wrote: On Wed, Dec 19, 2012 at 11:27 AM, Felix Meschberger fmesc...@gmail.comwrote: Hi, Am 19.12.2012 um 17:12 schrieb Raymond Auge: Hello All, I'd like to asked what is the suggested method

Re: [osgi-dev] best pattern for instance factories

2012-12-20 Thread Raymond Auge
On Thu, Dec 20, 2012 at 1:44 PM, chris.g...@k-embedded-java.com wrote: Ray, What we have is a typical event handler scenario: processEvent(Event event) { Handler[] handlers = getHandlers(key); for (Handler handler : handlers) { handler.process(event); } } I'd like to

Re: [osgi-dev] best pattern for instance factories

2012-12-20 Thread Raymond Auge
at 2:35 PM, Raymond Auge raymond.a...@liferay.comwrote: On Thu, Dec 20, 2012 at 1:44 PM, chris.g...@k-embedded-java.com wrote: Ray, What we have is a typical event handler scenario: processEvent(Event event) { Handler[] handlers = getHandlers(key); for (Handler handler : handlers

Re: [osgi-dev] OSGi Http Service Spec improvement ?

2013-03-08 Thread Raymond Auge
Thx Felix. - Ray On Fri, Mar 8, 2013 at 8:01 AM, Tang Yong tangy...@cn.fujitsu.com wrote: since I'm not able to come to eclipsecon (limited resources as Cristiano) I really look forward to those slides :) +1, the same feeling. I wish that in the future, OSGi DevCon can come China, :)

Re: [osgi-dev] Migrating from plain java to osgi

2013-04-01 Thread Raymond Auge
. 2013, at 16:56, Raymond Auge wrote: [This was going to be a response to the DS vs Blueprint thread.. but got too long] Re: DS vs Blueprint? What about complex concerns like providing aop on thousands of services? Speaking to David Bosschaert briefly about this at osgi con, he suggested two

Re: [osgi-dev] Migrating from plain java to osgi

2013-04-02 Thread Raymond Auge
the same services. Anyway, speed is a matter of risk and effort. Not sure either approach is faster or slower only that big bangs tend to fail. Kind regards, Peter Kriens On 1 apr. 2013, at 16:54, Raymond Auge wrote: Thanks for your response Peter. I really appreciate it. I follow your logic

Re: [osgi-dev] multiple property values on a DS component

2013-04-16 Thread Raymond Auge
I guess I was asking generally to some degree since I was unclear whether the underlying DS spec allowed for it. On Tue, Apr 16, 2013 at 4:23 PM, Raymond Auge raymond.a...@liferay.comwrote: Thank you Neil, Sorry, I'm currently using the bnd annotations (1.50.0, haven't upgraded yet

Re: [osgi-dev] multiple property values on a DS component

2013-04-17 Thread Raymond Auge
baz /property Neil On Tue, Apr 16, 2013 at 9:24 PM, Raymond Auge raymond.a...@liferay.comwrote: I guess I was asking generally to some degree since I was unclear whether the underlying DS spec allowed for it. On Tue, Apr 16, 2013 at 4:23 PM, Raymond Auge raymond.a

Re: [osgi-dev] idea for repository management configuration

2013-04-26 Thread Raymond Auge
On Fri, Apr 26, 2013 at 11:14 AM, Ferry Huberts maili...@hupie.com wrote: On 26/04/13 17:08, Raymond Auge wrote: Hello All, (this may already exist, if so forgive the noise... and then please point me to it :) ) Does it make any sense to have a means for bundles to declare

Re: [osgi-dev] idea for repository management configuration

2013-04-26 Thread Raymond Auge
it's dependencies are met in traditional manner. - Ray On Fri, Apr 26, 2013 at 11:31 AM, Raymond Auge raymond.a...@liferay.comwrote: On Fri, Apr 26, 2013 at 11:14 AM, Ferry Huberts maili...@hupie.comwrote: On 26/04/13 17:08, Raymond Auge wrote: Hello All, (this may already exist

Re: [osgi-dev] idea for repository management configuration

2013-04-26 Thread Raymond Auge
:39 PM, Raymond Auge raymond.a...@liferay.comwrote: On Fri, Apr 26, 2013 at 12:59 PM, Neil Bartlett njbartl...@gmail.comwrote: Yep... Require-Capability: osgi.service; filter:=(objectClass=org.example.foo.MyService); effective:=active; resolution:=optional; Except in this case, I would

[osgi-dev] tracking by annotations

2013-06-27 Thread Raymond Auge
Wouldn't it be nice if we could track|filter services by runtime type annotations? Currently I can see the only possible solution being something along the lines of (note these are bnd DS annotations): @Component( properties={ annotation=com.foo.Baz }, provide=Object.class ) @Baz public class

Re: [osgi-dev] tracking by annotations

2013-06-27 Thread Raymond Auge
From:Raymond Auge raymond.a...@liferay.com To:OSGi Developer Mail List osgi-dev@mail.osgi.org Date:2013/06/27 15:19 Subject:Re: [osgi-dev] tracking by annotations Sent by:osgi-dev-boun...@mail.osgi.org -- This is how I'm

Re: [osgi-dev] tracking by annotations

2013-06-27 Thread Raymond Auge
Technical Staff Member, IBM OSGi Fellow and CTO of the *OSGi Alliance* http://www.osgi.org/* **hargr...@us.ibm.com* hargr...@us.ibm.com office: +1 386 848 1781 mobile: +1 386 848 3788 From:Raymond Auge raymond.a...@liferay.com To:OSGi Developer Mail List osgi-dev

Re: [osgi-dev] tracking by annotations

2013-07-02 Thread Raymond Auge
:Raymond Auge raymond.a...@liferay.com To:OSGi Developer Mail List osgi-dev@mail.osgi.org Date:2013/06/27 15:19 Subject:Re: [osgi-dev] tracking by annotations Sent by:osgi-dev-boun...@mail.osgi.org This is how I'm tacking them currently: Filter filter

Re: [osgi-dev] tool for initial semantic version

2013-07-31 Thread Raymond Auge
On Wed, Jul 31, 2013 at 1:15 PM, Ferry Huberts maili...@hupie.com wrote: For (semantic) versioning in OSGi the bundle version actually is meaningless. It's a marketing number, so 6.2.0 in your case. Only package versions have meaning. Of course you can always version everything the same,

Re: [osgi-dev] tool for initial semantic version

2013-07-31 Thread Raymond Auge
: On 31/07/13 19:23, Raymond Auge wrote: On Wed, Jul 31, 2013 at 1:15 PM, Ferry Huberts maili...@hupie.com mailto:maili...@hupie.com wrote: For (semantic) versioning in OSGi the bundle version actually is meaningless. It's a marketing number, so 6.2.0 in your case. Only

[osgi-dev] marking private packages

2013-08-09 Thread Raymond Auge
Hello, what is the proper way to mark private packages? I know of the bnd Private-Package header. Are there other ways? -- *Raymond Augé* http://www.liferay.com/web/raymond.auge/profile (@rotty3000) Senior Software Architect *Liferay, Inc.* http://www.liferay.com (@Liferay)

Re: [osgi-dev] marking private packages

2013-08-09 Thread Raymond Auge
://www.osgi.org/* **hargr...@us.ibm.com* hargr...@us.ibm.com office: +1 386 848 1781 mobile: +1 386 848 3788 From:Raymond Auge raymond.a...@liferay.com To:OSGi Developer Mail List osgi-dev@mail.osgi.org Date:2013/08/09 14:56 Subject:[osgi-dev] marking private

[osgi-dev] clarification about ext bundles class access

2013-08-12 Thread Raymond Auge
I just want to clarify the distinction between Fragment-Host: system.bundle; extension:=framework Fragment-Host: system.bundle; extension:=bootclasspath with respect to classes the bundle has access to. 1) is there a distinction? 2) what about the case when the framework is not itself loading

Re: [osgi-dev] clarification about ext bundles class access

2013-08-12 Thread Raymond Auge
/core/org/osgi/framework/Constants.html#FRAMEWORK_BOOTDELEGATION [2] - http://www.osgi.org/javadoc/r5/core/org/osgi/framework/Constants.html#FRAMEWORK_BUNDLE_PARENT [image: Inactive hide details for Raymond Auge ---08/12/2013 09:42:22 AM---I just want to clarify the distinction between

Re: [osgi-dev] clarification about ext bundles class access

2013-08-12 Thread Raymond Auge
as optional at best so that your extension does not fail miserably if the other extension is not present. Tom [image: Inactive hide details for Raymond Auge ---08/12/2013 10:16:17 AM---There is one problem with your explanation: 3.15.1 Illegal]Raymond Auge ---08/12/2013 10:16:17 AM---There is one

Re: [osgi-dev] clarification about ext bundles class access

2013-08-12 Thread Raymond Auge
[image: Inactive hide details for Raymond Auge ---08/12/2013 10:58:29 AM---I'm just wondering if an Extension Bundle, as per section]Raymond Auge ---08/12/2013 10:58:29 AM---I'm just wondering if an Extension Bundle, as per section 3.15 of the spec, has access to the same From: Raymond Auge

[osgi-dev] How to model hierarchically complex configuration for components

2013-10-01 Thread Raymond Auge
Hello everyone, I'm wondering the best approach for modelling hierarchically complex configuration data in DS For example, Portlets (JSR-168/286) have rather complex configuration http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd. If I wanted to model a Portlet as a DS component, I have a

Re: [osgi-dev] How to model hierarchically complex configuration for components

2013-10-01 Thread Raymond Auge
To clarify, the config metadata model doesn't seem to be enough to support this level of complexity. On Tue, Oct 1, 2013 at 10:59 AM, Raymond Auge raymond.a...@liferay.comwrote: Hello everyone, I'm wondering the best approach for modelling hierarchically complex configuration data in DS

Re: [osgi-dev] How to model hierarchically complex configuration for components

2013-10-02 Thread Raymond Auge
, at 16:59, Raymond Auge raymond.a...@liferay.com wrote: Hello everyone, I'm wondering the best approach for modelling hierarchically complex configuration data in DS For example, Portlets (JSR-168/286) have rather complex configuration http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd

Re: [osgi-dev] How to model hierarchically complex configuration for components

2013-10-02 Thread Raymond Auge
hmm.. too bad. On Wed, Oct 2, 2013 at 2:28 PM, Peter Kriens peter.kri...@aqute.biz wrote: I think the config admin spec recommends (SHOULD) that a property key is a symbolic name, this leaves out square brackets ... Kind regards, Peter Kriens On 2 okt. 2013, at 15:35, Raymond Auge

[osgi-dev] service from extension bundle?

2013-10-27 Thread Raymond Auge
While I'm sure this is well documented I just can't seem to find it. Is there any way to trigger the activation of a service provided via an extension bundle on the system bundle? -- *Raymond Augé* http://www.liferay.com/web/raymond.auge/profile (@rotty3000) Senior Software Architect *Liferay,

Re: [osgi-dev] service from extension bundle?

2013-10-27 Thread Raymond Auge
office: +1 386 848 1781 mobile: +1 386 848 3788 From:Raymond Auge raymond.a...@liferay.com To:OSGi Developer Mail List osgi-dev@mail.osgi.org Date:2013/10/27 13:24 Subject:[osgi-dev] service from extension bundle? Sent by:osgi-dev-boun

Re: [osgi-dev] service from extension bundle?

2013-10-28 Thread Raymond Auge
packages until such a time as those APIs are re-engineered into more modular ones. - Ray On Mon, Oct 28, 2013 at 4:15 AM, Felix Meschberger fmesc...@gmail.comwrote: Hi Am 27.10.2013 um 18:53 schrieb Raymond Auge raymond.a...@liferay.com: Sigh... too bad! (but I'm glad it's coming). I'm

Re: [osgi-dev] service from extension bundle?

2013-10-28 Thread Raymond Auge
. They the the BUndle-Context of the System bundle. Kind regards, Peter Kriens On 28 okt. 2013, at 14:54, Raymond Auge raymond.a...@liferay.com wrote: Great BJ, How do I do that? That's effectively what I want. But there doesn't appear to be any way for the extension to actually execute in order

[osgi-dev] configuration in cluster env

2013-11-09 Thread Raymond Auge
Is there a standard approach for configuration in a clustered env? The Cloud Computing RFP briefly mentions configuration and refers to the Config Admin spec as relevant to cloud. However, there doesn't appear to be any specifics beyond that. So, what's the typical strategy for replication? -

Re: [osgi-dev] configuration in cluster env

2013-11-09 Thread Raymond Auge
.. replication of configuration .. On Sat, Nov 9, 2013 at 1:09 PM, Raymond Auge raymond.a...@liferay.comwrote: Is there a standard approach for configuration in a clustered env? The Cloud Computing RFP briefly mentions configuration and refers to the Config Admin spec as relevant to cloud

Re: [osgi-dev] configuration in cluster env

2013-11-09 Thread Raymond Auge
it would be nice to start a new RFC to discuss/design this further... Cheers, David On 9 November 2013 18:10, Raymond Auge raymond.a...@liferay.com wrote: .. replication of configuration .. On Sat, Nov 9, 2013 at 1:09 PM, Raymond Auge raymond.a...@liferay.com wrote

Re: [osgi-dev] OSGi and Persistence

2013-11-25 Thread Raymond Auge
Peter, you can look at http://github.com/liferay/liferay-portal for a complete picture of how we use hibernate, with some jpa configs as well. Later today I can explicitly point out each case you outlined above to clarify from our massive codebase. cache, tx, etc We also have plugins which

Re: [osgi-dev] OSGi and Persistence

2013-11-25 Thread Raymond Auge
PS: It's open source so feel free to criticise the code ( as long as it's constructive). Ray On Nov 25, 2013 8:47 AM, Raymond Auge raymond.a...@liferay.com wrote: Peter, you can look at http://github.com/liferay/liferay-portal for a complete picture of how we use hibernate, with some jpa

[osgi-dev] heavy synchronization of ServiceTracker impls

2014-01-09 Thread Raymond Auge
Recently I've performed some JMH benchmarking on the usecases for retireving collections of services. I discovered that raw usage of the ServiceTracker is in fact very slow for most cases due to heavy synchronization (both equinox and felix seem to have similar synchronization, although all my

Re: [osgi-dev] heavy synchronization of ServiceTracker impls

2014-01-13 Thread Raymond Auge
improvements to propose. Tom [image: Inactive hide details for Raymond Auge ---01/09/2014 10:17:44 AM---Recently I've performed some JMH benchmarking on the usecase]Raymond Auge ---01/09/2014 10:17:44 AM---Recently I've performed some JMH benchmarking on the usecases for retireving collections

Re: [osgi-dev] heavy synchronization of ServiceTracker impls

2014-01-14 Thread Raymond Auge
in the whole? Kind regards, Peter Kriens On 9 jan. 2014, at 17:17, Raymond Auge raymond.a...@liferay.com wrote: Recently I've performed some JMH benchmarking on the usecases for retireving collections of services. I discovered that raw usage of the ServiceTracker is in fact very slow

Re: [osgi-dev] heavy synchronization of ServiceTracker impls

2014-01-14 Thread Raymond Auge
Got it! Makes sense. Just like the book you recommended states, sometimes the worst issue is not describing how a class is intended to be used w.r.t. thread safety and concurrency. Thanks, - Ray On Tue, Jan 14, 2014 at 1:07 PM, BJ Hargrave hargr...@us.ibm.com wrote: If you look at the

Re: [osgi-dev] heavy synchronization of ServiceTracker impls

2014-01-14 Thread Raymond Auge
Why not provide two different impls? Same API, different Bundle-RequiredExecutionEnvironment. With no difference in the external APIs you're not breaking the portability of user's code. Obviously concurrency is far less of a problem in embedded. But on the server side actually the opposite is

[osgi-dev] convenience utils for properties

2014-02-07 Thread Raymond Auge
Hello All, I was wondering if there were provided utilities for handling the property types. For instance, string+, arrays of primitives, etc? I hate rewriting things if they already exist. However, I don't see anything either in the core or compendium, but it seems rather sad if we all have to

Re: [osgi-dev] convenience utils for properties

2014-02-08 Thread Raymond Auge
, Peter Kriens On 7 feb. 2014, at 17:00, Raymond Auge raymond.a...@liferay.com wrote: Hello All, I was wondering if there were provided utilities for handling the property types. For instance, string+, arrays of primitives, etc? I hate rewriting things if they already exist

Re: [osgi-dev] cooperation between optional bundles

2014-06-03 Thread Raymond Auge
I'd suggest simply using the whiteboard pattern. It would look like: Bundle A: if optional O becomes available, it publishes a O[A] service to the registry Bundle B, if optional O becomes available, it tracks and uses services O[*] Either way, both bundles can run individually, but collaborate

[osgi-dev] wire admin add packages

2014-06-09 Thread Raymond Auge
Is it possible to use wireadmin to add new package imports to bundles dynamically? -- *Raymond Augé* http://www.liferay.com/web/raymond.auge/profile (@rotty3000) Senior Software Architect *Liferay, Inc.* http://www.liferay.com (@Liferay) ___ OSGi

Re: [osgi-dev] wire admin add packages

2014-06-09 Thread Raymond Auge
(org.osgi.framework.hooks.weaving.WovenClass) [5] http://www.osgi.org/javadoc/r6/core/org/osgi/framework/hooks/weaving/WovenClass.html#getDynamicImports() [image: Inactive hide details for Raymond Auge ---06/09/2014 09:04:21 AM---Is it possible to use wireadmin to add new package imports t]Raymond Auge ---06/09/2014 09:04:21

Re: [osgi-dev] wire admin add packages

2014-06-09 Thread Raymond Auge
/osgi/framework/hooks/weaving/package-summary.html Tom [image: Inactive hide details for Raymond Auge ---06/09/2014 10:07:26 AM---Ok so weaving is limited to r6.. not good news. I'm working]Raymond Auge ---06/09/2014 10:07:26 AM---Ok so weaving is limited to r6.. not good news. I'm working

[osgi-dev] multi valued default for AD (metatype)

2014-06-11 Thread Raymond Auge
Hey all, How do you set a multi-valued default for an AD? Is it possible? -- *Raymond Augé* http://www.liferay.com/web/raymond.auge/profile (@rotty3000) Senior Software Architect *Liferay, Inc.* http://www.liferay.com (@Liferay) ___ OSGi Developer

[osgi-dev] core r6 in maven central

2014-06-30 Thread Raymond Auge
Hello all, I was wondering if with the recent release of core r6 (and that of eclipse luna) if it would show up in maven central any time soon? I note that the r5 bundles were published by David Bosschaert. David, do you know if this is in the works? It'd be nice to be able to start altering

Re: [osgi-dev] core r6 in maven central

2014-06-30 Thread Raymond Auge
Sorry, I was referring to: http://mvnrepository.com/artifact/org.osgi/org.osgi.core/5.0.0 - Ray On Mon, Jun 30, 2014 at 3:31 PM, Raymond Auge raymond.a...@liferay.com wrote: Hello all, I was wondering if with the recent release of core r6 (and that of eclipse luna) if it would show up

[osgi-dev] Fwd: Nexus: Staging Completed

2014-07-28 Thread Raymond Auge
Well look here. Please review. -- Forwarded message -- From: Nexus Repository Manager ne...@oss.sonatype.org Date: Mon, Jul 28, 2014 at 3:07 PM Subject: Nexus: Staging Completed To: Peter Kriens peter.kri...@aqute.biz, Stuart McCulloch mccu...@sonatype.com, Raymond Auge

[osgi-dev] JDK xml implementation classes

2014-08-05 Thread Raymond Auge
What's the best approach to allowing use of the com.sun.* xml packages provided by Java SE? There's a huge number of packages there and listing them out is tedious! Note that the problem is not direct use of container classes, but because the way the XML factories/providers handle creating

Re: [osgi-dev] JDK xml implementation classes

2014-08-05 Thread Raymond Auge
Is it wrong to use org.osgi.framework.bootdelegation=com.sun.org.apache.* - Ray On Tue, Aug 5, 2014 at 5:08 PM, Raymond Auge raymond.a...@liferay.com wrote: Specifically, I'm talking about com.sun.org.apache.* On Tue, Aug 5, 2014 at 5:03 PM, Raymond Auge raymond.a...@liferay.com wrote

Re: [osgi-dev] JDK xml implementation classes

2014-08-05 Thread Raymond Auge
://search.maven.org/#browse%7C-1002239558 On Tue, Aug 5, 2014 at 5:16 PM, Raymond Auge raymond.a...@liferay.com wrote: Is it wrong to use org.osgi.framework.bootdelegation=com.sun.org.apache.* - Ray On Tue, Aug 5, 2014 at 5:08 PM, Raymond Auge raymond.a...@liferay.com wrote: Specifically, I'm

Re: [osgi-dev] JDK xml implementation classes

2014-08-05 Thread Raymond Auge
about this (I thought it was on Karaf's website, but I can't find it), but the default config.properties that comes with Karaf lists them all out. On 5 August 2014 19:24, Raymond Auge raymond.a...@liferay.com wrote: An example of a osgi bundle which requires such packages

Re: [osgi-dev] JDK xml implementation classes

2014-08-06 Thread Raymond Auge
Raymond Auge raymond.a...@liferay.com: Thank you Felix. Do you know which mode of the framework classloader is required for bootdelegation to work when embedded? I tried the bootdelegation earlier, but I didn't not succeed. However, I am running embedded so that may play into my issue

Re: [osgi-dev] JDK xml implementation classes

2014-08-06 Thread Raymond Auge
:03 AM, Raymond Auge raymond.a...@liferay.com wrote: Sadly, it's not working for me. I'm using equinox btw. I'll keep trying though as I feel more confident that this is the correct approach. On Tue, Aug 5, 2014 at 11:58 PM, Raymond Auge raymond.a...@liferay.com wrote: Yes it is :) I

Re: [osgi-dev] JDK xml implementation classes

2014-08-06 Thread Raymond Auge
There is one caveat to the above. I must use org.osgi.framework.bundle.parent=framework otherwise, I return to the same original problem. But I'm ok with setting this. - Ray On Wed, Aug 6, 2014 at 11:02 AM, Raymond Auge raymond.a...@liferay.com wrote: On Wed, Aug 6, 2014 at 4:27 AM, Neil

[osgi-dev] osgi reference handling FUD

2014-08-13 Thread Raymond Auge
Hey All, Every other week a new developer comes around and starts asking those smarty pants questions: Q: .. what about holding references, and bundles/services coming and going during this time?? It makes me violent! Does anyone know of a document that discusses this topic so as I can simply

Re: [osgi-dev] bundle.getDataFile(string)

2014-08-13 Thread Raymond Auge
, it is a useful thing. I think the only caveat is that getDataFile may not be implemented (and of course that it is protected if a SecurityManager is active) on certain platforms. Regards Felix Am 09.08.2014 um 19:26 schrieb Raymond Auge raymond.a...@liferay.com: Hey All, Over

Re: [osgi-dev] osgi reference handling FUD

2014-08-13 Thread Raymond Auge
them this so they scrap Websphere! They will be so thankful for pointing this out to them! Or just let them read anti-fragile from Taleb. Kind regards, Peter Kriens On 13 aug. 2014, at 07:59, Raymond Auge raymond.a...@liferay.com wrote: Hey All, Every other week a new developer

Re: [osgi-dev] osgi reference handling FUD

2014-08-13 Thread Raymond Auge
Thanks Chris, et al. I may quote significant parts of this thread! - Ray On Wed, Aug 13, 2014 at 2:48 PM, chris.g...@kiffer.be wrote: Whenever you hold a reference to some other object you run a risk that that object will enter a state in which some method you invoke will not do what you

[osgi-dev] calling bundleContext.ungetService()

2014-08-26 Thread Raymond Auge
Hey all, I'd like some help to settle an internal debate. Is it bad form to *NOT* call bundleContext.ungetService() from a service tracker? -- *Raymond Augé* http://www.liferay.com/web/raymond.auge/profile (@rotty3000) Senior Software Architect *Liferay, Inc.* http://www.liferay.com

Re: [osgi-dev] calling bundleContext.ungetService()

2014-08-26 Thread Raymond Auge
… but remember, as a consumer you don’t know if the provider is a singleton or a factory, it’s an implementation detail of the provider. So it’s better to do the right thing all the time. Neil On 27 August 2014 at 01:09:26, Raymond Auge (raymond.a...@liferay.com) wrote: What about if I'm in a STC

[osgi-dev] Requirements and Capability uniqueness model?

2014-09-24 Thread Raymond Auge
Is there a provision or mechanism in ReqCap which might enforce uniqueness? One scenario for this is different versions of bundles requiring different DB schema of the same DB tables. We have modules which build/upgrade their schema on demand when new versions are installed.. but this breaks the

Re: [osgi-dev] Requirements and Capability uniqueness model?

2014-09-24 Thread Raymond Auge
singletons, which equate to the osgi.identity capability namespace, there is no notion of a capability singleton. Tom From:Raymond Auge raymond.a...@liferay.com To:OSGi Developer Mail List osgi-dev@mail.osgi.org Date:09/24/2014 09:55 AM Subject:[osgi-dev

Re: [osgi-dev] Requirements and Capability uniqueness model?

2014-09-24 Thread Raymond Auge
PM, Raymond Auge raymond.a...@liferay.com wrote: Oh man... singleton bundle... wow totally missed that one. Glad I wasn't writing the osgi cert at that moment. So yes this solves part of the model. The other part is to preventing a bundle requiring an older version of a schema from

[osgi-dev] semantic versioning enums (and other new types)

2014-09-24 Thread Raymond Auge
How do changes to enums affect versioning? I believe, theoretically, adding values to be binary compatible, and should therefore constitute a MINOR api change. Just making sure since this is not mentioned in the semver white paper. -- *Raymond Augé*

Re: [osgi-dev] Requirements and Capability uniqueness model?

2014-09-25 Thread Raymond Auge
-dev-boun...@mail.osgi.org -- On 9/25/14 09:41 , Raymond Auge wrote: Artifacts as API is a giant kludge. Furthermore adding/removing capabilities to/from the system is not specific to this use case, it could be used for a great many things. Perhaps there's

[osgi-dev] track trackers?

2014-09-30 Thread Raymond Auge
I believe the answer is no... but Is it possible to list out all the trackers in the registry? Particularly, given a type, is it possible to find who might be interested in it? I'm thinking along the lines of a DTO which might report this info. The goal is to observe as a developer the

Re: [osgi-dev] track trackers?

2014-09-30 Thread Raymond Auge
: +1 386 848 1781 mobile: +1 386 848 3788 From:Raymond Auge raymond.a...@liferay.com To:OSGi Developer Mail List osgi-dev@mail.osgi.org Date:2014/09/30 15:45 Subject:[osgi-dev] track trackers? Sent by:osgi-dev-boun...@mail.osgi.org

[osgi-dev] prototype scope and service trackers

2014-10-17 Thread Raymond Auge
Is it fair to say that, within a ServiceTracker I can safely replace: S s = bundle.getService(servlceReference); with ServiceObjectsS so = bundle.getServiceObjects(serviceReference); S s = so.getService(); which would mean that only where a bundle implemented more than one such tracker could

Re: [osgi-dev] prototype scope and service trackers

2014-10-17 Thread Raymond Auge
...@us.ibm.com office: +1 386 848 1781 mobile: +1 386 848 3788 From:Raymond Auge raymond.a...@liferay.com To:OSGi Developer Mail List osgi-dev@mail.osgi.org Date:2014/10/17 15:16 Subject:[osgi-dev] prototype scope and service trackers Sent by:osgi-dev

[osgi-dev] extender pattern using requirements capabilities

2014-12-19 Thread Raymond Auge
Hey All, I'm wondering about modelling an extender pattern using requirements capabilities header. Hopefully I can explain this in a way that can be understood: In order to implement the extender pattern we often define a new custom header which declares the opt-in on the extender. However,

Re: [osgi-dev] extender pattern using requirements capabilities

2014-12-19 Thread Raymond Auge
;; jsp.taglib.file=/META-INF/cooltags.tld;uses:=. Regards, Tim Sent from my iPhone On 19 Dec 2014, at 19:38, Raymond Auge raymond.a...@liferay.com wrote: Hey All, I'm wondering about modelling an extender pattern using requirements capabilities header. Hopefully I can explain

Re: [osgi-dev] extender pattern using requirements capabilities

2014-12-19 Thread Raymond Auge
already submitted as a RFC for R7. https://github.com/osgi/design/blob/master/rfps/rfp-0167-Manifest-Annotations.pdf This brings an exciting ease of use to the reqcap model! - Ray Regards Neil On 19 Dec 2014, at 21:41, Raymond Auge raymond.a...@liferay.com wrote: On Fri, Dec 19, 2014

[osgi-dev] filter syntax for version range with exclusive upper bound

2015-01-16 Thread Raymond Auge
Is this the best way to express this: ((version=1.0)(version=2.0)(!(version=2.0))) There does not appear to be a only a in the filter syntax. -- *Raymond Augé* http://www.liferay.com/web/raymond.auge/profile (@rotty3000) Senior Software Architect *Liferay, Inc.* http://www.liferay.com

Re: [osgi-dev] filter syntax for version range with exclusive upper bound

2015-01-16 Thread Raymond Auge
* http://www.osgi.org/ *hargr...@us.ibm.com* hargr...@us.ibm.com office: +1 386 848 1781 mobile: +1 386 848 3788 From:Raymond Auge raymond.a...@liferay.com To:OSGi Developer Mail List osgi-dev@mail.osgi.org Date:2015/01/16 20:16 Subject:[osgi-dev] filter

Re: [osgi-dev] filter syntax for version range with exclusive upper bound

2015-01-16 Thread Raymond Auge
On Fri, Jan 16, 2015 at 8:36 PM, Neil Bartlett njbartl...@gmail.com wrote: (version=1.0)(!(version=2.0)) Right... that's better! Thx -- *Raymond Augé* http://www.liferay.com/web/raymond.auge/profile (@rotty3000) Senior Software Architect *Liferay, Inc.* http://www.liferay.com (@Liferay)

Re: [osgi-dev] extender pattern using requirements capabilities

2015-01-13 Thread Raymond Auge
, at 16:27, Raymond Auge raymond.a...@liferay.com wrote: On the topic of @ProvideCapability, I was not able to create a parameterized annotation such as: @Retention(RetentionPolicy.CLASS) @ProvideCapability( name=jsp.taglib, ns = osgi.extender, version = ${@version} ) public @interface

Re: [osgi-dev] extender pattern using requirements capabilities

2015-01-13 Thread Raymond Auge
a parameterized extensions of @ProviderCapability? - Ray On Fri, Dec 19, 2014 at 5:06 PM, Raymond Auge raymond.a...@liferay.com wrote: On Fri, Dec 19, 2014 at 1:59 PM, Neil Bartlett njbartl...@gmail.com wrote: Incidentally, if you use the latest bnd(tools) development builds, you can get some

Re: [osgi-dev] extender pattern using requirements capabilities

2015-01-13 Thread Raymond Auge
On Tue, Jan 13, 2015 at 10:42 AM, Ferry Huberts maili...@hupie.com wrote: On 13/01/15 16:27, Raymond Auge wrote: On the topic of @ProvideCapability, I was not able to create a parameterized annotation such as: @Retention(RetentionPolicy.CLASS) @ProvideCapability( name=jsp.taglib, ns

Re: [osgi-dev] How to cleanly update/uninstall bundles

2015-02-13 Thread Raymond Auge
To my knowledge what you are speaking of is not intentionally supported by the dynamics of osgi. This topic comes up all the time, it's funny. If you must support in flight changes, then you have to implement this support in your code using concurrency constructs. Note that unregistering a

Re: [osgi-dev] getting a service filtered on my bundleId

2015-03-09 Thread Raymond Auge
isn't a component? -- *BJ Hargrave* Senior Technical Staff Member, IBM OSGi Fellow and CTO of the *OSGi Alliance* http://www.osgi.org/ *hargr...@us.ibm.com* hargr...@us.ibm.com office: +1 386 848 1781 mobile: +1 386 848 3788 From:Raymond Auge raymond.a...@liferay.com

  1   2   3   >