Hi,
I have a requirement of Calling a MySQL stored procedure every 1 hour. The Stored Procedure basically updates few tables.
I was thinking of writing a new B4J app to get this done. Then the idea got into the mind that as I already have an ABMaterial application running on the same server, then why not utilize the same app to get this done, so that I can avoid running multiple B4J applications on the same server.
Can I get some advice on this ? Where should I put this timer and routine ?. This has nothing to do with the pages available on the ABMaterial application. It uses the same database that the ABMaterial Application uses.
Whenever I start the ABMaterial application the timer should call a sub every one hour. This should be irrespective of the users accessing the application. Even if no one is using the ABM application, the timer should call the routine every one hour. This is in no way related with the users accessing the webpages in the ABM application.
For Eg in the Main() before the
OR after the above code ?
Or inside the ABMApplcation Module ? If yes, then at which point ?
Any advice will be appreciated.
Thanks
I have a requirement of Calling a MySQL stored procedure every 1 hour. The Stored Procedure basically updates few tables.
I was thinking of writing a new B4J app to get this done. Then the idea got into the mind that as I already have an ABMaterial application running on the same server, then why not utilize the same app to get this done, so that I can avoid running multiple B4J applications on the same server.
Can I get some advice on this ? Where should I put this timer and routine ?. This has nothing to do with the pages available on the ABMaterial application. It uses the same database that the ABMaterial Application uses.
Whenever I start the ABMaterial application the timer should call a sub every one hour. This should be irrespective of the users accessing the application. Even if no one is using the ABM application, the timer should call the routine every one hour. This is in no way related with the users accessing the webpages in the ABM application.
For Eg in the Main() before the
B4X:
' start the server
myApp.StartServer(srvr, "srvr", port)
StartMessageLoop
OR after the above code ?
Or inside the ABMApplcation Module ? If yes, then at which point ?
Any advice will be appreciated.
Thanks