Page 1 of 1

Decouple launching scripts form installation

PostPosted: Thu Aug 03, 2017 2:02 pm
by rieder
Hi

We have Smart Client and NG Client applications (one is web service) installed on a tomcat server. We are looking for possibilities (scripts/batch files/calls), how these applications could be launched. Our goal is, to decouple the launching scripts from development or installation details like ip, port, technique, context, solution name, form name or arguments.

Currently we think about an additional web server and php files which could be requested and would forward to the specific applications. With this, even a POST request should be possible to invoke.

Instead of
Code: Select all
http://<ip>:<port>/<context>/solutions/<solution name>/<form name>?<argument>=<value>

you could call
Code: Select all
http://<application nam>.php?arg=<value>


What is your experience?
What are your ideas?
Any suggestions?

Thanks in advance and best regards

Re: Decouple launching scripts form installation

PostPosted: Thu Aug 03, 2017 2:43 pm
by gk1441607435
Hi Birgit

I'm not shure if I understand you right. For me this sounds like you want to have an URL-Rewrite. If this is the case, look for a Rewrite-Valve.

Tomcat Page: https://tomcat.apache.org/tomcat-8.0-doc/rewrite.html
Example: https://examples.javacodegeeks.com/enterprise-java/tomcat/apache-tomcat-rewrite-rules-example/ !stupid popup add.

I have done that once, long time ago for a small java application. It takes some time to dig in, but it works. The question is, does the valve work together with Servoy?


On the other hand you talk about an extra webserver with php. It looks like you want to have an apache webserver (php) working together with an apache tomcat server.
I think then you need an AJP Connector to let the both servers communicate together. I have never done this before, I just read about it. I think this can be very complicated.

The Tomcat Page is: https://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html

I know this is not much, but it may helps you a bit.

Greetings Gregory

Re: Decouple launching scripts form installation

PostPosted: Thu Aug 03, 2017 2:53 pm
by rieder
Hi Gregory

Thank you for your reply! Yes, apache is, what we currently did install.
We'll have a look at your links and the documentation.

Kind regards