Re: [osgi-dev] Enroute 2 gogo shell provider on windows

2016-10-27 Thread Richard S. Hall
On 10/27/16 12:03 , Peter Kriens wrote: Neil Bartlett added JLine to the enRoute Gogo shell. Maybe this is causing the problem in your environment. You could add the standard Gogo shell to a repo and use that one. The latest Gogo release also has JLine integration, although I think the

Re: [osgi-dev] Resolving OSGi Uses Constraint Violations Using Anzo

2015-08-11 Thread Richard S. Hall
Hello, That is interesting and tools and visualizations to help in this area are certainly needed. However, depending on your OSGi framework you can get a pretty precise description of a uses constraint violation. For example, both the Felix framework and Equinox use the same resolver which

Re: [osgi-dev] Resolving OSGi Uses Constraint Violations Using Anzo

2015-08-11 Thread Richard S. Hall
...@mail.osgi.org on behalf of Richard S. Hall he...@ungoverned.org *Sent:* Tuesday, August 11, 2015 9:30 AM *To:* OSGi Developer Mail List *Subject:* Re: [osgi-dev] Resolving OSGi Uses Constraint Violations Using Anzo Hello, That is interesting and tools and visualizations to help in this area

Re: [osgi-dev] Why are there restrictions to access the specs and the tcks?

2015-05-04 Thread Richard S. Hall
On 5/4/15 10:54 , Christian Schneider wrote: I just went through the process of getting access to the OSGi tcks at apache. In the end after signing an agreement and explaining what I need to test I got access to the tck jars. Getting them to work against in my case aries blueprint required

Re: [osgi-dev] Why are there restrictions to access the specs and the tcks?

2015-05-04 Thread Richard S. Hall
On 5/4/15 11:07 , Christian Schneider wrote: On 04.05.2015 16:59, Richard S. Hall wrote: On 5/4/15 10:54 , Christian Schneider wrote: After running the blueprint tests I got 28 test failures. I am not sure how well I will be able to work with these as I do not have the test sources. So

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

2015-03-09 Thread Richard S. Hall
On 3/9/15 11:29 , elias vasylenko wrote: So the MyFum service might be used by other bundles too, but MyFoo will always only use MyFum, not any Fum implementations from other bundles? Why even use the service registry at all when MyFoo fetches its implementation of a Fum? If it will only

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

2015-02-13 Thread Richard S. Hall
On 2/13/15 11:37 , Christian Schneider wrote: I had a longer discussion with Guillaume Nodet about how to shut down bundles cleanly. The main question was if you can cleanly shut down bundles with just the OSGi APIs or if we are missing something. So the thing to define is: what does clean

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

2014-09-25 Thread Richard S. Hall
On 9/25/14 09:16 , Raymond Auge wrote: On Thu, Sep 25, 2014 at 9:08 AM, Peter Kriens peter.kri...@aqute.biz mailto:peter.kri...@aqute.biz wrote: Somebody in your system must do the schema migration. This bundle should create a synthetic bundle with the capability that describes

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

2014-09-25 Thread Richard S. Hall
to use it or not...and unfortunately, they end up using it whether they need to or not. - richard On Thu, Sep 25, 2014 at 9:39 AM, BJ Hargrave hargr...@us.ibm.com mailto:hargr...@us.ibm.com wrote: From: Richard S. Hall he...@ungoverned.org mailto:he...@ungoverned.org I would

Re: [osgi-dev] questions about the bundle class search order

2013-11-27 Thread Richard S. Hall
On 11/26/13, 02:21 , Anacristing wrote: Hello, I'm studying osgi.core-5.0 specification. I don't understand step 6 of search order in the section 3.9.4. It says: If the class or resource is in a package that is exported by the bundle or the package is imported by the bundle (using

Re: [osgi-dev] Diagnostics for extender based technologies like blueprint, ds or spring dm

2013-10-09 Thread Richard S. Hall
On 10/9/13 05:39 , Christian Schneider wrote: Nowadays dependency injection technologies like blueprint, ds and spring dm are used a lot in OSGi. All these have in common that they are extender based. So instead of using an activator you have an extender that detects if you use such a

Re: [osgi-dev] Diagnostics for extender based technologies like blueprint, ds or spring dm

2013-10-09 Thread Richard S. Hall
On 10/9/13 08:42 , Christian Schneider wrote: On 09.10.2013 14:24, Richard S. Hall wrote: On 10/9/13 05:39 , Christian Schneider wrote: Nowadays dependency injection technologies like blueprint, ds and spring dm are used a lot in OSGi. All these have in common that they are extender based. So

Re: [osgi-dev] Diagnostics for extender based technologies like blueprint, ds or spring dm

2013-10-09 Thread Richard S. Hall
On 10/9/13 09:12 , David Bosschaert wrote: Well at this stage I think we're really talking about requirements. I think one of the core requirements is to find out in a more standard way whether a particular extender completed its work successfully. Actually, a specific mechanism was proposed

Re: [osgi-dev] Diagnostics for extender based technologies like blueprint, ds or spring dm

2013-10-09 Thread Richard S. Hall
On 10/9/13 09:59 , Christian Schneider wrote: On 09.10.2013 15:50, Richard S. Hall wrote: On 10/9/13 09:15 , Christian Schneider wrote: On 09.10.2013 14:50, Richard S. Hall wrote: Again, the extender can already do this with no extra support from the framework, simply implement an activator

Re: [osgi-dev] Diagnostics for extender based technologies like blueprint, ds or spring dm

2013-10-09 Thread Richard S. Hall
On 10/9/13 11:21 , Felix Meschberger wrote: Hi Am 09.10.2013 um 05:24 schrieb Richard S. Hall: On 10/9/13 05:39 , Christian Schneider wrote: Nowadays dependency injection technologies like blueprint, ds and spring dm are used a lot in OSGi. All these have in common that they are extender

Re: [osgi-dev] Fabric Service Model - Request for feedback

2013-09-11 Thread Richard S. Hall
Resending my reply from yesterday since my original message didn't seem to go through... Yes, you can do some of these sorts of things with iPOJO. First, iPOJO has the notion of a service-level service dependency as well as an implementation-level service dependency (which is the level

Re: [osgi-dev] Fabric Service Model - Request for feedback

2013-09-10 Thread Richard S. Hall
Yes, you can do some of these sorts of things with iPOJO. First, iPOJO has the notion of a service-level service dependency as well as an implementation-level service dependency (which is the level of DS dependencies). Second, iPOJO caches services references within a service method

Re: [osgi-dev] Weaving Hook question

2012-06-27 Thread Richard S. Hall
On 6/27/12 09:44 , Felix Mayerhuber wrote: Hi @all, I've got a question concering the Weaving Hook class modification possibility. I use a Weaving Hook to enhance some classes which have a specific annotation. I add an interface to the classes and add the implementations for the methods for

Re: [osgi-dev] Re: Bundle ActivationPolicy question

2012-01-12 Thread Richard S. Hall
/1/11 Richard S. Hall he...@ungoverned.org mailto:he...@ungoverned.org On 1/11/12 12:47 , Guillaume Sauthier (OW2) wrote: Our use case involves FileInstall for starting Bundles in a directory. When runned within Felix, we end up with a RESOLVED lazy bundle triggered to load

Re: [osgi-dev] Re: Bundle ActivationPolicy question

2012-01-11 Thread Richard S. Hall
a Bundle ? The framework doesn't arbitrarily make start/stop decisions. That is the job of the management agent. - richard --G 2012/1/11 Richard S. Hall he...@ungoverned.org mailto:he...@ungoverned.org On 1/11/12 11:24 , Guillaume Sauthier (OW2) wrote: With Felix, we experienced

Re: [osgi-dev] Re: Bundle ActivationPolicy question

2012-01-11 Thread Richard S. Hall
by DS and iPOJO. Neil On Wednesday, 11 January 2012 at 17:20, Richard S. Hall wrote: On 1/11/12 12:04 , Neil Bartlett wrote: Guillaume, In this case the bundle will be fully started, i.e. forced to start without regard for its policy. Because of this I recommend that you *always* start

Re: [osgi-dev] Re: Bundle ActivationPolicy question

2012-01-11 Thread Richard S. Hall
that eager activation should always be possible, but following the bundle's policy makes most sense to me as a default. Neil On Wednesday, 11 January 2012 at 17:45, Richard S. Hall wrote: On 1/11/12 12:34 , Neil Bartlett wrote: Unfortunately I have seen many errors with bundles that assume

Re: [osgi-dev] Re: Bundle ActivationPolicy question

2012-01-11 Thread Richard S. Hall
or not classes have already been loaded from it. Felix implements (1) and Equinox implements (2), I believe. So, you could also see differences here, but not sure if this is impacting you. - richard --G 2012/1/11 Richard S. Hall he...@ungoverned.org mailto:he...@ungoverned.org On 1/11

Re: [osgi-dev] Swing Apps and OSGI...

2011-09-29 Thread Richard S. Hall
On 9/29/11 1:26 PM, Neil Bartlett wrote: Swing and OSGi generally work together fine, give or take a few little oddities with dynamic changes. Angelo's blog post documents how to work around those. I also found issues with custom controls and custom look-and-feel classes, since those are

Re: [osgi-dev] BundleEvent and others extend EventObject even thoughthey aren't serializable

2011-08-04 Thread Richard S. Hall
On 8/4/11 1:27 PM, david.humen...@l-3com.com wrote: Isn't that the point of the transient to mark items of a serializable class that can't be serialized? Is there a reason that shouldn't be done? I'm personally fine with it. - richard David Humeniuk *From:*Richard S. Hall [mailto:he

Re: [osgi-dev] Restart OSGi framework programatically

2011-06-08 Thread Richard S. Hall
On 6/8/11 11:20, Felix Meschberger wrote: Hi, Am Mittwoch, den 08.06.2011, 17:12 +0200 schrieb Eugen Reiswich: Hi folks, I need to restart an OSGi application programmatically in Java. How can I do this? AFAICT the official way is to call Bundle.update() on the system bundle. True. BUT:

Re: [osgi-dev] Restart OSGi framework programatically

2011-06-08 Thread Richard S. Hall
On 6/8/11 11:43, Felix Meschberger wrote: In fact, what we do in the Sling launcher is that we create root class loader to load the framework with and on framework restart we throw away the old one and create a new one. I think this further helps PermGen GC --- but I would be happy to learn

Re: [osgi-dev] Q on PackageAdmin#refreshPackages()

2011-05-06 Thread Richard S. Hall
On 5/5/11 21:41, Ikuo Yamasaki wrote: Hi OSGi Experts, I have a question(confirmation) on Package Admin Service Spec in R4.2 Core Spec. == [Precondition] Bundle-A exports package p (version 1.0). Bundle-B imports package p (version 1.0). [Then] 1.

Re: [osgi-dev] Can R4.2 CT run on CDC FP1.1 ?

2011-04-21 Thread Richard S. Hall
On 4/21/11 0:21, Ikuo Yamasaki wrote: Hi all, OSGi R4.2 CT is based on bnd. I have several questions on it: Q1. Is the CT (and bnd) designed for running on CDC FP1.1 ? (under the condition that the Implementation to be tested can cun on CDC FP1.1.) Q2. If Q1 is yes (it should run), how can I

Re: [osgi-dev] Can R4.2 CT run on CDC FP1.1 ?

2011-04-21 Thread Richard S. Hall
On 04/21/2011 06:31 PM, Ikuo Yamasaki wrote: Hi Richard, Thank you for the information. That page seems useful. I'll try it as written later. However, I had a private mail which recommends me to ask the question to not to OSGi DEV ML but OSGi members' ML because the CT is not public to non

Re: [osgi-dev] High performance wiring across bundles

2011-04-13 Thread Richard S. Hall
On 4/13/11 5:03, Holger Hoffstätte wrote: On 13.04.2011 05:49, David Erickson wrote: I'm working on an application where performance is critical, but we'd like to take advantage of the dynamism inherent in OSGi to allow in place updates and feature additions. I've played with Spring DM and

Re: [osgi-dev] Is it possible to stop the framework inside an Activator start method?

2011-03-09 Thread Richard S. Hall
There is no way for a bundle to get the framework to abort startup. The best you can do is have your bundle run in a lower start level than all other bundles and have the framework start up in this lower start level first. Then once the framework started (i.e., your bundle gets the framework

Re: [osgi-dev] Is it possible to stop the framework inside an Activator start method?

2011-03-09 Thread Richard S. Hall
On 3/9/11 11:49, Andrea Zoppello wrote: Hi All, Thx for the answers,... very interestin. It's clear to me that the System.exit( ) is evil, is not a solution BTW i want to avoid, because i use equinox within servlet bridge and System.exit() will cause problem in that situation.. The

Re: [osgi-dev] Classloader accessibility and ServiceTracker.open(true)

2011-02-22 Thread Richard S. Hall
On 2/22/11 14:23, Scott Lewis wrote: But I'm sort of wondering...why couldn't/shouldn't every ServiceFactory be considered 'wacky'? :) In the good old days, bundles did not register services for other bundles, thus all service factories came from the bundle providing the service. Such

Re: [osgi-dev] Bundle ClassLoader class search order

2011-01-30 Thread Richard S. Hall
On 1/30/11 15:39, Lindsay Smith wrote: Hi everyone, Section 3.8.4 of the osgi core spec 'Overall Search Order' describes the order that classes are loaded by the bundle class loader. I'd like to understand better the rule that the Import-Package list has precedence of the bundle's embedded

Re: [osgi-dev] Are Service-to-service dependencies expressed by DS?

2011-01-03 Thread Richard S. Hall
On 1/3/11 13:54, Michael Köndling wrote: H. Cervantes and R.S. Hall write in Beanome: A Component Model for the OSGi Framework http://www.humbertocervantes.net/papers/VIVIAN2002.pdf that there are three types of dependencies in OSGi: Bundle-to-package Bundle-to-service Service-to-service I

Re: [osgi-dev] Are Service-to-service dependencies expressed by DS?

2011-01-03 Thread Richard S. Hall
On 1/3/11 14:02, Neil Bartlett wrote: DS principally defines *components*. A component can depend on a service by declaring areference element in its XML descriptor (or if you're using the cool Bnd annotations, an @Reference annotation in the Java source). In addition a component can itself

Re: [osgi-dev] Bundle-ActivationPolicy: exclude directive

2010-12-27 Thread Richard S. Hall
On 12/27/2010 10:12 PM, Bhumana, Kiran wrote: Referring to r4.core spec; In section 4.4.6.2 that describes lazy activation policy, there is an exclude directive (list of classes) that can be provided . What does it mean? How is it expected to be used? I believe it is used to exclude

Re: [osgi-dev] Bundle-ActivationPolicy: exclude directive

2010-12-27 Thread Richard S. Hall
activator but just exports packages (like a library bundle use case) ? Yes. Are there other use cases? No. - richard Thanks, Kiran. *From:*osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] *On Behalf Of *Richard S. Hall *Sent:* Monday, December 27, 2010 7:25 PM

Re: [osgi-dev] OSGi Dev Planet?

2010-12-07 Thread Richard S. Hall
On 12/7/10 11:37, BJ Hargrave wrote: OK, the official Planet OSGi feed is now available at http://www.osigi.org/Planet/Feed. Subscribe and read... All these years and you still can't spell OSGi... -- *BJ Hargrave* Senior Technical Staff Member, IBM OSGi Fellow and CTO of the _OSGi Alliance_

Re: [osgi-dev] Maximum number of bundles and services in one OSGi framework

2010-12-06 Thread Richard S. Hall
Seems like you'd be better off breaking the one-component-per-bundle model and instead map many components into a single bundle. - richard On 12/6/10 14:02, Martin Petzold wrote: Hi Simon. For my thesis I'm working on a dynamic distributed simulation architecture based on OSGi and with

Re: [osgi-dev] Maximum number of bundles and services in one OSGi framework

2010-12-06 Thread Richard S. Hall
, then you shouldn't need to lose any dynamism, since service are more lightweight dynamic than bundles. Just enable/disable the component. - richard Am 06.12.2010 20:19, schrieb Richard S. Hall: Seems like you'd be better off breaking the one-component-per-bundle model and instead map many

Re: [osgi-dev] Maximum number of bundles and services in one OSGi framework

2010-12-06 Thread Richard S. Hall
not sure the performance strain will be worth it. - richard Am 06.12.2010 21:09, schrieb Richard S. Hall: On 12/6/10 14:33, Martin Petzold wrote: Thanks for any feedback! This is already possible, it's up to the modeler, but you then lose some dynamism. The modeling formalism is based on a class

Re: [osgi-dev] Utility package as a bundle?

2010-12-02 Thread Richard S. Hall
On 12/2/10 9:59, Jeff McAffer wrote: You are making a particular assumption about the definition of utility class. Is the expectation that util classes never appear in API? It's not clear that everyone on this thread is working with that assumption (might just be me who is/was not).

Re: [osgi-dev] Utility package as a bundle?

2010-12-02 Thread Richard S. Hall
On 12/2/10 13:04, Jeff McAffer wrote: Can you not see that Path would be defined as a utility or not by the bundle that uses it? Give me some credit. Of course. Well, you appear to be wanting to classify a given class as globally a utility or not, but this depends on how it is used. If

Re: [osgi-dev] Service dependencies

2010-11-30 Thread Richard S. Hall
To be clear, DS == Declarative Services. The core OSGi API allows you to manually track service dependencies, but does not automate this process for you. For automated service dependency tracking, you need a service-oriented component framework, like DS, iPOJO, or Blueprint. - richard On

Re: [osgi-dev] Utility package as a bundle?

2010-11-30 Thread Richard S. Hall
A simple library bundle would likely just export the packages it wishes to share. Not all bundles need to provide services. Services decouple bundles from implementation details, enabling multiple providers and dynamism. Package sharing is another valid form of bundle collaboration, it is

Re: [osgi-dev] Problem with service replacement using declarative services

2010-09-27 Thread Richard S. Hall
Services are more dynamic than packages; they can come and go at will, package wiring cannot. Once a bundle is wired to a given package, it will not wire to another provider until the framework is refreshed. Performing an update is not sufficient. You must always refresh the framework to

Re: [osgi-dev] ConfigAdmin and DS Component Factory

2010-03-11 Thread Richard S. Hall
On 3/11/10 9:29, Simon J Archer wrote: Jeff is right. A DS component factory is used to programmatically manufacture multiple DS components from the same component XML. Of course each manufactured DS component can interact with ConfigurationAdmin as defined by the DS spec and described in

[osgi-dev] Re: Standa alone client example...

2010-02-28 Thread Richard S. Hall
This is not really a topic for the osgi-dev mailing list...so responses should probably stay confined to the Felix mailing list. - richard On 2/28/10 4:46 PM, Tony Anecito wrote: Hi, I am looking for a simple stand alone client example using Felix. I have a core jar, services jar and then

Re: [osgi-dev] RequiredBundle clarification - PackageAdmin spec

2009-12-04 Thread Richard S. Hall
On 12/4/09 10:06, Alan Keane wrote: Hi Tom, Thanks for the reply.. makes sense I was just a bit confused by the statement -/* *'if an exported package/ /of the bundle it references has been updated or removed'/ by refreshPackages() - along with some differences I have noticed between felix

Re: [osgi-dev] RequiredBundle clarification - PackageAdmin spec

2009-12-04 Thread Richard S. Hall
]); +moduleList.add(dependents[depIdx]); } Thanks, Alan -Original Message- From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Richard S. Hall Sent: 04 December 2009 15:11 To: OSGi Developer Mail List Subject: Re: [osgi-dev] RequiredBundle

Re: [osgi-dev] OSGI versus web start...

2009-12-02 Thread Richard S. Hall
Web Start and OSGi serve different purposes, although (if I recall correctly) there is some overlap with service orientation. Web Start's main focus is making it easy to deploy and use Java-based apps off of the web and onto your desktop. OSGi does not really address this. Assuming you have

Re: [osgi-dev] How to reliably detect that Configuration Admin is *not* present?

2009-11-16 Thread Richard S. Hall
On 11/16/09 11:55, David Bosschaert wrote: Alan D. Cabrera wrote: On Nov 13, 2009, at 7:51 AM, BJ Hargrave wrote: If you optionally import the cm package and don't get it when you resolve, then you will never see CA, so just use the defaults. I'm wondering if this is true. Can't another

Re: [osgi-dev] Help on Security Permission

2009-09-13 Thread Richard S. Hall
If you run with security enabled, then you just don't grant them that permission. - richard On 9/13/09 20:06, Abhishek kapoor wrote: Dear Members, Is there any way to stop bundle from un-installing other bundles in the framework ? Many Thanks Sunny

Re: [osgi-dev] Circular Dependency

2009-08-29 Thread Richard S. Hall
You can break the common bundle down into more bundles to lessen the impact. If you can separate the interfaces to put them into the implementation bundles, then you should be able to separate them into different common bundles. Then only the bundles dependent upon a particular interface will

Re: [osgi-dev] Circular Dependency

2009-08-28 Thread Richard S. Hall
Circular dependencies are supported in OSGi. - richard On 8/28/09 14:30, cato kato wrote: Hi, I have a simple problem, but because i am newbei i cannot find the solution :) I have two (or more) bundles. Lets say A and B. Both A (db pool mech.) and B (snmp and alarm) depends each other. So

Re: [osgi-dev] Circular Dependency

2009-08-28 Thread Richard S. Hall
On 8/28/09 14:54, Craig Phillips wrote: Hi, First of all... Legacy stuff needs to be fixed and remove this phenomenon... From Grady Booch and prior / recent, there should be ZERO TOLERANCE for circular dependencies amongst packages PERIOD; Second, NO ONE should be designing bundles with

Re: [osgi-dev] Questions on DS Spec

2009-07-27 Thread Richard S. Hall
Ever since the early days of Service Binder, the static policy has meant that the component ignores service additions after activation (i.e., it doesn't deactivate/reactivate), the only changes that impact a component with static policies are removal of services being used by the component (at

Re: [osgi-dev] Questions on DS Spec

2009-07-27 Thread Richard S. Hall
On 7/27/09 12:13 PM, Felix Meschberger wrote: Hi Ikuo Yamasaki schrieb: If how the current DS impl of Equinox works is not a bug, I agree with Stoyan. Otherwise, unfortunately I would way the current DS impl of Equinox has a bug. I would like to know how other DS impl, felix,

Re: [osgi-dev] Questions on DS Spec

2009-07-27 Thread Richard S. Hall
On 7/27/09 2:30 PM, Felix Meschberger wrote: Hi, Richard S. Hall schrieb: To be clear, any additions with static policy should be ignored, not just 1..1. For example, static 0..n would not see newly arriving services after the component was activated, no matter if it was started with 0

Re: [osgi-dev] Questions on DS Spec

2009-07-27 Thread Richard S. Hall
On 7/27/09 3:07 PM, Felix Meschberger wrote: Hi, Richard S. Hall schrieb: On 7/27/09 2:30 PM, Felix Meschberger wrote: Hi, Richard S. Hall schrieb: To be clear, any additions with static policy should be ignored, not just 1..1. For example, static 0..n would not see newly

Re: [osgi-dev] 4.2 Draft Framework Launch API

2009-07-03 Thread Richard S. Hall
On 7/3/09 5:00 PM, Alan D. Cabrera wrote: On Jul 1, 2009, at 4:17 PM, BJ Hargrave wrote: Consider init() to be the first part of starting the framework which leaves the system bundle in the STARTING state at start level 0 with a valid BundleContext. start() then completes starting the

Re: [osgi-dev] Resolution of bundles importing and exporting the same package

2009-06-19 Thread Richard S. Hall
On 6/19/09 8:31 AM, Guillaume Nodet wrote: Let's say I have the following bundles: foo-1.0: Export-Package: a;version=1.0 Import-Package: a;version=1.0 foo-2.0: Export-Package: a;version=2.0 Import-Package: a;version=2.0 I first install foo-2.0 on the runtime, then bundle foo-1.0. Reading

Re: [osgi-dev] Bundle Native Code

2009-05-14 Thread Richard S. Hall
No. It only looks at the native libraries of the bundle doing the loadLibrary(). Require-Bundle imports everything the other bundle exports. Bundles only export packages, not native libraries. - richard On 5/14/09 5:18 PM, Obele, Azubuko wrote: Does the Bundle Native-Code mechanism use

Re: [osgi-dev] isAssignableTo() and the system bundle

2009-04-27 Thread Richard S. Hall
. Regards, Alan On Apr 14, 2009, at 8:13 PM, Richard S. Hall wrote: Maybe the JavaDoc needs to be updated to more closely resemble the spec text

Re: [osgi-dev] isAssignableTo() and the system bundle

2009-04-14 Thread Richard S. Hall
I think you are not correct. If a bundle has no wire to the package, which system bundle shouldn't since it cannot import, then it should get back all service references. I think the spec assumes you are using reflection if you have no wire to the package. I cannot remember if this behavior

Re: [osgi-dev] isAssignableTo() and the system bundle

2009-04-14 Thread Richard S. Hall
Maybe the JavaDoc needs to be updated to more closely resemble the spec text. - richard On 4/14/09 10:44 PM, Stuart McCulloch wrote: 2009/4/15 Richard S. Hall he...@ungoverned.org mailto:he...@ungoverned.org I think you are not correct. If a bundle has no wire to the package, which

Re: [osgi-dev] Updating bundles

2009-01-15 Thread Richard S. Hall
Alan D. Cabrera wrote: When a bundle updates, I guess it can switch from being a fragment bundle to a host bundle depending on the contents of the updated bundle. Can the symbolic name change so long we there is no other bundle with that name and version? I don't see where it says that it

Re: [osgi-dev] Updating bundles

2009-01-15 Thread Richard S. Hall
Alan D. Cabrera wrote: On Jan 15, 2009, at 8:02 PM, Richard S. Hall wrote: Alan D. Cabrera wrote: When a bundle updates, I guess it can switch from being a fragment bundle to a host bundle depending on the contents of the updated bundle. Can the symbolic name change so long we

Re: [osgi-dev] Updating bundles

2008-12-26 Thread Richard S. Hall
Alan D. Cabrera wrote: On Dec 26, 2008, at 11:49 AM, Richard S. Hall wrote: Old revision: exports foo v1, bar v1, cdr v1 New revision: exports cdr v2, car v1 imports foo v1 (from old revision), bar v1 (from old revision) So, it seems that we have bundles within bundles. Each bundle may

Re: [osgi-dev] separating api from impl rant

2008-12-17 Thread Richard S. Hall
Niclas Hedhman wrote: On Wed, Dec 17, 2008 at 11:45 PM, Richard S. Hall he...@ungoverned.org wrote: For the most part, I believe what you describe is possible with what OSGi provides. Clearly, a lot of legacy code makes this difficult, but that is not the fault of OSGi (nor the legacy code

Re: [osgi-dev] OSGi and obfuscation

2008-12-11 Thread Richard S. Hall
Richard S. Hall wrote: I don't see any reason why you cannot obfuscate your bundle's content, but you cannot obfuscate the names of packages your bundle imports or exports. I guess I could extend that to say, unless your imports and exports are only among bundles which you have similarly

Re: [osgi-dev] Should Bundle.loadClass throw NoClassDefFoundError

2008-08-12 Thread Richard S. Hall
Niclas Hedhman wrote: On Tue, Aug 12, 2008 at 1:44 PM, Richard S. Hall [EMAIL PROTECTED] wrote: Well, we are talking about ones you should expect to see...NCDFE are reasonably common when loading classes, especially for beginners in the OSGi environment. So, assuming that there is no value

Re: [osgi-dev] Should Bundle.loadClass throw NoClassDefFoundError

2008-08-12 Thread Richard S. Hall
that the spec allows the way we implement it in Felix. regards, Karl Tom Niclas Hedhman ---08/12/2008 01:17:05 AM---On Tue, Aug 12, 2008 at 1:44 PM, Richard S. Hall [EMAIL PROTECTED] wrote: Well, we are talkin From: Niclas Hedhman [EMAIL PROTECTED] To: OSGi Developer Mail List osgi

Re: [osgi-dev] Should Bundle.loadClass throw NoClassDefFoundError

2008-08-11 Thread Richard S. Hall
BJ Hargrave wrote: NoClassDefFoundError is an Error which is unchecked and can be thrown anywhere. Given that Bundle.loadClass is patterned after ClassLoader.loadClass, one should expect similar results. I agree that it should be possible to throw it from Bundle.loadClass(), but the fact

Re: [osgi-dev] Bundles importing and exporting the same package

2008-08-02 Thread Richard S. Hall
Alan Cabrera wrote: On Aug 2, 2008, at 10:27 AM, BJ Hargrave wrote: So we have: foo: Export-Package: a,b;uses=a Import-Package: a bar: Import-Package: a, b car: Export-Package: a Thus we have 2 exporters for a and one for b. Who ever imports should use the same a that foo uses. So we

Re: [osgi-dev] Uninstall bundle and exported packages

2008-07-29 Thread Richard S. Hall
Thomas Watson wrote: Hmmm... I stand corrected on my last post about the specification not allowing bundles to wire to exports from uninstalled bundles. I will have to look back at the CPEG discussions. I really do remember us discussing that exports from uninstalled bundles should not be

Re: [osgi-dev] Uninstall bundle and exported packages

2008-07-29 Thread Richard S. Hall
james wallis wrote: Anyone tell how to get off of this mailing list? I no longer need it. I think if you click on that link in the footer of the message, then it will give you some clues. - richard - Original Message From: Thomas Watson [EMAIL PROTECTED] To: OSGi Developer

Re: [osgi-dev] Patterns for dealing with DS activation failures?

2008-07-26 Thread Richard S. Hall
Colin Fleming wrote: Great, thanks for all the advice. We're actually thinking about using Felix as our RI, that's probably the way to go for us. We would certainly be happy if you use Felix, but keep in mind that neither iPOJO nor our DS implementation require the Felix framework; they

Re: [osgi-dev] Patterns for dealing with DS activation failures?

2008-07-26 Thread Richard S. Hall
Colin Fleming wrote: Ok, thanks! I thought I remembered reading that DS couldn't be implemented as a generic bundle - that it required access to internal classes to perform it's magic, and thus the implementation was tied to the framework? I can't remember the details though... That was true

Re: [osgi-dev] Setting Service Properties in DS and iPOJO

2008-06-12 Thread Richard S. Hall
Ikuo Yamasaki wrote: Hi, OSGi Experts It seems to me that, in OSGi, it would be important to decouple a service object and the service properties when registering a service in order to increasie re-usability of components by adopting some declarative ways. I wonder if it is possible to set

Re: [osgi-dev] Fragments, Felix, SCR/DeclarativeServices and Inheritance

2008-06-06 Thread Richard S. Hall
BJ Hargrave wrote: I don't think you have demonstrated that you need to use fragments here. Fragments should only be used when necessary and there is no better way. You can easily have the base bundle export the package with the base class. A second bundle can import that package, extend

Re: [osgi-dev] osgi ri and mobile phone

2008-04-08 Thread Richard S. Hall
Sinisha Djukic wrote: Can osgi go with J2ME ? Is there any compatibility between osgi and j2me? OSGi does not need many things from the JVM, but one thing it does need is classloaders. J2ME, or CLDC, generally does not support that, so running OSGi on such an execution environment