# Multiple solutions, one server

**URL:** <https://forum.servoy.com/t/multiple-solutions-one-server/2799>\
**Category:** Classic Servoy\
**Created:** [September 29, 2004, 10:51am UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799 "2004-09-29T10:51:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [September 29, 2004, 10:51am UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/1 "2004-09-29T10:51:11Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![edward](https://avatars.discourse-cdn.com/v4/letter/e/90db22/32.png) [@edward](https://forum.servoy.com/u/edward)\
**Post date:** [September 29, 2004, 2:20pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/2 "2004-09-29T14:20:41Z")

</div>

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](http://localhost:8080/servoy-client/servoy_client.jnlp?solution=crm)

HTH

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [September 29, 2004, 2:37pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/3 "2004-09-29T14:37:27Z")

</div>

Hi Edward,

Thanks a million! ![:D]( "Very Happy")

---

<div class="post-metadata">

**Author:** ![a.mariottini](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@a.mariottini](https://forum.servoy.com/u/a.mariottini)\
**Post date:** [September 29, 2004, 3:27pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/4 "2004-09-29T15:27:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [September 29, 2004, 9:24pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/5 "2004-09-29T21:24:17Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [September 30, 2004, 7:01am UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/6 "2004-09-30T07:01:50Z")

</div>

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](http://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:]( "Wink")

Works great! ![:D]( "Very Happy")

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [May 2, 2005, 6:36pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/7 "2005-05-02T18:36:33Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [May 2, 2005, 8:19pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/8 "2005-05-02T20:19:48Z")

</div>

Yes, is possible,

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

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [May 11, 2005, 2:41pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/9 "2005-05-11T14:41:26Z")

</div>

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:

```auto
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?

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [May 11, 2005, 2:47pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/10 "2005-05-11T14:47:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [May 11, 2005, 3:00pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/11 "2005-05-11T15:00:03Z")

</div>

> 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…

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [May 11, 2005, 3:03pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/12 "2005-05-11T15:03:17Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [May 11, 2005, 3:09pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/13 "2005-05-11T15:09:30Z")

</div>

> 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:]( "Wink")  
Added: did change the Servoy foldername too, but that didn’t help either…

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [May 11, 2005, 3:29pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/14 "2005-05-11T15:29:34Z")

</div>

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

how do you start both servoy’s

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [May 12, 2005, 10:41am UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/15 "2005-05-12T10:41:10Z")

</div>

> 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

```and

```

/Applications/freecolours/FCServoy/servoy\_server.sh

```auto

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

---

<div class="post-metadata">

**Author:** ![Jan\_Aleman](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jan\_Aleman](https://forum.servoy.com/u/Jan_Aleman)\
**Post date:** [May 12, 2005, 12:37pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/16 "2005-05-12T12:37:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [May 12, 2005, 1:51pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/17 "2005-05-12T13:51:25Z")

</div>

> 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)…

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [May 12, 2005, 1:54pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/18 "2005-05-12T13:54:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [May 12, 2005, 9:21pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/19 "2005-05-12T21:21:04Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Jan\_Aleman](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jan\_Aleman](https://forum.servoy.com/u/Jan_Aleman)\
**Post date:** [May 12, 2005, 10:41pm UTC](https://forum.servoy.com/t/multiple-solutions-one-server/2799/20 "2005-05-12T22:41:03Z")

</div>

> 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.
