As a web developer I used to deploy multiple applications inside same server but not Tomcat though. Used to work with WAS with different folder (context root).
I tried same for IIQ, different folders, different ports but didn’t work.
I am running two identiiq instance in same tomcat server 8.1 & 8.3
make two instance
for 8.1 kept identitityiq extracted file in webapps name as identityiq
for 8.3 kept identitityiq extracted file in webapps name as identityiq1
create separate database identityiq & identityiq1
run create_identityiq_tables-8.1.oracle in identityiq database as it is
for 8.3 instance
before runing create_identityiq_tables-8.3.oracle script open it in notepad and replace identityiq with identityiq1
after that run this script inside identityiq1
The port is assigned to the Tomcat instance. Only need to separate ports if you are using two separate Tomcat instances, which is not what you suggested you want to do.
Aside from the yes answer, the question of best practice for developers is something you should consider. I did this for awhile but I stopped. The key is to NEVER USE THE TOMCAT MSI INSTALLER. It’s totally unnecessary.
When you go to the tomcat download site, there are 5 options:
zip - don’t use this
tar.gz - use this for linux installs using tar xvzf
32-bit Windows zip - don’t use this
64-bit Windows zip - use this for Windows installs
32-bit/64-bit Windows Service Installer - only use this if it was used before
The 5th option creates the Tomcat install in C:\Program Files\Apache Software Foundation\Tomcat 9 folder and that is ridiculous. Instead, do the following
C:
cd
mkdir iiq83 or whatever you want
I tend to use a foldername of the version for generic installs I will never modify and use the client’s name for ones I might, like C:\acme
Next just right-click on the tomcat zip file and expand into that folder c:\acme
Then to run it you just cd into the bin folder and type .\startup
When you are doing multiple development sites you want them all in separate folders.
Also be sure to set your JAVA_HOME but do not set CATALINA_HOME
Manual ‘deployment/installation’ of Tomcat is also my preferred way
For testing and PoCs, If you need to run 2 IdentityQs I would run them in just 1 single Tomcat instance, saves a lot of memory too
An other option is using Docker:
It might take some time (deep learning curve) to go through all the steps, but in the end it is a better maintainable solution to create IdentityIQ instances on the fly for Demos and Proof of Concepts.