Re: [eclipse-users] Multithreading Java with eclipse

From: Farrell, Andrew <andrew.farrell_at_hp.com>
Date: Thu, 11 Oct 2007 16:56:56 +0100
Scratch this post: problem solved. Will advise why at a later time.

-----Original Message-----
From: eclipse-users-bounces+andrew.farrell=hp.com_at_crosscoreop.com
[mailto:eclipse-users-bounces+andrew.farrell=hp.com_at_crosscoreop.com] On
Behalf Of Farrell, Andrew
Sent: 11 October 2007 16:18
To: eclipse-users_at_crosscoreop.com
Subject: [eclipse-users] Multithreading Java with eclipse

Hi, 
I essentially want to have an interaction between Java and Eclipse, but
they have to be in different threads.
When I do single-threaded interaction everything is fine.
The QueueListener methods dataAvailable and dataRequest on the Java side
are called appropriately when Eclipse tries to write/read data.
Good stuff. 

But, what I really need is to do an  EmbeddedEclipse.rpc in one thread,
and also specify queue listeners which would also execute in that
thread, while other Java logic goes off and does its thing in another
thread.  I do need to have minimal cross manipulation between threads,
that is, queue listeners detached and reattached, and some shared data.
But even before I get to this, at the moment, I just create a Runnable
and start it in its own Thread, creating queues and queue listeners
within the run() method of the Runnable, as well as creating the Eclipse
engine within the run() method.  So everything to do with the
interaction exists in a separate thread from the main thread.  Doing
this, I get no interaction between eclipse and java in this secondary
thread.  Any suggestions?

Many thanks,
Andrew Farrell

_______________________________________________
ECLiPSe-Users mailing list
ECLiPSe-Users_at_crosscoreop.com
http://www.crosscoreop.com/mailman/options/eclipse-users
Received on Thu Oct 11 2007 - 16:57:10 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET