Home » Archived » Eclipse Communications Framework (ECF) » ECF: why does IRestCall not extend IRemoteCall?
|
Re: ECF: why does IRestCall not extend IRemoteCall? [message #498397 is a reply to message #498141] |
Mon, 16 November 2009 18:19 |
Scott Lewis 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 |
Andre Dietisheim 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 |
Scott Lewis 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 |
Scott Lewis 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 |
Scott Lewis 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 |
Andre Dietisheim 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 |
Scott Lewis 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 |
Scott Lewis 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é
|
|
|
|
|
Goto Forum:
Current Time: Tue Apr 23 13:16:59 GMT 2024
Powered by FUDForum. Page generated in 0.05964 seconds
|