31.01.2013 Views

My webMethods Server Administrator's Guide - Software AG ...

My webMethods Server Administrator's Guide - Software AG ...

My webMethods Server Administrator's Guide - Software AG ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example:<br />

<strong>Server</strong> name: test<br />

HTTP port: 8090<br />

Database server (SQL <strong>Server</strong>): db_server<br />

Database name: my_wm_msql<br />

Database user name: mws_user<br />

Database password: password<br />

5. Running <strong>My</strong> <strong>webMethods</strong> <strong>Server</strong> from the Command Line<br />

> mws new -Dserver.name=test -Dhttp.port=8090 -Ddb.type=ms<br />

-Ddb.url=jdbc:wm:sqlserver:db_server:1433;DatabaseName=my_wm_msql;<br />

SelectMethod=direct;MaxPooledStatements=100 -Ddb.username=mws_user<br />

-Ddb.password=password<br />

[Configuration output displayed in console window....]<br />

> mws -s test run<br />

Modifying <strong>Server</strong> Configuration<br />

You can use the mws new command described in “Creating a New <strong>Server</strong> Instance” on<br />

page 46 to modify the configuration of an existing server instance. You can make changes<br />

to the following parameters:<br />

mws new parameter Purpose<br />

http.port Change the HTTP port used by <strong>My</strong> <strong>webMethods</strong> <strong>Server</strong>.<br />

db.url<br />

db.username<br />

db.password<br />

Change the location of the database server where the <strong>My</strong><br />

<strong>webMethods</strong> <strong>Server</strong> database resides. Useful if you need to<br />

move an existing database to a different database server.<br />

server.features Add to the set of component features configured with the server<br />

instance. You can only add component features this way.<br />

Previously configured component features are not removed.<br />

If you leave out a parameter to the mws new command, the default values are used. The<br />

default values are stored in the following files, both of which reside in this location:<br />

<strong>webMethods</strong>_install_dir/MWS/server/server_instance/config<br />

� cluster.xml—contains the server HTTP port.<br />

� db.xml—contains the URL of the server database, along with the database user name<br />

and password (encrypted).<br />

<strong>My</strong> <strong>webMethods</strong> <strong>Server</strong> Administrator’s <strong>Guide</strong> Version 7.1.1 � � � 48

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!