Re: OSGi [PREVIOUSLY]Re: Maven Build

2017-10-03 Thread Peter
Thanks Gregg, those are very good points. Cheers, Peter. On 2/10/2017 10:35 PM, Gregg Wonderly wrote: I like the constructor argument mechanism as it becomes thread local detail, rather than VM level detail. Too many “platform” things in Java have ended up being “service type platform” lik

Re: OSGi [PREVIOUSLY]Re: Maven Build

2017-10-02 Thread Gregg Wonderly
I like the constructor argument mechanism as it becomes thread local detail, rather than VM level detail. Too many “platform” things in Java have ended up being “service type platform” like, instead of multiple services platform like. Keeping things thread of execution specific helps us suppo

Re: OSGi [PREVIOUSLY]Re: Maven Build

2017-10-02 Thread Peter
I'm considering api that may be required for improved OSGi support. In order for an OSGi environment to deserialize a proxy, it needs to first install a bundle for the proxy and resolve any dependencies. For OSGi a ProxyPreparer must first locally marshall (create a MarshalledInstance) a java

Re: OSGi [PREVIOUSLY]Re: Maven Build

2017-09-27 Thread Peter
Yes, I've been thinking about it. My current thoughts; ServiceUI can be accessed through net.jini.lookup.ServiceAttributesAccessor, so you can unmarshall ServiceUI objects, without unmarshalling the service itself. However I haven't given much consideration to locating codebases for ServiceU

Re: OSGi [PREVIOUSLY]Re: Maven Build

2017-09-27 Thread Peter
Yes that's correct. Sun chose to use the ClassLoader to represent the service's pincipal, dynamically granting permission after proxy verification. So that's what we have available on the call stack to use when performing authorisation permission checks: 1. Client's Principal. (Principal

Re: OSGi [PREVIOUSLY]Re: Maven Build

2017-09-27 Thread Dennis Reedy
Hi Peter, In reading your missive I'm not sure I understand when you say "Maven will present a new alternative of maximum sharing, where different service principals will share the same identity.", or "Maven class resolution". Are you referring to an approach where a service may declare it's code

Re: OSGi [PREVIOUSLY]Re: Maven Build

2017-09-27 Thread Gregg Wonderly
Do you have anything planned around ServiceUI? I really use ServiceUI as a discovery mechanism to find services which export a UI that a user can interact with. What can happen at registration time, besides Entry specification to help with codebase where ServiceUI bits are at? Are you just re

Re: OSGi Bundles for services

2017-02-24 Thread Peter
True, better to start small and grow, just looking for some buy in, 's all. Cheers, Peter. On 24/02/2017 9:43 AM, Niclas Hedhman wrote: I am sure there a lot of devils in the details here, but I think that you have something that is workable, and better to get something smaller (but evolvable)

Re: OSGi Bundles for services

2017-02-23 Thread Niclas Hedhman
I am sure there a lot of devils in the details here, but I think that you have something that is workable, and better to get something smaller (but evolvable) out the door for people to try than to spend eternity debating the better approach. Cheers Niclas On Fri, Feb 24, 2017 at 7:14 AM, Peter

Re: OSGi Bundles for services

2017-02-23 Thread Peter
When you think about classes with annotations in this environment, it also means that classes at the client may not return to the originating ClassLoader as boomerangs, unless they're resolved by a common imported package by the proxy bundle. When the boomerang returns it will be loaded in a Pr

Re: OSGi Bundles for services

2017-02-23 Thread Peter
In case you're wondering why I've created bundles / modules structured like below, if the endpoint was deserialized into the service implementation bundle instead of the proxy bundle, it may not be able to see deserialized classes from the proxy bundle's transitive imports. In effect the proxy b

Re: OSGi Bundles for services

2017-02-22 Thread Peter
Hmm, ASCII keeps getting scrubbed, so here it is: SERVER JVM __ | |

Re: OSGi Bundles for services

2017-02-22 Thread Peter
Sent from my Samsung device.     Include original message Original message From: Peter Sent: 23/02/2017 03:26:15 pm To: dev@river.apache.org Subject: OSGi Bundles for services I've attached some ASCII of the relationship between server and client jvm bundles. The ClassLoader at the

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-17 Thread Peter
Mic, I've taken the liberty to copy paste your questions into the list below (my apologies if I've missed some), my answers to your questions follow. I'll apologise in advance, as I don't have time to answer more follow up questions, perhaps others on the list might be able to assist. Regar

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-16 Thread Michał Kłeczek
ll arguments / assumptions. Sometimes the right questions are more important than answers. Regards, Peter. Sent from my Samsung device. Include original message Original message From: Peter Sent: 15/02/2017 12:58:55 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-16 Thread Gregg Wonderly
ght questions are more >> important than answers. >> >> Regards, >> >> Peter. >> >> Sent from my Samsung device. >> Include original message >> Original message >> From: Peter >> Sent: 15/02/2017 12:58:55 pm >> To

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-15 Thread Peter
@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy Miscommunication... as usual :D Anyway - I was really interested why you find the need for the bootstrap  proxy to be necesarilly a dynamic proxy (since you seemed to find it very important from the

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-15 Thread Michał Kłeczek
In fact I encourage you to do so as this can only serve to increase understanding. Cheers, Peter Sent from my Samsung device. Include original message Original message From: Michał Kłeczek Sent: 15/02/2017 05:00:14 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was:

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-15 Thread Peter
ginal message Original message From: Peter Sent: 15/02/2017 07:01:06 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy Oh I thought it was part of your SmartProxyWrapper? Who'd have thought you were talking about my wo

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-15 Thread Peter
Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 15/02/2017 05:00:14 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy They are valid questions and you haven't answer

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-14 Thread Michał Kłeczek
arguments / assumptions. Sometimes the right questions are more important than answers. Regards, Peter. Sent from my Samsung device. Include original message Original message From: Peter Sent: 15/02/2017 12:58:55 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-14 Thread Peter
all arguments /  assumptions.  Sometimes the right questions are more important than answers. Regards, Peter. Sent from my Samsung device.     Include original message Original message From: Peter Sent: 15/02/2017 12:58:55 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi -

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-14 Thread Peter
gards, Peter. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 15/02/2017 06:20:37 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy So I've given it some thought an

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-14 Thread Peter
e Original message From: Michał Kłeczek Sent: 14/02/2017 01:27:09 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy See below. Peter wrote: Using one of the secure discovery providers with authentication and input validation

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-14 Thread Michał Kłeczek
So I've given it some thought and the only explanation I can come up with is: 1. To create an instance of the bootstrap proxy you need the codebase annotation. 2. Codebase annotation is needed because you want the bootstrap proxy's class to be defined in the proper codebase ClassLoader 3. Sin

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-14 Thread Michał Kłeczek
Let me dig some deeper. Comments inline. Peter wrote: Yes the dynamic proxy's are 100% local code. Remember dynamic proxy's don't have codebase s. :) Of course they do - look at PreferredClassProvider - the dynamic proxy class is defined by the codebase loader! Being a dynamic proxy does no

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-14 Thread Peter
nvestigate further. Cheers, Peter. Sent from my Samsung device.     Include original message Original message From: Peter Sent: 14/02/2017 09:34:01 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy There's a new constra

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-14 Thread Michał Kłeczek
It seems like I am missing the high level view on the architecture of your software. Would it be possible for you to write one? Peter wrote: There's a new constraint AtomicInputValidation that jeri uses to prevent standard serialization being used. Reggie has been granted DownloadPermission a

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-14 Thread Peter
ry. Regards, Peter. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 07:39:52 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy Comments inline. Peter wrote:

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-14 Thread Michał Kłeczek
Comments inline. Peter wrote: Some of your assumptions around forbidding code downloading are incorrect, which means the other assumptions that rely upon it are also wrong. Which assumptions? I know about DownloadPermissions. And while using RequireDlPermProvider closes the security vulnerabi

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-14 Thread Peter
ent: 14/02/2017 03:43:39 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy Wouldn't it be easier if you simply forbid code downloading during  unmarshalling as in SmartProxyWrapper I've shown in another message? Then u 

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
Wouldn't it be easier if you simply forbid code downloading during unmarshalling as in SmartProxyWrapper I've shown in another message? Then u use the unmarshalled bootstrap object to securely download the real proxy using existing Jeri implementation. Then you do not need any advanced discovery

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
27;t be defined.  DownloadPermission is incorrectly named, it should be called DefineClassPermission. Regards, Peter. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 01:45:43 am To: dev@river.apache.org Subject: Re: OSGi NP Com

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
some defensive programming? Regards, Peter. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 01:42:23 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy Both ways have

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy It is as simple as: interface ServiceProxyDownloader extends Remote, RemoteMethodControl {    Object downloadServiceProxy() throws RemoteException; } //this class is local to the client - to make

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
om my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 01:45:43 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy Peter wrote: > The codebase is signed and download permission

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
wrapper authenticate the service before codebase and smart proxy download? Sent from my Samsung device. Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 01:21:46 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 01:27:09 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy See below. Peter wrote: Using one of the secure discovery providers with authenti

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
think we can do much more to support OSGi. Regards, Peter. Sent from my Samsung device. Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 01:05:54 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invoc

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
The codebase is signed and download permission is granted only to the signed codebase. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 01:27:09 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
Original message From: Michał Kłeczek Sent: 14/02/2017 01:21:46 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy So if the CodeDownloadingSmartProxyWrapper implements AtomicSerial then  it is fine? Cool - lets do that. Thanks

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
0, I think we can do much more to support OSGi. Regards, Peter. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 01:05:54 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
See below. Peter wrote: Using one of the secure discovery providers with authentication and input validation. Download and deserialization permissions are granted dynamically just after authentication, but before download. But now you just moved trust decisions to SafeServiceRegistrar implem

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy So your SaveUnmarshallingProxy can do input validation fist as well, can't it? BTW - how does the client unmarshalls SafeServiceRegistrar proxy in a secure way? Thanks, Michal Peter wrote:

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
, Peter. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 01:13:04 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy So your SaveUnmarshallingProxy can do input

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
first. Regards, Peter. Sent from my Samsung device. Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 12:42:43 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy I fail to understand how you are

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
at the changes in JGDMS. SafeServiceRegistrar authenticates and performs input validation first. Regards, Peter. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 12:42:43 am To: dev@river.apache.org Subject: Re: OSGi NP

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
-- From: Michał Kłeczek Sent: 14/02/2017 12:39:40 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy But what if the client has MULTIPLE clients - each with its own exact API version? OSGi handles this case just fine with service tracker

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
ution solve this problem? Regards, Peter. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 12:39:40 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy But wh

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
local class with a readResolve method? Sorry. Regards, Peter. Sent from my Samsung device. Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 12:14:41 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invoc

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
ssage From: Michał Kłeczek Sent: 14/02/2017 12:24:58 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy Peter wrote: There a multiple remote services, if one client cant obtain a service because there is also a later version inst

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
Original message From: Peter Sent: 14/02/2017 12:33:54 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy You can however for each service api package version, it's all in the smart  proxy bundle manifest. You are bou

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
t see why a compelling reason to give that up for a local class with a readResolve method? Sorry. Regards, Peter. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 12:14:41 am To: dev@river.apache.org Subject: Re: OS

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
gards, Peter. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 14/02/2017 12:24:58 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy Peter wrote: > There a multipl

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
Peter wrote: There a multiple remote services, if one client cant obtain a service because there is also a later version installed then you need a service that doesn't import the later version. You can still supply another service to cater. This does not scale because you would have to have o

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
evice.     Include original message Original message From: "Michał Kłeczek (XPro Sp. z o. o.)" Sent: 13/02/2017 11:59:34 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy Comments inline. Peter wrote: N.B Can't

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
Peter wrote: In jgdms I've enabled support for https unicast lookup in LookupLocator this establishes a connection to a Registrar only, not any service. This functionality doesn't exist in River. How do you propose establishing a connection using one of these endpoints? I am not sure I unde

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
nt from my Samsung device.     Include original message Original message From: "Michał Kłeczek (XPro Sp. z o. o.)" Sent: 14/02/2017 12:00:02 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy KerberosEnpoint? Htt

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek (XPro Sp. z o. o.)
ing against it. I'm arguing for a background task that preceeds deserialization of the proxy. Regards, Peter. Sent from my Samsung device. Include original message Original message From: Patricia Shanahan Sent: 13/02/2017 11:27:27 pm To: dev@river.apache.org Subject: Re: O

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
ice.     Include original message Original message From: Patricia Shanahan Sent: 13/02/2017 11:27:27 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy Sorry, I'm trying to find out the meaning of the current subject line.  I

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek (XPro Sp. z o. o.)
pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy 1. The connection can be done using normal (secure) Jeri. We do not have to verify the installer object since its classes were loaded locally and (by definition) are trusted. 2 Th

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek (XPro Sp. z o. o.)
Comments inline. Peter wrote: N.B Can't see any chicken egg problem. If service doesn't resolve to same service api as client, then it isn't compatible. The client isn't interested in incompatible services, only those that are compatible This is just an artifact of the dependency resoluti

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
o.)" Sent: 13/02/2017 11:34:45 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy 1. The connection can be done using normal (secure) Jeri. We do not have to verify the installer object since its classes were loaded locally and

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
How do you establish the secure jeri connection? Regards, Peter. Sent from my Samsung device.     Include original message Original message From: "Michał Kłeczek (XPro Sp. z o. o.)" Sent: 13/02/2017 11:34:45 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
message From: Peter Sent: 13/02/2017 11:15:27 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy So this object that you have with a locally installed class is tasked with  authenticating the remote service, provisioning and reso

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek (XPro Sp. z o. o.)
choosing a different class to deserialize? Regards, Peter. Sent from my Samsung device Include original message Original message From: Michał Kłeczek Sent: 13/02/2017 10:07:28 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Patricia Shanahan
Sorry, I'm trying to find out the meaning of the current subject line. I'm not sure when it changed to "OSGi MP Complete". On 2/12/2017 10:50 PM, Michał Kłeczek wrote: Sorry, NP Completness of what? I have been the first to mention NP hardness of constraint satisfaction problem but I am not sur

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
/02/2017 10:07:28 pm To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy Comments inline. Peter wrote: > Mic, > > I'm attempting to get my head around your proposal: > > In the case of JERI, the InvocationHandler 

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
Comments inline. Peter wrote: Mic, I'm attempting to get my head around your proposal: In the case of JERI, the InvocationHandler is part of the smart proxy's serialized state. A number of smart proxy classes will need to be unmarshalled before the UnmarshallingInvocationHandler is deseria

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
To be fair, my position changed somewhat after Nic's email and some further research, it may of course develop further with understanding and experimentation. Cheers, Peter. On 13/02/2017 7:52 PM, Peter wrote: Mic, I'm attempting to get my head around your proposal: In the case of JERI, th

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Peter
Mic, I'm attempting to get my head around your proposal: In the case of JERI, the InvocationHandler is part of the smart proxy's serialized state. A number of smart proxy classes will need to be unmarshalled before the UnmarshallingInvocationHandler is deserialized. The smart proxy contains

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-13 Thread Michał Kłeczek
We are talking about the same thing. We are turning circles, Peter - all of this has been already discussed. 1. Yes - you need to resolve bundles in advance (in OSGi it is not possible to do otherwise anyway) 2. You cannot decide upon the bundle chosen by the container to load the proxy class

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-12 Thread Peter
Also see the OSGi Enterprise specification, v6, Chapter 136, page 691, there's some discussion about the NP-complete nature of dependency resolution there as well. https://www.osgi.org/developer/downloads/release-6/release-6-download/ On 13/02/2017 5:19 PM, Peter wrote: OSGi Dependency resolu

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-12 Thread Peter
OSGi Dependency resolution is. http://underlap.blogspot.com.au/2010/02/osgi-resolution-is-np-complete-so-what.html Which means if we want to support an OSGi environment properly, we may need some time to resolve the dependencies for a smart proxy, before deserializing the proxy, rather than do

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-12 Thread Michał Kłeczek
Sorry, NP Completness of what? I have been the first to mention NP hardness of constraint satisfaction problem but I am not sure if this is what you are asking about. Thanks, Michal Patricia Shanahan wrote: Are you literally claiming NP Completeness, or just using that as an analogy for reall

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-12 Thread Patricia Shanahan
Are you literally claiming NP Completeness, or just using that as an analogy for really, really difficult? On 2/11/2017 1:23 PM, Michał Kłeczek wrote: I am sorry but I think that to solve various issues we need to make sure fundamentals are right: 1. There is NO such a thing as "reflective non

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-12 Thread Peter
n, it requires a codebase. Cheers, Peter. Sent from my Samsung device.     Include original message Original message From: Peter Sent: 12/02/2017 08:42:23 am To: dev@river.apache.org Subject: Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy Thanks Michal,

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-11 Thread Peter
Thanks Michal, See inline below. On 12/02/2017 7:23 AM, Michał Kłeczek wrote: I am sorry but I think that to solve various issues we need to make sure fundamentals are right: 1. There is NO such a thing as "reflective non-smart" proxy - EVERY proxy is "smart" (even if it is "reflective") - t

Re: OSGi NP Complete Was: OSGi - deserialization remote invocation strategy

2017-02-11 Thread Michał Kłeczek
I am sorry but I think that to solve various issues we need to make sure fundamentals are right: 1. There is NO such a thing as "reflective non-smart" proxy - EVERY proxy is "smart" (even if it is "reflective") - there is an InvocationHandler down there, isn't there? 2. Solving this on service

Re: OSGi - deserialization remote invocation strategy

2017-02-08 Thread Peter
Thanks Nic, It looks like OSGi is generating a lot of interest. I'm spending a lot of time respoding to discussions, which is important, but I'd also like to get the the existing test suite working with the new JGDMS OGSi Bundles, so will have to excuse myself as I'm still in the learning u

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Gregg Wonderly
> On Feb 7, 2017, at 8:56 AM, Michał Kłeczek (XPro Sp. z o. o.) > wrote: > > Comments inline > > Niclas Hedhman wrote: >> 4. For Server(osgi)+Client(osgi), number of options goes up. In this space, >> Paremus has a lot of experience, and perhaps willing to share a bit, >> without compromising

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Niclas Hedhman
Maybe there are some misunderstanding somewhere... see below; On Wed, Feb 8, 2017 at 3:35 AM, Peter wrote: > I'm currently only considering OSGi server -> OSGi client. Mick's investigating all four options. Ok, makes it a lot easier for me to follow. > Not expecting the client calling bundle t

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Peter
Correct in the second instance. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 08/02/2017 09:24:21 am To: dev@river.apache.org Subject: Re: OSGi - deserialization remote invocation strategy So in this case there is no

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Michał Kłeczek
vocation handler and marshal streams) . > > Cheers, > > Peter. > Sent from my Samsung device. > > Include original message > Original message > From: Michał Kłeczek > Sent: 08/02/2017 06:51:55 am > To: dev@river.apache.org > Subject: Re: OSGi

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Peter
In other words would work where MarshalInputStream is used. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 08/02/2017 06:51:55 am To: dev@river.apache.org Subject: Re: OSGi - deserialization remote invocation strategy I think

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Peter
h its own jeri endpoint and invocation handler and marshal streams) . Cheers, Peter. Sent from my Samsung device.     Include original message Original message From: Michał Kłeczek Sent: 08/02/2017 06:51:55 am To: dev@river.apache.org Subject: Re: OSGi - deserialization remote invocat

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Michał Kłeczek
n made extensible to allow other > serialization formats to be supported by the api. > > But we're diverging... > > Cheers, > > Peter. > > Sent from my Samsung device. > > Include original message > Original message > From: Michał Kłeczek &

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Peter
om: Michał Kłeczek Sent: 08/02/2017 06:07:19 am To: dev@river.apache.org Subject: Re: OSGi - deserialization remote invocation strategy Hmm.. I see. So your solution explicitly only handles cases of looking up a service  in the ServiceRegistrar. How about smart RemoteEventListeners? Th

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Peter
Clarification inline. Sent from my Samsung device.     Include original message Original message From: Peter Sent: 08/02/2017 05:35:57 am To: dev@river.apache.org Subject: Re: OSGi - deserialization remote invocation strategy Hi Nic, I'm currently only considering OSGi s

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Michał Kłeczek
om my Samsung device. Include original message Original message From: "Michał Kłeczek (XPro Sp. z o. o.)" Sent: 08/02/2017 05:51:07 am To: dev@river.apache.org Subject: Re: OSGi - deserialization remote invocation strategy So I must have misunderstood the part about smart proxies b

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Peter
on proxy instead of MarshalledIstance. Cheers, Peter. Sent from my Samsung device.     Include original message Original message From: "Michał Kłeczek (XPro Sp. z o. o.)" Sent: 08/02/2017 05:51:07 am To: dev@river.apache.org Subject: Re: OSGi - deserialization remote invoc

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Michał Kłeczek (XPro Sp. z o. o.)
ude original message Original message From: "Michał Kłeczek (XPro Sp. z o. o.)" Sent: 08/02/2017 12:28:50 am To: dev@river.apache.org Subject: Re: OSGi - deserialization remote invocation strategy Are you proposing to provide a bootstrap object that will download some m

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Peter
Peter. Sent from my Samsung device.     Include original message Original message From: Niclas Hedhman Sent: 08/02/2017 12:32:35 am To: dev@river.apache.org Subject: Re: OSGi - deserialization remote invocation strategy TL;DR 1. It sounds awfully complex, because my gut says that it is n

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Peter
No, no bootstrap objects. Cheers, Peter. Sent from my Samsung device.     Include original message Original message From: "Michał Kłeczek (XPro Sp. z o. o.)" Sent: 08/02/2017 12:28:50 am To: dev@river.apache.org Subject: Re: OSGi - deserialization remote invocation str

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Michał Kłeczek (XPro Sp. z o. o.)
Comments inline Niclas Hedhman wrote: 4. For Server(osgi)+Client(osgi), number of options goes up. In this space, Paremus has a lot of experience, and perhaps willing to share a bit, without compromising the secret sauce? Either way, Michal's talk about "wiring" becomes important and that wiring

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Michał Kłeczek (XPro Sp. z o. o.)
Are you proposing to provide a bootstrap object that will download some meta information prior to class resolution? How does it differ from simply changing annotations to be those "bootstrap objects" instead of Strings? Thanks, Michal Peter wrote: Proposed JERI OSGi class loading strategy d

Re: OSGi - deserialization remote invocation strategy

2017-02-07 Thread Niclas Hedhman
TL;DR 1. It sounds awfully complex, because my gut says that it is not a solvable problem, especially since I don't see 4 distinct cases; Server(osgi)+Client(osgi), Server(osgi)+Client(plain), Server(plain)+Client(osgi) and Server(plain)+Client(plain), where the last one is what we currently have.

Re: OSGi

2017-02-06 Thread Gregg Wonderly
lization doesn't succeed, look up another service. >> >> Cheers, >> >> Peter. >> >> Sent from my Samsung device. >> Include original message >> Original message >> From: Peter >> Sent: 06/02/2017 02:59:09 pm >> To: dev@river.apa

Re: OSGi

2017-02-06 Thread Peter
de some interfaces for extensibility where you could plug in? Regards, Peter. Sent from my Samsung device. Include original message Original message From: "Michał Kłeczek (XPro Sp. z o. o.)" Sent: 06/02/2017 03:34:54 pm To:dev@river.apache.org Subject: Re: OSGi Once you rea

Re: OSGi

2017-02-06 Thread Michał Kłeczek (XPro Sp. z o. o.)
message Original message From: "Michał Kłeczek (XPro Sp. z o. o.)" Sent: 06/02/2017 03:34:54 pm To:dev@river.apache.org Subject: Re: OSGi Once you realize you need some codebase metadata different than mere list of URLs the next conclusion is that annotations should be somethi

  1   2   3   >