mrred128 Active Member Licensed User Longtime User Jun 17, 2014 #1 I would like to know if there is any way to get the status of the server object. I just need to know if it is running or not, for application control.
I would like to know if there is any way to get the status of the server object. I just need to know if it is running or not, for application control.
mrred128 Active Member Licensed User Longtime User Jun 17, 2014 #2 There also does not seem to be a way to stop the service. Any advice? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 18, 2014 #3 Once you called Server.Start the server will keep running until the process is killed. If you need to monitor or control it from a different app then you can create a simple test servlet and a servlet that kills the process. Upvote 0
Once you called Server.Start the server will keep running until the process is killed. If you need to monitor or control it from a different app then you can create a simple test servlet and a servlet that kills the process.
mrred128 Active Member Licensed User Longtime User Jun 18, 2014 #4 Is it possible to expose more control functions with jObject? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 18, 2014 #5 Which function are you looking for? Upvote 0
mrred128 Active Member Licensed User Longtime User Jun 18, 2014 #6 The above mentioned functionality. From the application (server) I would like to be able to "see" if the web server is running and have the ability to change the port ( I would assume I would have to stop/start the jetty bits). If I have to drop the host application, there would be no point. Upvote 0
The above mentioned functionality. From the application (server) I would like to be able to "see" if the web server is running and have the ability to change the port ( I would assume I would have to stop/start the jetty bits). If I have to drop the host application, there would be no point.
Erel B4X founder Staff member Licensed User Longtime User Jun 18, 2014 #7 You didn't mention changing ports which is a more complicated issue. Once you call Server.Start the server will keep running until the process is killed. You can use a global variable to monitor its running state. It is not possible to change the port when the server is running. You can create another app that is responsible for killing the server process and starting it with the port passed as a command line parameter. Upvote 0
You didn't mention changing ports which is a more complicated issue. Once you call Server.Start the server will keep running until the process is killed. You can use a global variable to monitor its running state. It is not possible to change the port when the server is running. You can create another app that is responsible for killing the server process and starting it with the port passed as a command line parameter.