Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP application as daemon
RCP application as daemon [message #460902] Tue, 02 January 2007 12:34 Go to next message
Eclipse UserFriend
Originally posted by: jojy.sv.gmail.com

Hi all,

I have created an RCP application for hpux and I was able to run it
successfully.

My application does a lot of processing in the background. So I thought it
would be a good idea to run my application headless.

But I have a user interface attached with my application so I am not sure
how come I can get this done.

Because once I run process as daemon how come I will be able to see the
user interface attached with the same process.

Any one had tried to do this?

Any thoughts on doing this in eclipse

Regards
George S
Re: RCP application as daemon [message #460908 is a reply to message #460902] Tue, 02 January 2007 16:47 Go to previous message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
You have two choices:

A) Create a 2nd RCP application that is headless. Then, on your server, run eclipse with the 2nd application extension point. It will stay headless all the time.

B) Create a server component and a client component, and have the two talk to each other over some kind of networking protocol (e.g. via TCP/IP or HTTP or ...) to exchange data. That way, you should be able to start the server component separately and then join the RCP GUI application at a later stage.

Of the two, A) is much easier. In fact, this happens a lot in automated builds; the testing process is in fact another RCP application that just executes testing code (and generates results). B) is a lot more difficult, and quite likely will involve you changing your app a lot in order to make it work. As an example, the Java debugging tools in JDT does this when debugging a remote Java application, though the protocol is standardised already, which helps.

Lastly, it is possible to start it as a server application (i.e. headless) and then bring up the UI component by performing an OSGi bundle start, but you need some way of triggering that first. One way might be to run with the OSGi console on a network port (eclipse -console 1234) and then telnet to 1234 to get access to the console. The goal would be to start the bundle corresponding to your UI bundles, but I'm not sure how well this would fare with the RCP and application code; I'm not sure it's set up to handle that well.

Alex.
Previous Topic:property set twice in property view
Next Topic:Design question: use folders or something else?
Goto Forum:
  


Current Time: Thu Apr 25 05:09:01 GMT 2024

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

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

Back to the top