Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Single instance of an RCP application
Single instance of an RCP application [message #324884] Mon, 04 February 2008 02:46 Go to next message
Eclipse UserFriend
Hi,

Which is the best way to implement a single instance mechanism for a RCP
application (i.e. the launcher must only allow one instance)?

Thanks for your feedbacks,
Xavier
Re: Single instance of an RCP application [message #324900 is a reply to message #324884] Mon, 04 February 2008 05:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi Xavier,

The standard way to do this in Java is to use a non-shareable resource
such as a server-port. See
http://forum.java.sun.com/thread.jspa?threadID=419946&me ssageID=1863014
for an example (scroll down to Joerg22's response).

Cheers,
Dimitrios

Javier wrote:
> Hi,
>
> Which is the best way to implement a single instance mechanism for a RCP
> application (i.e. the launcher must only allow one instance)?
>
> Thanks for your feedbacks,
> Xavier
>
Re: Single instance of an RCP application [message #324902 is a reply to message #324900] Mon, 04 February 2008 06:19 Go to previous message
Eclipse UserFriend
Hi,

I'd use a locked file instead because opening ports may trigger
Antivirus software alerts and why open a way highjack your computer.

Tom

Dimitrios Kolovos schrieb:
> Hi Xavier,
>
> The standard way to do this in Java is to use a non-shareable resource
> such as a server-port. See
> http://forum.java.sun.com/thread.jspa?threadID=419946&me ssageID=1863014
> for an example (scroll down to Joerg22's response).
>
> Cheers,
> Dimitrios
>
> Javier wrote:
>> Hi,
>>
>> Which is the best way to implement a single instance mechanism for a
>> RCP application (i.e. the launcher must only allow one instance)?
>>
>> Thanks for your feedbacks,
>> Xavier
>>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:how to know eclipse abt changed file......
Next Topic:Snippet036FocusBorderCellHighlighter
Goto Forum:
  


Current Time: Tue Sep 16 16:04:48 EDT 2025

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

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

Back to the top