Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automating WS DataSource using command line

Status
Not open for further replies.

luvcal

Programmer
Aug 10, 2001
54
US
Is there any way to create a datasource from a command line instead of going into the Admin Console? I can create and bind a datasource using the ws DataSourceFactory class, but I want to create the datasource from the command line.
 
Go to the WebSphere InfoCenter for your version. Then browse to 6.6.0.2 Command Line Administration

This is the link for WAS 4.0

I have been looking at wscp for the last week, and I think you can do what you are asking with wscp. Einstein47
(Love is like PI - natural, irrational, endless, and very important.)
 
Thanks alot. We support Advanced Edition Single Server, and wscp is not available. I heard something about XML Config, but can't find anything about it. Is this another method of configuring a datasource and a pool? Thanks for your help.
 
Follow the link - it has a section on XMLConfig. I haven't used it much beyond exporting the settings from one server to update a second server. It should be able to create a DataSource, as long as you get the syntax right. XML can be very stubborn in this regard.

Good luck, Einstein47
(Love is like PI - natural, irrational, endless, and very important.)
 
Hello,
could you please tell me if you really must use xmlconfig or wscp...when you already have the admin console

thanks
 
Please do not post answers like it can be done. Yes the documentation says it can be done. But do not provide any details. All documentation is centered around DB2 and doesnot provide much support for other databases, for example SQL Server. I am trying to create a datsource using Sequelinkdriver shipped by IBM. When I try to use the wscp it prompts me to enter serverName, portNumber. When I enter the information I get the message portNumber not recognized. I have no clue how to solve this problem. If any body has successfully used wscp to create a Datasource please provide the answer.

IBM victim.
WebSphere sucks
Hopeless help system
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top