Multiple webapps

View and download documents on various topics e.g. Configuring Ebase Xi under different environmental setups

Moderators: Dave, Jon, Steve, Ian

systemsolutions
Ebase User
Posts: 17
Joined: Tue Oct 03, 2017 3:33 pm
Location: USA

Multiple webapps

#1

Postby systemsolutions » Mon Nov 05, 2018 8:59 am

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
0 x

Jon
Moderator
Moderator
Posts: 1289
Joined: Wed Sep 12, 2007 12:49 pm

Re: Multiple webapps

#2

Postby Jon » Mon Nov 05, 2018 2:20 pm

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"
0 x

Jon
Moderator
Moderator
Posts: 1289
Joined: Wed Sep 12, 2007 12:49 pm

Re: Multiple webapps

#3

Postby Jon » Mon Nov 05, 2018 2:29 pm

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

systemsolutions
Ebase User
Posts: 17
Joined: Tue Oct 03, 2017 3:33 pm
Location: USA

Re: Multiple webapps

#4

Postby systemsolutions » Mon Nov 05, 2018 2:41 pm

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
0 x

systemsolutions
Ebase User
Posts: 17
Joined: Tue Oct 03, 2017 3:33 pm
Location: USA

Re: Multiple webapps

#5

Postby systemsolutions » Mon Nov 05, 2018 10:10 pm

It works perfect!!!! Thanks for the help.
0 x


Who is online

Users browsing this forum: No registered users and 2 guests