Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » ECF: why does IRestCall not extend IRemoteCall?
ECF: why does IRestCall not extend IRemoteCall? [message #624976] Sat, 14 November 2009 23:39
Andre Dietisheim is currently offline Andre DietisheimFriend
Messages: 131
Registered: July 2009
Senior Member
Hi Holger, Hi Scott

I currently write a blog about an EMF based extension I built for ECF-REST.
I crawled through my code and it looks to me that IRestCall should
extend IRemoteCall in order to comply to the 'standardized' ECF usage

my current usage:

ID restId =
IDFactory.getDefault().createID( RestNamespace.NAME, serviceUri );
IContainer container = ContainerFactory.getDefault().createContainer( //
RestContainer.NAME, restId );

IRemoteCall call = ECFRestUtils.getPostCall(
, requestEntity
, resourceIdentifier );

IRemoteService remoteService =
container.getRemoteService( IRemoteService.class.getName() );
if ( remoteService == null )
new String[] { IRemoteService.class.getName() }
, new RestService(), null );
remoteService =
container.getRemoteService( IRemoteService.class.getName() );
remoteService.callSync( call );

This only works if I correct IRestCall to extend IRemoteCall.
Is my usage wrong? Do I miss something?

Cheers + Thanks
Previous Topic:Eclipse and Corba
Next Topic:ECF: why does IRestCall not extend IRemoteCall?
Goto Forum:

Current Time: Thu Apr 26 01:27:01 GMT 2018

Powered by FUDForum. Page generated in 0.01514 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software