Is there documentation available that describes how to setup and run multiple webapps with ebase?
I'd like to have one TomCat server running two ebase apps on different ports.
I tried searching, but was not successful.
Thanks
Multiple webapps
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 19
- Joined: Tue Oct 03, 2017 3:33 pm
- Location: USA
Multiple webapps
0 x
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Re: Multiple webapps
No but it should be fairly simple:
1. Copy the ebase folder in tomcat/webapps so you have two e.g. ebase and ebase2.
2. Create a new context file in tomcat/conf/Catalina/localhost e.g. copy ebase.xml to ebase2.xml. I don't think you need to change anything inside this file.
3. Restart the server
From a tomcat perspective that's all you need to do. But to create two independent webapps you will also need to create a copy of the repository database. If you are using the default embedded Derby, then copy the UFS folder in UfsServer/DB to e.g. UFS2, then change the UFSREPOSITORY datasource definition in the ebase2.xml context file to point to this e.g.
url="jdbc:derby:UFS2;create=false"
1. Copy the ebase folder in tomcat/webapps so you have two e.g. ebase and ebase2.
2. Create a new context file in tomcat/conf/Catalina/localhost e.g. copy ebase.xml to ebase2.xml. I don't think you need to change anything inside this file.
3. Restart the server
From a tomcat perspective that's all you need to do. But to create two independent webapps you will also need to create a copy of the repository database. If you are using the default embedded Derby, then copy the UFS folder in UfsServer/DB to e.g. UFS2, then change the UFSREPOSITORY datasource definition in the ebase2.xml context file to point to this e.g.
url="jdbc:derby:UFS2;create=false"
0 x
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Re: Multiple webapps
Whoops just realised I answered the wrong question. The previous post is to run two webapps on the same tomcat but with both sharing the same port.
I've never set up a tomcat instance with two ports, one for each webapp. Bust here's a link to someone who has done this
https://www.tecmint.com/run-deploy-mult ... os-ubuntu/
Another option is to setup two tomcat instances.
I've never set up a tomcat instance with two ports, one for each webapp. Bust here's a link to someone who has done this
https://www.tecmint.com/run-deploy-mult ... os-ubuntu/
Another option is to setup two tomcat instances.
0 x
-
- Ebase User
- Posts: 19
- Joined: Tue Oct 03, 2017 3:33 pm
- Location: USA
Re: Multiple webapps
Actually using the same port is even better. I didn't think you could do that, but I guess it's the webapp name that's the unique value to differentiate the two apps.
I will try this out.
Thanks
I will try this out.
Thanks
0 x
-
- Ebase User
- Posts: 19
- Joined: Tue Oct 03, 2017 3:33 pm
- Location: USA
Who is online
Users browsing this forum: No registered users and 6 guests