Hi ,
Please find below the steps I used to create and delete the new instance. I did’nt change the existing instance . I created the new instance to simulate the client side environment and once that was resolved , I deleted the new instance according to the below steps .
Create the new MWS instance:
- Use the Db component configurator of WM to create a new database and tables for the “product” my webMethods server in it. Make sure to select “create”, product “my webMethods server”, version “latest”, RDBMS must match yours (I am assuming SQL-Server), URL must match your environment, e.g. “jdbc:wm:sqlserver://localhost:1433;databaseName=wm97”, User ID/password for the new user to be created. Make sure to check “Create database and database user” and provide the user/password of a DB administrator and again the db-name you want to create
- Create the new mws instance by opening a command prompt at [instaldir]/MWS/bin and run:
mws.bat new -Dserver.name=eli -Dhttp.port=8586 -Ddb.type=ms -Ddb.url=“jdbc:wm:sqlserver://yourDbServer:1433;databaseName=EliminationProcessMWS95;MaxPooledStatements=35” -Ddb.username=yourDbUser -Ddb.password=XXXXX
remarks:
eli is an example for the name of your new instance
EliminationProcessMWS95 must match the name of the db you created
This assumes that your new MWS instance will run at port 8586
yourDbServer is the name of your db host
yourDbUser is the db username
XXXX is your DB password
This may take a while
- Then set this in the same prompt:
set _JAVA_OPTIONS=-Djava.io.tmpdir=c:\temp
to point to whaterver (preferable empty) directory you have available
- Go to [installationfolder]/profiles/ and delete the folder created for your new instance, e.g. “MWS_myInstance”
- Then run
mws.bat -s eli create-osgi-profile
where eli must match your instances name. This may take a while
- run
mws.bat -s eli init
where eli must match your instances name. This will take a while
- to to [installdir]/MWS/server/eli/bin (where eli must match your instances name) and run
run.bat
there. This will take a while
to your new MWS (go to IS admin-page, Settings/resources/edit and change the SAML url)
9) Also for BPM you need to let your IS’s monitor package to point to your MWS. Go to IS admin page, package, WmMonitoring (click on the house-icon), change the MWS-Host/Port there
If you want to get rid of your new instance:
- Run: mws.bat -s eli delete
- empty the temp dir (d:\temp)
- Delete the profile folder from [installdir]/profiles
- Use db component configurator to drop the db tables for component “my webMethods server” and “central configuration”
- Change SAML and WmMonitoring back to your normal MWS
Thanks,
Anju
#Integration-Server-and-ESB#edi#webMethods