[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Preventing multiple instances of RCP app

Laszlo Bartos wrote:
There are several reasons, but the most important is that the customer has specified this as a requirement :-)

Those durn customers!

Its a difficult requirement. Its a platform question more than an RCP one as it has to do with starting eclipse and getting parameters into it. Ask in platform newsgroup.


This RCP application will replace an application which was called with different command line parameters from other programs. This command line parameters were the "API" of this program. The RCP application has to be backward compatible, it has to support the same command line parameters and the same behaviour (ie activate his workbench window and refresh the UI, like it was requested in the command line).
But there is also a technical reason: the application starts an embedded tomcat server, and we want to avoid starting 2 instances with 2 separate tomcats inside.


as for starting tomcat server thats easy. Break out this portion of your program into a seperate server. Perhaps call it through RMI. That way this seperate part can ensure only a single version is running no matter how many are tried to start.

P.S. eclipse also starts an embedded tomat server for Help IIRC.