Tuesday 29 July 2014

Create multiple instances of Maximo

I found below link to create multiple instances of Maximo in websphere. We strongly recommend that this procedure be used only for educational and experimental environments and must not used in commercial situations.

Source: http://maximo8.com/?p=70

We recommend this procedure be used only for educational and experimental environments. While you may find that you can satisfy Sarbanes-Oxley requirements for multiple environments this way, please don;t. Yes, this is a disclaimer. However, if you insist that you need a second environment and this your only way to go, here's a free, no mystery, step-by-step procedure. Do so at your own risk. Please remember that you didn't get this here.

The "How To" and "Start Here"

First, always create a backup copy of your Maximo production database. It is assumed you know how to do that, but if you don't, google for guide for backing up a DB2, SQL Server or an Oracle database and learn the procedure well. After you have created a backup, restore the database and name it MaxTest.

Log into the Websphere admin console. The default username is 'wasadmin'. Expand 'Servers' and click on 'Application Servers'. There you should find one instance called 'MXServer' which is the one you already installed. Click on 'New' to create a new app server. Enter 'MXTest' as your server name and hit 'Next'.

Accept the default template and check the box for 'Generate Unique Ports'. Finish and confirm your new app server. Finally save directly to your master configuration.

Click on the 'MXTest' app server. Under 'Server Infrastructure', expand 'Java and Process Management' and click on 'Process Definition'. Click on 'Java Virtual Machine' under the Additional Properties. Here you need to set the Initial Heap Size to 512 and the Maximum Heap Size to 1024.
Don't forget to save to master.

Now we need to know what our new application server is using for ports. Go back to your Application Server list and click on 'MXTest', expands 'Ports' and make note of the ports numbers for the four port names that begin with 'WC'. Take note of the port numbers, which should look like this:

Websphere ports 1
Websphere ports 1
Create a new virtual host. Expand 'Environment' in the left pane and click on 'Virtual Hosts'. Here you will see a list o ghosts such as maximo_host, admin_host, etc. Click on 'New' and name it 'maxtest_host' and click on Apply. Now click on 'Host Aliasses'. This list should be empty, and we will be creating 5 new aliases. Click on 'New' and accept the default port 80 and click 'Apply'. Next, create four more ports that look like the following:

Host aliases
Host aliases
Go to your Maximo installation directory, the default is "C:/ibm/SMP". Just beneath SMP you will find a directory named "maximo". Copy that entire directory and rename it 'maxtest'. We find this is a better choice than copying the entire ivm/SMP branch. This will not only save space, but will avoid confusion later on.

Next, navigate to the "C:/ibm/SMP/maxtest/applications/maximo/META-INF" folder and open the 'application.xml' file. Search for '<context-root>/maximo</contextroot>' and change it to '<context-root>/maxtest</context-root>'. This will be used in the url of reconnecting to your new instance. For example, the url for connecting to your  Maximo test application server will be
"http://servername:port/maxtest".

Go find and edit the same property in the 'deployment-application.xml' as well. Save both files.

Open your maximo.properties file at 'C:/ibm/SMP/maxtest/applications/maximo/properties'. Change the 'database' to the name of your newly created SQL Server database. The database property should
look something like this:

database=MAXTEST&amp;language=us_english&amp;nowarnings=true&amp;mars=false

Also change the 'mxe.registry.port' property. Keep it simple, just add one to the existing value.

Finally, the last property to modify is 'mxe.int.webappurl'. Change it to: mxe.int.webappurl=http://{servername}:9081/meaweb/mxe.int.globaldir=MaxTest

Finally, rebuild and deploy your maximo ear fils for the newly created maxtest application server. Access your Maximo test environment at ''http://servername:9081/maxtest'



No comments:

Maximo SOAPUI error javax.xml.ws.WebServiceException

SOAPUI error while sending payload to below url (in cluster environment) http://localhost:9080/meaweb/services/MXASSET Error : <f...