Re: Service property assigned with a service reference

2011-10-26 Thread David Feliot
ect in there. Tim Date: Tue, 25 Oct 2011 14:40:54 +0200 From: david.fel...@scalagent.com To: user@aries.apache.org Subject: Re: Service property assigned with a service reference If the service is a String, then an exception is raised because

Re: Service property assigned with a service reference

2011-10-26 Thread David Feliot
Hi, There is a class cast exception raised when the ServiceProxyWrapper object is cast into A. Regards, David Le 25/10/2011 10:22, Felix Meschberger a écrit : Hi, Am 24.10.2011 um 10:14 schrieb David Feliot: Hi, when defining a service property with a reference as a value, the property i

Re: Service property assigned with a service reference

2011-10-25 Thread Felix Meschberger
Hi, Am 24.10.2011 um 10:14 schrieb David Feliot: > Hi, > > when defining a service property with a reference as a value, the property is > assigned with a ServiceProxyWrapper (inner class of ReferenceRecipe). > > Here is the way it is defined: > > > > > > > > > > > > I would have ex

RE: Service property assigned with a service reference

2011-10-25 Thread Timothy Ward
houldn't end up with an internal blueprint recipe object in there. Tim Date: Tue, 25 Oct 2011 14:40:54 +0200 From: david.fel...@scalagent.com To: user@aries.apache.org Subject: Re: Service property assigned with a service reference If the service is a String, then an

Re: Service property assigned with a service reference

2011-10-25 Thread David Feliot
dless of whether the reference changes, (no dynamism) because of what the spec says. Regards, Tim Date: Tue, 25 Oct 2011 10:26:46 +0200 From: david.fel...@scalagent.com To: user@aries.apache.org Subject: Re: Service property ass

RE: Service property assigned with a service reference

2011-10-25 Thread Timothy Ward
rk ok. The property will only be set once though, regardless of whether the reference changes, (no dynamism) because of what the spec says. Regards, Tim Date: Tue, 25 Oct 2011 10:26:46 +0200 From: david.fel...@scalagent.com To: user@aries.apache.org Subject: Re: Service property assigned with a se

Re: Service property assigned with a service reference

2011-10-25 Thread David Feliot
My object is a String (a URI) that needs to be dynamically resolved as a reference () and passed as a service property. So if I correctly understood what you said, there's no way to do that with blueprint? It worked with Aries but it's only by chance, isn't it? Thanks again, Regards, David L

RE: Service property assigned with a service reference

2011-10-24 Thread Timothy Ward
Hi, It is allowed to use a component instance as a service property, however the following rules apply (from 121.6.6 of the enterprise specification) Each service can optionally be registered with service properties. The serviceProperties is a list of MapEntry, see on page 236. This metadata