[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Remoting with ECF (with REST) in Eclipse RCP?

Hi Wim, Scott,

Thank a lot for your answer and information.
I have seen that EDEF can be help you to customize host URL (CXF DOSGi provides the sam ething because it's OSGi 4.2 Remote Service Admin (RSA)).
But I don't like that because you hard code the base URL of the server in a XML file. I would like for instance do like this :

---------------------------------------------------------------------------------------------------------------------------------------------------
<property name="endpoint.id" value-type="String" value="${baseURL}"/>
---------------------------------------------------------------------------------------------------------------------------------------------------

And configure baseURL in a properties file with an OSGi fragmen

---------------------------------------------------------------------------------------------------------------------------------------------------
baseURL=ecftcp://localhost:3787/server
---------------------------------------------------------------------------------------------------------------------------------------------------

With Spring Expresion you can do that.

Anyway many thanks to have token time to answer me. I will study ECF, Restlet and post my question if I have problem.

Regards Angelo

Le 11 avril 2012 19:48, <slewis@xxxxxxxxxxxxx> a écrit :
Hi Angelo,

<stuff deleted>
> I know your DS samples that I have studied to develop the ECF support. The
> thing I don't understand is that in your samples you don't set the base
> URL
> of the server in the client side?
> I would like customize that in my client side because server can be
> installed on localhost, on cloudbee with different port etc...

As Wim indicated, discovery is typically used to communicate the base URL
(known as endpoint in OSGi spec), from the registered host service and
consumers.  This discovery can be via some network protocol (zookeeper,
zeroconf, dnssd, slp), or it can be via the 'file-based discovery' that is
part of the OSGi specification.  This is known as the endpoint description
extender format (edef)

http://wiki.eclipse.org/File-based_Discovery_with_the_Endpoint_Description_Extender_Format

>
> I will study RESTLET too to see how I can use it with ECF as soon as I
> will
> finish my articles with CXF DOSGi.
>
> My need is that I wand export/import services with remote mode with the
> less code. My goal is to do the same thing than Spring Http Invoker
> http://static.springsource.org/spring/docs/2.5.x/reference/remoting.html#remoting-httpinvoker
> but with JAX-RS to consumes/publish JSON.

FWIW, Restlet supports JSON as well as JAX-RS.

Scott


_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev