On 10/18/11 22:49 , Niclas Hedhman wrote:
Is this committed?

Now it is! Check out rest-client, rest-server, and rest-common. Test is in rest-client.

One issue I've realized is that right now each handler that is called as a consequence of "crc.refresh" (i.e. start the state machine) invokes the next step directly, which means that if you do 10 steps, then the Java stack is going to contain 10 calls. This works ok for small use cases which finish, but if you have a state machine and handlers that are supposed to work "infinitely", by doing get/post calls in a "loop" for example, then it will break with StackOverFlow at some point.

One way to fix it is to allow handlers to make the calls to the REST client, but don't perform them until the handler method returns, so that the stack never grows in size.

/Rickard

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to