java - asynchronous pdf generation play framework -


Has anyone done this before I have trouble understanding the game of the given example Promise & lt; InputStream & gt; PDF = New ReportASPDF Job (Report). Now (); Inputstream pdf stream = wait (pdf); Renderbinary (pdfstream);

I know how to work in the sports framework, but how do you return the input stream using the PDF module in play.

The example is something to show a long running process, and how it used to work with the job There can be no report aspdfjob object.

Second, the PDF module, which is used to render with a controller using a render PDF method. The outcome is a result, and the promise is not being made.

To make this work, you should look at the PDF module and see how you can change it to promise, rather than throwing a result.

Comments