I may sound idiotic and I guess I am asking an incorrect design question but just wanted to know your view point.
I want to start jetty container from one of my CloudFoundry app, Is it possible to do so , I guess the answer is no as it will be case of container inside other container, Please help.
Whats the real question:
I am trying to stub some of the other rest api that i will call from one of my cloud foundry app and for that I am using Stubby4J which is a good REST mockign system that starts jetty container. Jetty its not starting from inside my cloud foundry app as it requires a port etc.
I guess I need to change my approach and run my stubby4j application as a separate application ( as a core java app in cloud foundry ) that can be invoked from any cloudfoundry app
Please suggest.
I am not sure if this is still relevant to the OP, but it is possible to deploy stubby4j in a Docker container. See the https://stubby4j.com/#running-in-docker and check official stubby4j Docker images hosted on https://hub.docker.com/r/azagniotov/stubby4j