I ran into a problem yesterday that prompted it. I wanted to create end-to-end integration tests for my simple vocabulary flash card JHS app. I wanted to be able to invoke those tests from the app.
In other words, have a button or an action that would self-check by issuing the wget / http requests to the various actions. This approach had my JHS page calling itself, which didn't work because the first request was blocking. As a workaround, I could run that outside of JHS and not have it integrated into my page. I could also skip writing integration tests altogether, but I wanted to try. On Wed, Jan 22, 2014 at 8:51 AM, Joe Bogner <[email protected]> wrote: > Hi Jan, > >> Are you trying to make something along the lines of: >> http://www.jsoftware.com/jwiki/MarshallLochbaum/Parallelize ? > > Not really, but somewhat similar. I'm working towards building more > complex web applications with J. The notion that a single request > could block all other requests makes me uncomfortable. Let's say a > calculation takes 5 seconds and I want 4 people to be able to execute > the calculation at once. I don't want the last person to wait 20 > seconds. > > This was the motivation for my proof of concept > https://github.com/joebo/j-fork-server for windows. I really like the > idea of being cross platform. I have a inexpensive linux virtual > private server that I'd like to be able to run J apps on. Also, I want > to be able to create apps that run on Windows servers for development > or possibly production. The cross platform story is a strong value > proposition for J > > As an aside, this approach could be used to create a master/worker framework. > > For example, in C#, I could execute multiple parallel requests to a J > web server and pass the unit of work in the request. I could then do a > WaitAll() for all those units of work to complete. > > http://msdn.microsoft.com/en-us/library/vstudio/hh556530(v=vs.110).aspx ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
