With Mendix it should work this way:
- create a Java action that kicks off a thread for Zookeeper: https://zookeeper.apache.org/doc/r3.4.13/javaExample.html
- call this java action in during after startup: https://docs.mendix.com/refguide/project-settings#after-startup