Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Newbie question: background services/shared objects
Newbie question: background services/shared objects [message #483265] Mon, 31 August 2009 15:28 Go to next message
Eclipse UserFriend
Originally posted by: k.sramko.a-cube.eu

Hi Group,
I'm new to Eclipse and RPC. As first project I'm trying to build a client
for a online-game, containing three main parts:
- the RPC-based frontend
- a local database
- a HTTP-Client for gathering informations and executing commands to the
online-game

I'm making very good progress on the RPC-part. A standalone database is no
problem and the HTTP-Client (based on Apache's HTTP-Client) isn't a
problem, too. But I have no clue, how to bind the three parts into one
application.

The HTTP-Client has to be always active, to keep the session alive.
Frequently it should check the online-game for new information. If a new
information exists, it should be written into the database and the
views/editors have to be updated. The database should be embedded into the
application (SQLite/HSQLDB) and the connection should be active while my
program runs and should be shared and pooled for the RCP-GUI and the
HTTP-Client.

How to start separate threats at start-up and bind them to the workbench?
Can somebody give me a link to a framework or even better to a How-To?
Is the 'plug-in' functionality responsible for such task or 'Jobs'? Or is
the answer somewhere in 'org.eclipse.ui.services'?

I've searched the internet and the eclipse page a lot, without finding an
answer on that.

Thanks for your hints.

Kiril
Re: Newbie question: background services/shared objects [message #483271 is a reply to message #483265] Mon, 31 August 2009 16:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi Kiril,

This sounds like a lot of fun and you have come to the perfect place for such
an application design. The answer to your questions is "OSGi services". You
have one OSGi bundle/plugin/module (same thing) that takes care of the
database and exposes the interface using an OSGi service. You have a HTTP
client in a separate OSGi bundle that pokes around on the internet and
exposes its interface also via an OSGi service. Finally you use both services
in yet another OSGi bundle which is your RCP core plugin.

Voila, the perfect solution for your challenge and using OSGi makes it even
more fun.

Now If you are new to OSGi then please read the first chapter of the
excellent online book by Neil Bartlett on this address:
http://neilbartlett.name/blog/osgibook/ and see if you can stop reading.

Here is a quick link to a working services example on OSGi
http://java.dzone.com/articles/simple-osgi-service but there are many more.

--

Best regards,

Wim Jongman
Posted with Salvo, the Eclipse based newsreader.... On a Mac!!



> Hi Group,
> I'm new to Eclipse and RPC. As first project I'm trying to build a client
> for a online-game, containing three main parts:
> - the RPC-based frontend
> - a local database
> - a HTTP-Client for gathering informations and executing commands to the
> online-game
>
> I'm making very good progress on the RPC-part. A standalone database is no
> problem and the HTTP-Client (based on Apache's HTTP-Client) isn't a
> problem, too. But I have no clue, how to bind the three parts into one
> application.
>
> The HTTP-Client has to be always active, to keep the session alive.
> Frequently it should check the online-game for new information. If a new
> information exists, it should be written into the database and the
> views/editors have to be updated. The database should be embedded into the
> application (SQLite/HSQLDB) and the connection should be active while my
> program runs and should be shared and pooled for the RCP-GUI and the
> HTTP-Client.
>
> How to start separate threats at start-up and bind them to the workbench?
> Can somebody give me a link to a framework or even better to a How-To?
> Is the 'plug-in' functionality responsible for such task or 'Jobs'? Or is
> the answer somewhere in 'org.eclipse.ui.services'?
>
> I've searched the internet and the eclipse page a lot, without finding an
> answer on that.
>
> Thanks for your hints.
>
> Kiril
Re: Newbie question: background services/shared objects [message #483303 is a reply to message #483271] Mon, 31 August 2009 18:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: k.sramko.a-cube.eu

Hi Wim,

thanks for the links. The book looks exactly like what I was looking for!
I'll come back to this forum with new questions in about a week ;-)

Cheers, Kiril
Re: Newbie question: background services/shared objects [message #483457 is a reply to message #483303] Tue, 01 September 2009 12:33 Go to previous message
Eclipse UserFriend
Hi Kiri,

That's a promise!! I will be watching the thread. ;-)

--
Best Regards,

Wim Jongman
http://www.remainsoftware.com
http://www.industrial-tsi.com

"Kiril" <k.sramko@a-cube.eu> wrote in message
news:97909e6fd3b0a572f80e4ca1b064b69d$1@www.eclipse.org...
> Hi Wim,
>
> thanks for the links. The book looks exactly like what I was looking for!
> I'll come back to this forum with new questions in about a week ;-)
>
> Cheers, Kiril
>
Previous Topic:Headless RCP app that depends on a library the depends on Spring
Next Topic:How to enable scroll in disabled tree
Goto Forum:
  


Current Time: Tue May 20 03:19:11 EDT 2025

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

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

Back to the top