Re: Start Service on Ofbiz Startup

2020-01-28 Thread Deepak Dixit
Hi Ingo, Please check the serviecengine.xml, you can define the startup-service there, I think this will fulfill your requirements === == Kind Regards, Deepak Dixit DIRECTOR OF PRODUCT ENGINEERING mobile: +91 9826754548 email: deepak.di...@hotwax.co *www.hotwax.co

Re: Start Service on Ofbiz Startup

2020-01-28 Thread James Yong
Hi Ingo, You can implement an OFBiz Container and declare it in your custom ofbiz-component.xml file. Also see Container.java from the sources. Another possible solution is to implement ServletContextListener and declare it in your custom web.xml file. Regards, James On 2020/01/28 09:58:14,

Re: Start Service on Ofbiz Startup

2020-01-28 Thread Ingo Wolfmayr
Yes it is important as the external storage, in my case an automatic storage system, sends messages to Ofbiz if inventory is requested. If it has the information that the connection is established, but unaware that Ofbiz is not ready it will run into problems - or makes it more complicated. I

Re: Start Service on Ofbiz Startup

2020-01-28 Thread Ingo Wolfmayr
Hello Gil, that was my first try either, unfortunately that is not working as when I restart Ofbiz, the service may crash and due to restarting a new pending job will not be created. So the service status has to be reviewed everytime the server is restarted and a new new job has to be

Re: Start Service on Ofbiz Startup

2020-01-28 Thread Michael Brohl
Is it important to establish the connection to the external storage system only after OFBiz has been startet? Can it be established beforehand? If yes, I would either startup the connection in your OFBiz start script or completely independend of OFBiz on the server level (mounting on

Re: Start Service on Ofbiz Startup

2020-01-28 Thread Gil Portenseigne
Hello Ingo, For this case, i think I would plan a job to run every X minutes, that will check if the connexion is alive or, establish it. The jobPoller will then take care of it after OFBiz is launched. Depending on the connexion type it might be enough. AFAIK there is no standard configuration

Start Service on Ofbiz Startup

2020-01-28 Thread Ingo Wolfmayr
Hi everybody, is it possible to start a service when Ofbiz has started and is ready? Use case: I need to startup a connection to an external storage system. In my case a TCP/IP connection that is permanent. Best regards, Ingo