Skip to main content

[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 Scott,

Le 13 avril 2012 00:59, Scott Lewis <slewis@xxxxxxxxxxxxx> a écrit :
Hello Angelo,


On 4/12/2012 1:02 PM, Angelo zerr wrote:
<stuff deleted>

[Scott]  Why not use Spring _expression_ (or eclipse variables, or xsl, or something else of your choosing) to simply generate the edef file at remote service export time with the exact contents you want?

Yes I would like Spring EL _expression_, I can do that?

I don't know the Spring EL _expression_ stuff, but I would imagine that you could.  If all you want to do is to produce a valid edef file at runtime...and replace baseURL.


The EDEF file is not a Spring file? I don't understand what you mean?

No, EDEF is a simple, standard format specified by the OSGi Remote Service Admin spec (rfc 122 I think) for endpoint descriptions.  There are links on the previous references to the standards docs.



I would like use ${baseURL} on rutime time and not on compile time (I say that because you tell me about xsl).

Right...there are all sorts of mechanisms to...e.g. take template, and process it at runtime to replace baseURL with something of your choosing.  Another is Eclipse core.variable processing...fwiw:  org.eclipse.core.variables

Have you samples to do that?

I have read your post http://eclipseecf.blogspot.fr/2011/07/restlet-for-osgi-remote-services.html about ECF+Restlet and it seems that your service cannot be a Pojo (must extend Restlet ServerResource).
More in my case I have some services which have parameters with interface and Pojo (ex: Pageable interface from the String Data JPA). I know that using interface is more complex than Pojo but I have done that with success with CXF DOSGi  by using JAXB @XmlJavaTypeAdapter.

To avoid posting and posting my requirement about remoting, I think it should be cool that I finish my articles. I would like explain how to manage remoting in RCP with :

1) Spring Remoting HttpInvoker
2) DOSGi CXF
3) ECF

For 1) and 2) I know how to manage that. I must study 3) and I will post you my question.

Regards Angelo


Scott




Regards Angelo

Scott


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





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


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



Back to the top