Hi,
I would like to know how can we configure power builder application as windows service that gets triggered as per the setup. I have gone through few posts earlier regarding this and understand that we would need a third party tool like NSSM / PBNIServ that can handle this. Could you please help me understand the step by step process in achieving this as all other posts we have seen so far are not giving handful information.
Thanks,
Sailaja.
Sorry but I did not get under which parameter you asked me to send a STOP command to PB App.
My requirement is that : In case the service that is setup through NSSM is stopped, then the application is terminating abruptly but I dont want this to happen. Instead there is code written when the PB app is triggered from front end, that user has a chance to Close W/Wait option where it will trigger the timer(5) and then finish the current batch. Then the application gets terminated.
How can I achieve this using NSSM ?
I dont see any option in NSSM which allows me to send some command except the arguments which are required on App login. Please let me know if there is any parameter that needs to be set which can trigger the existing code that would do Close W/ Wait option like it does from front end.
If you would like to "Quiese" (orderly shutdown of the PB App Server vs a "hard Stop", you can send a message to the Server from your PB Client App via ...
1) DDE: http://chrispollach.blogspot.com/2023/04/dde.html
2) Send() Command: http://chrispollach.blogspot.com/2019/11/sendmsg.html
3) TCP/IP: http://chrispollach.blogspot.com/2023/04/socket.html
HTH
Regards .. Chris