Hi.
Last month I was doing some tests with B4J and webapps. I found it powerful and easy to use. But I do have some questions.
B4J webapps do have a jetty server embedded.
1) If we want to run more than one webapps on the same machine, we have to set each instance to use a different port. I believe there is no other way to achieve that. Am I right?
2) If we want the outside world to reach those applications using strictly port 80 or 443 and without redirection, we should have a separate public ip for each instance and configure NAT to internally translate public ip1 port 80 to internal ip instance 1 port xx1 and public ip2 port 80 to internal ip instance 2 port xx2. Am I right?
If scenario (2) is working, this isn’t a recommended solution, because it may require many public ip’s. Is there another way to solve that “issue”?
Finally, it would be nice if we had a way to somehow deploy a webapp to Jetty and not have it embedded in our app. Don’t know if this could be possible, I understand it’s not supported.
Andreas.
Last month I was doing some tests with B4J and webapps. I found it powerful and easy to use. But I do have some questions.
B4J webapps do have a jetty server embedded.
1) If we want to run more than one webapps on the same machine, we have to set each instance to use a different port. I believe there is no other way to achieve that. Am I right?
2) If we want the outside world to reach those applications using strictly port 80 or 443 and without redirection, we should have a separate public ip for each instance and configure NAT to internally translate public ip1 port 80 to internal ip instance 1 port xx1 and public ip2 port 80 to internal ip instance 2 port xx2. Am I right?
If scenario (2) is working, this isn’t a recommended solution, because it may require many public ip’s. Is there another way to solve that “issue”?
Finally, it would be nice if we had a way to somehow deploy a webapp to Jetty and not have it embedded in our app. Don’t know if this could be possible, I understand it’s not supported.
Andreas.