Multiple solutions, one server

I like to use my OS X 10.3 server as a demo server for some Servoy solutions that I’ve made. What I would like to have is separate clients for each solution. I don’t want each client being able to open all the solutions that are available in the Repository server, but only the only the one that is chosen via a weblink. How do I do this?

Hi Karel
As mentioned in the help section, you can specify a solution to load from the browser address box.

For example to start the Servoy CRM demo:
http://localhost:8080/servoy-client/ser … lution=crm

HTH

Hi Edward,

Thanks a million! :D

I found this trick.
With Notepad create a file named .url (replace with your solution name and change “txt” extension to “url”) with this content:
[InternetShortcut]
URL=http://:8080/servoy-client/servoy_client.jnlp?solution=

Double click the file to open the solution.

a.mariottini:
I found this trick.
With Notepad create a file named .url (replace with your solution name and change “txt” extension to “url”) with this content:
[InternetShortcut]
URL=http://:8080/servoy-client/servoy_client.jnlp?solution=

Double click the file to open the solution.

That works for Windows.
On Mac OS X you type that complete URL in your favorite text editor and then select the whole URL and drag this to your desktop. The clipping turns in to a .webloc file wich you can double click to open your default web browser with this URL.

On any platform however when you already loaded the servoy client with this URL the downloaded client will open the solution directly the next time you launch the client. So no more need for a web browser.

Thank you all for thinking along!

This is what I did: I added the client URL in my domain forward link, so the clients only have to type solutionname.mydomain.com. On this URL I have a nice webpage with a download button (or a loginform that will redirect them to a webpage with a download button).
This way clients don’t have to type a complicated URL and they don’t easily type the wrong URL either… :wink:

Works great! :D

Another issue in the same subject…

I do like to know if it’s possible to have 2 Application Servers (repositories) running on one Server, one for internal usage and one for external usage?
Both applications need to have different portnumbers, so external users cannot access the internal solutions.
The solution, however, has the same name, but deployed on different databases for internal and external usage.
Is that possible? Or do I need to have 2 servers then?

Yes, is possible,

see Servoy Server Manual!
It’s well documented there.

Well… changed the 3 ports as mentioned in the manual. Both Application Servers do run, but not both at the same time…
Console returns this error message:

Command: dbsrv9
Path:    /Applications/freecolours/Servoy/sybase_db/dbsrv9
Version: ??? (???)
PID:     1123
Thread:  Unknown

Link (dyld) error:

dyld: /Applications/freecolours/Servoy/sybase_db/dbsrv9 can't open library: libdbserv9_r.dylib  (No such file or directory, errno = 2)

It looks like it just can’t start the second dbsrv9, but I can’t figure out the reason why…
Any suggestions?

Karel, does the second server start, if you set the portnumbers the same as the first server? (first stop the first server, ofcourse!)

HJK:
Karel, does the second server start, if you set the portnumbers the same as the first server?

Yes, the second server runs fine (even with custom portnumbers), but not when the first server is running…

do you have two seperated folders, for example: servoy1 and servoy2?
and contain they both seperate a Servoy installation?

It looks like the second server is using the db instance of the first!

HJK:
do you have two seperated folders, for example: servoy1 and servoy2?

The Servoy Application Servers are located in different folders.

  1. /Applications/Servoy
  2. /Applications/freecolours/Servoy

and contain they both seperate a Servoy installation?

Yes, the’re both separate installations

It looks like the second server is using the db instance of the first!

That’s what I noticed, too… :wink:
Added: did change the Servoy foldername too, but that didn’t help either…

check your sybase.config file
maybe, the second server is pointing to the first one!

how do you start both servoy’s

HJK:
check your sybase.config file
maybe, the second server is pointing to the first one!

This is server 1 config:

-ti 0 -x tcpip{dobroadcast=no} -ud -qs -qw -o /Applications/Servoy/sybase_db/sybase_log.txt
/Applications/Servoy/database/servoy_repository.db
/Applications/Servoy/database/user_data.db
/Applications/Servoy/database/example.db
/Applications/Servoy/database/log_data.db
/Applications/Servoy/database/crm.db

This is server 2 config:
-ti 0 -x tcpip{dobroadcast=no} -ud -qs -qw -o /Applications/freecolours/FCServoy/sybase_db/sybase_log.txt
/Applications/freecolours/FCServoy/database/servoy_repository.db
/Applications/freecolours/FCServoy/database/user_data.db
/Applications/freecolours/FCServoy/database/example.db
/Applications/freecolours/FCServoy/database/log_data.db
/Applications/freecolours/FCServoy/database/crm.db

how do you start both servoy’s

By starting them via the Terminal with command ```
/Applications/Servoy/servoy_server.sh

/Applications/freecolours/FCServoy/servoy_server.sh


I can't figure out how to let the second server start his own db server...

That’s tricky with ASA as it doesn’t always use the same port if you run multiple instances of the same server. The easiest is to run one instance of asa and use different database names for each instance.

jaleman:
The easiest is to run one instance of asa and use different database names for each instance.

That would be the easiest, but unfortunatly I need to have 2 ASA’s, because I use the same solution twice on 1 server AND each solution needs to have his own data(tables)…

Karel, that’s no problem

make a db: crm and give it (point to it) in server1 the connectionname: crm
make a db: crm2 and give it (point to it)in server 2 also the connectionname: crm

Now you have seperated files, with the same connectionname

I still can’t get it working properly. I guess Servoy can’t run 2 different servers at the same time with same solutionnames on one server computer…
I’m giving up on this, cause it’s to much of a hassle (and time) to get it working. I guess I need to have another computer that hosts the second server…

Hopefully there will be some nice and simple feature or app sometime to get this working…

freecolours:
I still can’t get it working properly. I guess Servoy can’t run 2 different servers at the same time with same solutionnames on one server computer…
I’m giving up on this, cause it’s to much of a hassle (and time) to get it working. I guess I need to have another computer that hosts the second server…

Hopefully there will be some nice and simple feature or app sometime to get this working…

Servoy doesn’t care at all: it can run thousands of instances and thousands of databases on a single server if that server has enough capacity and you follow the rules described in the server documentation which are quite staight forward. I have personally (and as many of you know I am not really a programmer) installed servoy on servers with multiple instances without any problems which makes me strongly disagreee with the hassles you describe above.