a little addendum to my previous post in this thread:
>From: Millies, Sebastian [mailto:[email protected]]
>Sent: Friday, August 27, 2010 12:46 PM
[snip]
>The error occurs when I start the service using the SCA launcher. I construct
>and start a node, and
>obtain the service interface through the following line:
>
> CurrencyConverter converter =
> ((SCAClient) node).getService( CurrencyConverter.class,
> "CurrencyConverter" );
>
>Now the call to converter.getExchangeRate() will give an UnexpectedException.
The UnexpectedException will not occur when I do not construct a node with
SCANodeFactory.newInstance().createSCANode()
but instead construct a standalone Domain (where the relevant contributions are
on the
classpath) and obtain the service from the domain:
SCADomain scaDomain = SCADomain.newInstance();
CurrencyConverter converter = scaDomain.getService(
CurrencyConverter.class, "CurrencyConverter" );
I must confess I do not understand how the loading of contributions works in
these two cases.
But the inconsistency bothers me, and I would say it is probably a bug.
-- Sebastian