Hello!
I have a problem with the Rife-Continuations in combination with
non-continuable objects.
I try to use the continuations to replace thread pools in an open source
multi agent system called Jadex. Continuations works so far, until i try to
make a loopback call from a non-continuable object to a continuable object
and then pause the continuation.
This is the (slightly modified) callstack:
TestClass.someMethod() [e.g. something like a executor or a test case]
--> ContinuableRunner.start(ContinuableObject)
--> ContinuableObject.execute()
[pause continuation, set non-continuable object and resume
continuation]
--> NonContinuableObject.someMethod()
--> TestClass.loopbackTest()
-->ContinuableObject.pauseContinuationMethod()
--> pause() [called in the pauseContinuation]
After the loopback-method, the pause() call in the ContinuableObject throws
an UnsupportedOperationException.
Also a simplified callstack doesn't work:
TestClass.someMethod()
--> ContinuableRunner.start(ContinuableObject)
--> ContinuableObject.execute()
[pause continuation, set non-continuable object and resume
continuation]
--> NonContinuableObject.someMethod()
--> ContinuableObject.loopbackTest()
--> pause() [called in the loopbackTest() method]
The second example only loops from the continuable object to the
non-continuable object,but the pause method throws the same exception.
In the attachement are two testcases and the needed classes. Hope this makes
my problem a little bit clearer. The testcases should work with the rife svn
tree.
Is it possible to implement such callstack with Rife-Continuations? And if
yes, can anybody tell me what i make wrong?
Testcases:
http://www.nabble.com/file/p18335150/testcases.tar.gz testcases.tar.gz
-- View this message in context:
http://www.nabble.com/Continuable-callstack-outside-a-ContinuableObject--tp18335150s9330p18335150.html
Sent from the RIFE - users mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"rife-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---