Blueforcer Well-Known Member Licensed User Longtime User Nov 25, 2018 #1 I have a application wich runs as a GUI app but without any form or other JFX related functions. Sadly i need to go this way because of the problematic with ResumableSubs and Non gui apps. see: (https://www.b4x.com/android/forum/threads/abplugin-with-resumablesub.99638/) and (https://www.b4x.com/android/forum/threads/resumable-subs-wait-for-sleep-in-server-handlers.81833/) Because this app should run on a raspberry without any displayi need a solution to start this app remotly via ssh. I found this Blog. As i understand its possible to run a GUI app in Headlessmode. Is this possible in b4J? https://blog.idrsolutions.com/2013/08/what-is-headless-mode-in-java/ Last edited: Nov 25, 2018
I have a application wich runs as a GUI app but without any form or other JFX related functions. Sadly i need to go this way because of the problematic with ResumableSubs and Non gui apps. see: (https://www.b4x.com/android/forum/threads/abplugin-with-resumablesub.99638/) and (https://www.b4x.com/android/forum/threads/resumable-subs-wait-for-sleep-in-server-handlers.81833/) Because this app should run on a raspberry without any displayi need a solution to start this app remotly via ssh. I found this Blog. As i understand its possible to run a GUI app in Headlessmode. Is this possible in b4J? https://blog.idrsolutions.com/2013/08/what-is-headless-mode-in-java/
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2018 #2 I'm not familiar with any issue related to resumable subs and non-ui apps. This link (https://www.b4x.com/android/forum/threads/resumable-subs-wait-for-sleep-in-server-handlers.81833/) is not an issue. It explains how to start the message queue in order to use resumable subs. Upvote 0
I'm not familiar with any issue related to resumable subs and non-ui apps. This link (https://www.b4x.com/android/forum/threads/resumable-subs-wait-for-sleep-in-server-handlers.81833/) is not an issue. It explains how to start the message queue in order to use resumable subs.
Blueforcer Well-Known Member Licensed User Longtime User Nov 26, 2018 #3 Sadly it wont work with ABPlugin for any reason, If i do it like in your explanation i get the error: Code: Copy StartMessageLoop called from wrong thread. as I have described here https://www.b4x.com/android/forum/threads/abplugin-with-resumablesub.99638/#post-627149 the JobDone event never raise. Maybe you have another Solution for my special Problem Upvote 0
Sadly it wont work with ABPlugin for any reason, If i do it like in your explanation i get the error: Code: Copy StartMessageLoop called from wrong thread. as I have described here https://www.b4x.com/android/forum/threads/abplugin-with-resumablesub.99638/#post-627149 the JobDone event never raise. Maybe you have another Solution for my special Problem
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2018 #4 Why does the code run on a different thread? It will cause other issues in UI apps. Upvote 0
Blueforcer Well-Known Member Licensed User Longtime User Nov 26, 2018 #5 I dont know how this Lib Works https://www.b4x.com/android/forum/threads/abplugin-live-plugin-library-for-your-apps.67395/#content Lib-source: https://github.com/RealAlwaysbusy/ABPlugin But i think it acts like a wrapper wich only call the sub inside the Plugin (wich is actualy a B4J library) I ziped a minimal project witch should show my Problem. It contains the Mainapplication, the Plugin and the ABPLugin Library aswell Attachments DEMO.zip DEMO.zip 48.3 KB · Views: 380 Upvote 0
I dont know how this Lib Works https://www.b4x.com/android/forum/threads/abplugin-live-plugin-library-for-your-apps.67395/#content Lib-source: https://github.com/RealAlwaysbusy/ABPlugin But i think it acts like a wrapper wich only call the sub inside the Plugin (wich is actualy a B4J library) I ziped a minimal project witch should show my Problem. It contains the Mainapplication, the Plugin and the ABPLugin Library aswell
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2018 #6 After looking in the source code, I think that the problem is that ABPlugin is initializing your class on a different thread. Upvote 0
After looking in the source code, I think that the problem is that ABPlugin is initializing your class on a different thread.
Blueforcer Well-Known Member Licensed User Longtime User Nov 26, 2018 #7 So it won't be possible in the current state to solve my problem and I have to stay at a UI application? Edit: Could this Workaround work?: The Plugin parse only the URL to the Mainapplication. The Mainapp download the data and give it back to the Plugin. Upvote 0
So it won't be possible in the current state to solve my problem and I have to stay at a UI application? Edit: Could this Workaround work?: The Plugin parse only the URL to the Mainapplication. The Mainapp download the data and give it back to the Plugin.
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2018 #8 The correct solution is to ask the library author whether it can be fixed. Upvote 0