WAS v8.5 > Script the application serving environment (wsadmin) > Scripting for data access resources > Configure data access with wsadmin scripting

Configure new data sources using wsadmin

We can configure new data sources using wsadmin.sh.

Before starting this task, wsadmin must be running. See the topic Starting the wsadmin scripting client for more information.

In WebSphere Application Server, any JDBC driver properties required by the database vendor must be set as data source properties. Consult the article Data source minimum required settings, by vendor to see a list of these properties and setting options, ordered by JDBC provider type. Consult the database vendor documentation to learn about available optional data source properties. Script them as custom properties after you create the data source. In the Related links section of this article, click the "Configuring new data source custom properties using scripting" link for more information.

There are two ways to perform this task; use either of the following wsadmin scripting objects:

AdminConfig gives you more configuration control than the AdminTask object. When creating a data source using AdminTask, you supply universally required properties only, such as a JNDI name for the data source. (Consult the article JDBCProviderManagement command group for AdminTask for more information.) Other properties required by your JDBC driver are assigned default values by Application Server. We cannot use AdminTask commands to set or edit these properties; use AdminConfig commands.

To set additional properties that are supported by your JDBC driver, script them as data source custom properties.


Related


Configure new data source custom properties using wsadmin
Create configuration objects using wsadmin.sh
Use the wsadmin scripting AdminConfig object for scripted administration
Start the wsadmin scripting client using wsadmin.sh
Save configuration changes with wsadmin


Reference:

Data source minimum required settings, by vendor
Commands for the AdminConfig object using wsadmin.sh
WAS data source properties
JDBCProviderManagement command group for AdminTask object


+

Search Tips   |   Advanced Search