You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Marcus Deluigi <md...@student.ethz.ch> on 2006/07/12 14:36:31 UTC
Javaflow: Reference to the Runnable?
Hi there!
I am using javaflow.
What I want to do is the following:
Call Continuation.suspend() from within a thread.
Transfer the Continuation object over the network
call Continuation.continueWith(..)
_but_: in order to let the thread work properly at another place
within the network, I want to update a few references within the
thread and to the thread (for the thread communication).
Is it possible to get access to the 'runnable object' within the
continuation object?
I am searching for something like:
Continuation.getRunnable();Runnable
which is null if there is nothing assigned.
Is something like this possible?
If not, will it be implemented?
I don't know if it is possible, to alter the continuation object,
_before_ it has been continued with Continuation.continueWith( ..),
but I think it should be possible to alter it after it has been
continued. I think, the method could return null or throw an
exception if it is called without a running thread.
Greetings,
Marcus
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: Javaflow: Reference to the Runnable?
Posted by Marcus Deluigi <md...@student.ethz.ch>.
Oups .. something went wrong with this email.
Another question for the javaflow ant task:
The homepage says that the attribute "destdir" is required.
However, when I use it, I get the following error message:
---
BUILD FAILED
/Users/mdeluigi/SourceCode/StockMarketPrediction/build.xml:116: The
<javaflow> type doesn't support the "destdir" attribute.
---
If I skip it, I get the following error message:
---
BUILD FAILED
/Users/mdeluigi/SourceCode/StockMarketPrediction/build.xml:116:
java.lang.NullPointerException
---
The task looks like this:
---
<javaflow srcdir="/Users/mdeluigi/SourceCode/Test">
<include name="MyRunnable.class" />
</javaflow>
---
What am I doing wrong?
Greetings,
Marcus
On Jul 12, 2006, at 2:36 PM, Marcus Deluigi wrote:
> Hi there!
>
> I am using javaflow.
> What I want to do is the following:
> Call Continuation.suspend() from within a thread.
> Transfer the Continuation object over the network
> call Continuation.continueWith(..)
>
> _but_: in order to let the thread work properly at another place
> within the network, I want to update a few references within the
> thread and to the thread (for the thread communication).
> Is it possible to get access to the 'runnable object' within the
> continuation object?
>
> I am searching for something like:
> Continuation.getRunnable();Runnable
> which is null if there is nothing assigned.
>
> Is something like this possible?
>
> If not, will it be implemented?
>
> I don't know if it is possible, to alter the continuation object,
> _before_ it has been continued with Continuation.continueWith( ..),
> but I think it should be possible to alter it after it has been
> continued. I think, the method could return null or throw an
> exception if it is called without a running thread.
>
> Greetings,
> Marcus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org