Decouple launching scripts form installation

Questions, answers, tips and ideas on Servoy Client

Decouple launching scripts form installation

Postby rieder » Thu Aug 03, 2017 2:02 pm

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
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 177
Joined: Thu Jan 26, 2012 5:18 pm

Re: Decouple launching scripts form installation

Postby gk1441607435 » Thu Aug 03, 2017 2:43 pm

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
gk1441607435
 
Posts: 14
Joined: Mon Sep 07, 2015 8:30 am

Re: Decouple launching scripts form installation

Postby rieder » Thu Aug 03, 2017 2:53 pm

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
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 177
Joined: Thu Jan 26, 2012 5:18 pm


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 10 guests