If possible two run two instance identityiq in the same server -tomcat

Dear Comunity,

I have one tomcat server, but I would like to run two identityiq instance.
C:\my_instalation_Tomcat\tomcat\webapps

  1. local_identityiq → currently deploy and run under: http://localhost:8081/local_identityiq
  2. identityiq → this the second instance and is under identityiq 8080 → http://localhost:8080/identityiq

The plan is not running at the same time, if i run one the other should be off.

because they are sharing the same identityiq db
thansk in advance

Interesting !! I haven’t tried running this but it seems it would not work if it is using the same database.

Thank you so i need to create another database

Yes this is possible :slight_smile:

Be sure to have the following:

  • separate ‘identityiq’ and separate ‘identityiqPlugin’ databases
  • separate webapps directorys in Tomcat (or any other application server)

– Remold

@Remold thank you for your answerbut about the port? To avlod “ip address already in use”

Does this mean you are running 2 separate instances of Tomcat as well?

It is interesting,

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.

We need to use different DB as well I guess.

yes two iiq same version and patch

if I urdenstand your asnwer you did:

  • separate ‘identityiq’ and separate ‘identityiqPlugin’ databases
  • separate webapps directorys in Tomcat (or any other application server)

And you also change the port for the two instance for example

  • local_identityiq → currently deploy and run under: http://localhost:8081/local_identityiq
  • identityiq → this the second instance and is under identityiq 8084 → http://localhost:8084/identityiq

And it did not work?

Yes in same Tomcat server

I didn’t create separate DB, I tried to use same DB and it didn’t work.

I would like to see a working version of 2 or more instances inside single Tomcat server.

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.

1 Like

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

Totally agree with you @mercury this is what I prefer to do always.

And in office laptops/desktops, always this lack of admin privileges blocks the software installation.

Manual ‘deployment/installation’ of Tomcat is also my preferred way :slight_smile:

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 :slight_smile:

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.

– Remold

Im going to back you guys, still having problems to make my second iiq running up (its from ssd)

an update, thank for your comments, @Remold was right

  • separate ‘identityiq’ and separate ‘identityiqPlugin’ databases
  • separate webapps directorys in Tomcat (or any other application server)

its enough to run two instances in the same tomcat server

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.