Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » ECF: why does IRestCall not extend IRemoteCall?
ECF: why does IRestCall not extend IRemoteCall? [message #498141] Sat, 14 November 2009 23:39 Go to next message
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
scenario.

my current usage:

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

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

IRemoteService remoteService =
container.getRemoteService( IRemoteService.class.getName() );
if ( remoteService == null )
{
container.registerRemoteService(
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
André
Re: ECF: why does IRestCall not extend IRemoteCall? [message #498397 is a reply to message #498141] Mon, 16 November 2009 18:19 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Ande,

I agree with you that IRestCall should extend IRemoteCall. Holger and I
are engaged in some refactoring of the rest API (including this change)
now around bug

https://bugs.eclipse.org/bugs/show_bug.cgi?id=294774

Thanks,

Scott


Ande Dietisheim wrote:
> 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
> scenario.
>
> my current usage:
>
> ID restId =
> IDFactory.getDefault().createID( RestNamespace.NAME, serviceUri );
> IContainer container = ContainerFactory.getDefault().createContainer( //
> RestContainer.NAME, restId );
>
> IRemoteCall call = ECFRestUtils.getPostCall(
> requestDefinition.getUrl()
> , requestEntity
> , resourceIdentifier );
>
> IRemoteService remoteService =
> container.getRemoteService( IRemoteService.class.getName() );
> if ( remoteService == null )
> {
> container.registerRemoteService(
> 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
> André
Re: ECF: why does IRestCall not extend IRemoteCall? [message #498398 is a reply to message #498397] Mon, 16 November 2009 18:25 Go to previous messageGo to next message
Andre Dietisheim is currently offline Andre DietisheimFriend
Messages: 131
Registered: July 2009
Senior Member
Hi Scott

thanks, great, so I'll apply this tiny change locally and wait for the
major refactoring.

Greetings
André

Scott Lewis wrote:
> Hi Ande,
>
> I agree with you that IRestCall should extend IRemoteCall. Holger and I
> are engaged in some refactoring of the rest API (including this change)
> now around bug
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=294774
>
> Thanks,
>
> Scott
>
>
> Ande Dietisheim wrote:
>> 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
>> scenario.
>>
>> my current usage:
>>
>> ID restId =
>> IDFactory.getDefault().createID( RestNamespace.NAME, serviceUri );
>> IContainer container = ContainerFactory.getDefault().createContainer( //
>> RestContainer.NAME, restId );
>>
>> IRemoteCall call = ECFRestUtils.getPostCall(
>> requestDefinition.getUrl()
>> , requestEntity
>> , resourceIdentifier );
>>
>> IRemoteService remoteService =
>> container.getRemoteService( IRemoteService.class.getName() );
>> if ( remoteService == null )
>> {
>> container.registerRemoteService(
>> 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
>> André
Re: ECF: why does IRestCall not extend IRemoteCall? [message #498881 is a reply to message #498398] Wed, 18 November 2009 23:32 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Ande,

The initial refactoring has been done and is committed to ECF head.
Please see (and comment) at:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=294774

Here's the beginnings of a web page:

http://wiki.eclipse.org/REST_abstraction_for_ECF

Scott


Ande Dietisheim wrote:
> Hi Scott
>
> thanks, great, so I'll apply this tiny change locally and wait for the
> major refactoring.
>
> Greetings
> André
>
> Scott Lewis wrote:
>> Hi Ande,
>>
>> I agree with you that IRestCall should extend IRemoteCall. Holger and I
>> are engaged in some refactoring of the rest API (including this change)
>> now around bug
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=294774
>>
>> Thanks,
>>
>> Scott
>>
>>
>> Ande Dietisheim wrote:
>>> 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
>>> scenario.
>>>
>>> my current usage:
>>>
>>> ID restId =
>>> IDFactory.getDefault().createID( RestNamespace.NAME, serviceUri );
>>> IContainer container = ContainerFactory.getDefault().createContainer( //
>>> RestContainer.NAME, restId );
>>>
>>> IRemoteCall call = ECFRestUtils.getPostCall(
>>> requestDefinition.getUrl()
>>> , requestEntity
>>> , resourceIdentifier );
>>>
>>> IRemoteService remoteService =
>>> container.getRemoteService( IRemoteService.class.getName() );
>>> if ( remoteService == null )
>>> {
>>> container.registerRemoteService(
>>> 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
>>> André
Re: ECF: why does IRestCall not extend IRemoteCall? [message #499730 is a reply to message #498881] Mon, 23 November 2009 21:11 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi All,


On this topic of the rest api for ECF, those interested please see my
recent blog post:

http://eclipseecf.blogspot.com/2009/11/ecf-provides-some-add itional-rest.html

Scott

Scott Lewis wrote:
> Hi Ande,
>
> The initial refactoring has been done and is committed to ECF head.
> Please see (and comment) at:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=294774
>
> Here's the beginnings of a web page:
>
> http://wiki.eclipse.org/REST_abstraction_for_ECF
>
> Scott
>
>
> Ande Dietisheim wrote:
>> Hi Scott
>>
>> thanks, great, so I'll apply this tiny change locally and wait for the
>> major refactoring.
>>
>> Greetings
>> André
>>
>> Scott Lewis wrote:
>>> Hi Ande,
>>>
>>> I agree with you that IRestCall should extend IRemoteCall. Holger and I
>>> are engaged in some refactoring of the rest API (including this change)
>>> now around bug
>>>
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=294774
>>>
>>> Thanks,
>>>
>>> Scott
>>>
>>>
>>> Ande Dietisheim wrote:
>>>> 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
>>>> scenario.
>>>>
>>>> my current usage:
>>>>
>>>> ID restId =
>>>> IDFactory.getDefault().createID( RestNamespace.NAME, serviceUri );
>>>> IContainer container =
>>>> ContainerFactory.getDefault().createContainer( //
>>>> RestContainer.NAME, restId );
>>>>
>>>> IRemoteCall call = ECFRestUtils.getPostCall(
>>>> requestDefinition.getUrl()
>>>> , requestEntity
>>>> , resourceIdentifier );
>>>>
>>>> IRemoteService remoteService =
>>>> container.getRemoteService( IRemoteService.class.getName() );
>>>> if ( remoteService == null )
>>>> {
>>>> container.registerRemoteService(
>>>> 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
>>>> André
Re: ECF: why does IRestCall not extend IRemoteCall? [message #624977 is a reply to message #498141] Mon, 16 November 2009 18:19 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Ande,

I agree with you that IRestCall should extend IRemoteCall. Holger and I
are engaged in some refactoring of the rest API (including this change)
now around bug

https://bugs.eclipse.org/bugs/show_bug.cgi?id=294774

Thanks,

Scott


Ande Dietisheim wrote:
> 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
> scenario.
>
> my current usage:
>
> ID restId =
> IDFactory.getDefault().createID( RestNamespace.NAME, serviceUri );
> IContainer container = ContainerFactory.getDefault().createContainer( //
> RestContainer.NAME, restId );
>
> IRemoteCall call = ECFRestUtils.getPostCall(
> requestDefinition.getUrl()
> , requestEntity
> , resourceIdentifier );
>
> IRemoteService remoteService =
> container.getRemoteService( IRemoteService.class.getName() );
> if ( remoteService == null )
> {
> container.registerRemoteService(
> 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
> André
Re: ECF: why does IRestCall not extend IRemoteCall? [message #624978 is a reply to message #498397] Mon, 16 November 2009 18:25 Go to previous message
Andre Dietisheim is currently offline Andre DietisheimFriend
Messages: 131
Registered: July 2009
Senior Member
Hi Scott

thanks, great, so I'll apply this tiny change locally and wait for the
major refactoring.

Greetings
André

Scott Lewis wrote:
> Hi Ande,
>
> I agree with you that IRestCall should extend IRemoteCall. Holger and I
> are engaged in some refactoring of the rest API (including this change)
> now around bug
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=294774
>
> Thanks,
>
> Scott
>
>
> Ande Dietisheim wrote:
>> 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
>> scenario.
>>
>> my current usage:
>>
>> ID restId =
>> IDFactory.getDefault().createID( RestNamespace.NAME, serviceUri );
>> IContainer container = ContainerFactory.getDefault().createContainer( //
>> RestContainer.NAME, restId );
>>
>> IRemoteCall call = ECFRestUtils.getPostCall(
>> requestDefinition.getUrl()
>> , requestEntity
>> , resourceIdentifier );
>>
>> IRemoteService remoteService =
>> container.getRemoteService( IRemoteService.class.getName() );
>> if ( remoteService == null )
>> {
>> container.registerRemoteService(
>> 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
>> André
Re: ECF: why does IRestCall not extend IRemoteCall? [message #624979 is a reply to message #498398] Wed, 18 November 2009 23:32 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Ande,

The initial refactoring has been done and is committed to ECF head.
Please see (and comment) at:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=294774

Here's the beginnings of a web page:

http://wiki.eclipse.org/REST_abstraction_for_ECF

Scott


Ande Dietisheim wrote:
> Hi Scott
>
> thanks, great, so I'll apply this tiny change locally and wait for the
> major refactoring.
>
> Greetings
> André
>
> Scott Lewis wrote:
>> Hi Ande,
>>
>> I agree with you that IRestCall should extend IRemoteCall. Holger and I
>> are engaged in some refactoring of the rest API (including this change)
>> now around bug
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=294774
>>
>> Thanks,
>>
>> Scott
>>
>>
>> Ande Dietisheim wrote:
>>> 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
>>> scenario.
>>>
>>> my current usage:
>>>
>>> ID restId =
>>> IDFactory.getDefault().createID( RestNamespace.NAME, serviceUri );
>>> IContainer container = ContainerFactory.getDefault().createContainer( //
>>> RestContainer.NAME, restId );
>>>
>>> IRemoteCall call = ECFRestUtils.getPostCall(
>>> requestDefinition.getUrl()
>>> , requestEntity
>>> , resourceIdentifier );
>>>
>>> IRemoteService remoteService =
>>> container.getRemoteService( IRemoteService.class.getName() );
>>> if ( remoteService == null )
>>> {
>>> container.registerRemoteService(
>>> 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
>>> André
Re: ECF: why does IRestCall not extend IRemoteCall? [message #624980 is a reply to message #498881] Mon, 23 November 2009 21:11 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi All,


On this topic of the rest api for ECF, those interested please see my
recent blog post:

http://eclipseecf.blogspot.com/2009/11/ecf-provides-some-add itional-rest.html

Scott

Scott Lewis wrote:
> Hi Ande,
>
> The initial refactoring has been done and is committed to ECF head.
> Please see (and comment) at:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=294774
>
> Here's the beginnings of a web page:
>
> http://wiki.eclipse.org/REST_abstraction_for_ECF
>
> Scott
>
>
> Ande Dietisheim wrote:
>> Hi Scott
>>
>> thanks, great, so I'll apply this tiny change locally and wait for the
>> major refactoring.
>>
>> Greetings
>> André
>>
>> Scott Lewis wrote:
>>> Hi Ande,
>>>
>>> I agree with you that IRestCall should extend IRemoteCall. Holger and I
>>> are engaged in some refactoring of the rest API (including this change)
>>> now around bug
>>>
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=294774
>>>
>>> Thanks,
>>>
>>> Scott
>>>
>>>
>>> Ande Dietisheim wrote:
>>>> 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
>>>> scenario.
>>>>
>>>> my current usage:
>>>>
>>>> ID restId =
>>>> IDFactory.getDefault().createID( RestNamespace.NAME, serviceUri );
>>>> IContainer container =
>>>> ContainerFactory.getDefault().createContainer( //
>>>> RestContainer.NAME, restId );
>>>>
>>>> IRemoteCall call = ECFRestUtils.getPostCall(
>>>> requestDefinition.getUrl()
>>>> , requestEntity
>>>> , resourceIdentifier );
>>>>
>>>> IRemoteService remoteService =
>>>> container.getRemoteService( IRemoteService.class.getName() );
>>>> if ( remoteService == null )
>>>> {
>>>> container.registerRemoteService(
>>>> 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
>>>> André
Previous Topic:ECF: why does IRestCall not extend IRemoteCall?
Next Topic:HTTP POST through a proxy
Goto Forum:
  


Current Time: Tue Apr 16 13:26:57 GMT 2024

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

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

Back to the top