Hi, my questions pertains to this exact problem Jonathan has introduced, but from a different angle and I haven't been able to find a solution (at least not of the kind that would enlighten me) online. Namely, while it is self-evident, how you get to a JsonNode (or any other data) in the second Jonathan's example, I can't seem to get my head around comprehending, how do you get a JsonNode or any other data out of the async() method through Java libraries? All the examples I have come across only deal with returning a Result with an ok() method.
Using F.Promise's get() blocks the thread (or at least so I understand) and as such obviously negates one of the Play!'s fortes, while async() as per my understanding only takes Promise<Result> as an argument and returns AsyncResult exclusively, and neither Result nor AsyncResult seem to offer any usable method. Is there any way to collect/fetch data from Result or AsyncResult that I am not aware of? Or is there an altogether different way of tackling this?
Any advise would be greatly appreciated...
Just for info, with scala2.10 and the new futures will come the ability to separate execution contexts based on threadpools, thus allowing in theory separating HTTP threads from akka threads from jdbc threads etc...
Pascal
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/IaItKa68ZWMJ.