Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Experiences with RAP
Experiences with RAP [message #892703] Fri, 29 June 2012 05:30 Go to next message
Roel De Nijs is currently offline Roel De Nijs
Messages: 3
Registered: June 2012
Junior Member
Hi,

We need a web-application and a desktop-application which have the same functionalities (although the desktop app could have less). Maybe in a later stadium there could be support for mobile devices, but at this point that's not a requirement.

Our current setup (which I'm not going to explain in detail) really needs to change because it's too complex. So it's time to think about alternatives.

Our desktop application is already using an Eclipse environment. And because the management is very keen on code reuse I think RAP could be a possible alternative.

I'm interested in experience of other developers using RAP to build a web- and desktop-application. Hard to learn? Code maintainability? Code reusability (write once, run as dekstop and in browser)? ...
And because we have to develop GIS applications, I would be very interested your experiences if you developed a GIS web- and desktop-application with RAP.

Thanks!
Kind regards,
Roel
Re: Experiences with RAP [message #892732 is a reply to message #892703] Fri, 29 June 2012 07:50 Go to previous messageGo to next message
Stephan Leicht Vogt is currently offline Stephan Leicht Vogt
Messages: 102
Registered: February 2010
Location: Baden Switzerland
Senior Member

Hi Roel

If you would start from scratch a multi frontend application I would, without any doubt, recommend Eclipse Scout[1]. It gives you the possibility to develop and maintain a client-server application with multiple frontends at the same time. A quick look at the main architecture[2] and the seperation of ui model and gui[3] gives you a good overview how it is achieved. For the desktop you'd get a swt or swing app and for the web you'd get a rap ui.

Now you wrote that you already have a working application. Well, if you would start with Eclipse Scout, you'd have to rewrite much of your ui so it wouldn't rely on ui classes such as swt-classes or swing-classes. But in the long run I'm sure you would benefit from it.

I'll be happy to answer you further questions. Or you could ask specific Scout questions in the Eclipse Scout forum[4].

Greetings Stephan


[1]http://www.eclipse.org/scout/
[2]http://wiki.eclipse.org/Scout/Documentation#Big_Picture_-_Main_Architecture_of_Scout
[3]http://wiki.eclipse.org/Scout/Concepts/Client_Plug-In#Separation_of_UI_and_GUI
[4]http://www.eclipse.org/forums/index.php/f/174/
Re: Experiences with RAP [message #892812 is a reply to message #892732] Fri, 29 June 2012 16:16 Go to previous messageGo to next message
Roel De Nijs is currently offline Roel De Nijs
Messages: 3
Registered: June 2012
Junior Member
Hi Stephan,

Scout looks indeed something we could investigate. I don't think rewriting will be a problem, because the current setup is simply impossible to work with.

But I can think of a few possible impediments:
- the learning curve: I'm quite familiar with RCP development (and that learning curve was steep for me), the other team members are not.
- at this moment they have a SOA-like architecture and Scout seems to be more for a client/server application (where you have 1 monolithic server application and 1 client application which can be rendered for web, desktop,...)
- we have a gis web-app (using openlayers as a js library to do all kinds of gis-related stuff) and I don't think Scout will offer support for this out-of-the-box (like for Textboxes etc). But maybe we could develop our own GIS-driven widgets
- the management really likes code reuse, so can you explain shortly how you develop the desktop and web GUI for an application. Do you develop a UI once and then package/build that together with the swt-scout-plugin for a desktop; package/build it with rap-scout-plugin for the web application?

Thanks!
Kind regards,
Roel

[Updated on: Fri, 29 June 2012 16:16]

Report message to a moderator

Re: Experiences with RAP [message #893012 is a reply to message #892812] Mon, 02 July 2012 05:44 Go to previous messageGo to next message
Stephan Leicht Vogt is currently offline Stephan Leicht Vogt
Messages: 102
Registered: February 2010
Location: Baden Switzerland
Senior Member

Hi Roel

To your concerns:


  • Learning curve: In my opinion working with Eclipse Scout SDK and the Eclipse Scout Framework API is quite simple. I'm sure learning programming with Eclipse Scout is easier than with RCP. Please consider to work through the "Hello World" Tutorial[1] and the other Tutorials[2].
  • SOA: Scout has also a SOA architecture[3]. And since everything is written in Java you're free to do anything you want. You can call your webservices or take the code and reuse it in Scout Services.
  • Custom Widgets: You are free to create new Widgets for your project. So you could create a gis-widget for swt and rap which would go into your ui-bundles. For an example please read this HowTo[4]
  • Code reuse: That's exactly how we do it. With the separation of the client model and the ui representation[5] we don't have to write anything twice (except for custom widgets). So yes, code once -> export twice Very Happy


I hope I could help.
Greetings Stephan

[1]http://wiki.eclipse.org/Scout/Tutorial/HelloWorld
[2]http://wiki.eclipse.org/Scout/Tutorial
[3]http://wiki.eclipse.org/Scout/Overview#SOA
[4]http://wiki.eclipse.org/Scout/HowTo/3.7/Add_a_custom_GUI_component
[5]http://wiki.eclipse.org/Scout/Concepts/Client_Plug-In#Separation_of_UI_and_GUI
Re: Experiences with RAP [message #893508 is a reply to message #893012] Wed, 04 July 2012 07:54 Go to previous message
Roel De Nijs is currently offline Roel De Nijs
Messages: 3
Registered: June 2012
Junior Member
Hi Stephan,

Thanks for the info!

Definitely time for some investigation now. If I have further questions, I'll post them here or in the Scout forum.

Thanks for your time (and instructive answers)!
Kind regards,
Roel
Previous Topic:RAP work on Windows but not working on Linux
Next Topic:ExternalBrowser: open tab instead of window
Goto Forum:
  


Current Time: Wed Jul 23 18:27:50 EDT 2014

Powered by FUDForum. Page generated in 0.06612 seconds