David Bosschaert wrote:
Hi all,
I'm trying to get rid of the exception that shows up when you distribute
a service in a bundle that doesn't provide an intent-map.xml file.
Currently this seems to work well, but an exception comes up on the
screen. If a user doesn't provide this map, simply the default
distribution settings (intents) should be used.
Would simply using a
new IntentMap()
be enough? or should I try to get a default IntentMap from somewhere else?
The idea was to merge the calling-bundle-specific IntentMap with the
master map from the DSW bundle, so that the calling bundle could
override some intent->policy mappings, or add some new ones.
So if the client bundle doesn't require any such overrides, simply
creating an empty IntentMap as you propose is fine.
Next question.
When I expose a service registered under multiple interfaces, what is it
supposed to do in today's codebase?
Will it somehow expose both interfaces over the wire or does it just
pick one?
The intention was to support the multi-interface case mapping to a
single endpoint by creating a java.lang.reflect.Proxy aggregating the
interfaces, and using this proxy as the service class on the
ServerBeanFactory.
However this introduces some complications around the namespace mapping
used the Aegis binding, particularly in ensuring that the namespace used
for client-originated payloads match that expected by the server-side.
So this approach will require some core CXF changes in order to work,
and isn't supported right now.
For the moment, maybe we should just take the simple approach of mapping
each interface onto a /separate/ endpoint.
/Eoghan
I'm looking at changing the behaviour of the org.osgi.remote.publish
property with the behaviour in the spec (instead of the value
'false|true' a list of interfaces or '*' for all published interfaces
should be provided).
Thanks,
David
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland