Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[edt-dev] Dedicated service changes

Hi Folks,

Some changes have been made today to dedicated services that will probably break your RUI applications.

The call statement was updated not too long ago to support a new "using" clause, where you specify a variable that tells the call how to reach the service. A new type "HttpProxy" has been added to the system parts which you can specify for the using clause when invoking a dedicated service. The DedicatedService annotation has been removed, and you must now use the using clause, passing in an HttpProxy.

Old syntax:
    serviceVariable MyService{@DedicatedService};
    call
serviceVariable.functionName() returning to handleResponse onException serviceExceptionHandler;


New syntax (two usages):

When referencing a service part the HttpProxy doesn't need anything set in the variable:
    call MyService.functionName() using new HttpProxy returning to handleResponse onException serviceExceptionHandler;

When referencing an interface part you must specify the implementation name:
    http HttpProxy = new HttpProxy("server.MyService");
    call IMyService.functionName() using http returning to handleResponse onException serviceExceptionHandler;

Here's the wiki page about service access (feel free to fill in any gaps!): http://wiki.eclipse.org/EDT:Accessing_a_service

-Justin

Back to the top