Running the JADE Server as a service

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Running the JADE Server as a service

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:12 pm

by Craig Shearer >> Wed, 27 Jan 1999 0:29:43 GMT

Hi All

Here's an interesting tip that I discovered.

I was testing some server methods on our JADE server that runs as an NT service, but was confused by the fact that my write statements weren't appearing.

Then I discovered that there is an option in NT that allows services to interact with the desktop (under the startup settings on the Services applet in the Windows control panel). By default this is switched off, but by switching it on, the Interpretter Output Viewer window magically appears whenever you use a write statement.

Hope this helps,

Craig.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Running the JADE Server as a service

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:12 pm

by Silver Springs... >> Sun, 31 Jan 1999 22:34:29 GMT

Hmmm.... most interesting .... it was my understanding that server methods couldn't execute any statement that attempted to output to the screen. And in a server method that would be the server screen which is apparently a no-no!

This came out of JADE Support following my own experience in this regard when I attempted to display a form in a server method and it generated an NT Dr.Watsons crash.

Great if you have managed this Craig -- could be useful for testing purposes to get the server screen to show the Interpretter Output Viewer window.

From a client workstation though couldn't you just call a 'client' method from within the server method to output the write stuff to the client screen ?

Ciao Y2K-1 .................
Alan J.Thomson
ph...Auckland 09-277-7961 x 744
http://home.clear.net.nz/pages/athomson

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Running the JADE Server as a service

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:12 pm

by Dean Cooper >> Mon, 1 Feb 1999 1:16:58 GMT

Server methods are prevented from executing code that requires GUI objects (for example, forms and controls). This is because the server runs outside of the JADE GUI engine which implements these objects. However, the Interpreter Output Viewer is not implemented by the GUI engine; it is a separate module that talks directly to the operating system and doesn't require any GUI objects. This is why attempts to create forms in server methods are rejected, but write statements work.

Dean.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Running the JADE Server as a service

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:12 pm

by Craig Shearer >> Mon, 1 Feb 1999 19:07:06 GMT

Another thing which works is app.msgBox, which can be quite useful for debugging purposes.

Craig.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 1 guest