WebSphere Application Server Network Deployment, Version 6.1
             Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

             Personalize the table of contents and search results

Configuring a single built-in, file-based repository in a new configuration under federated repositories using wsadmin

You can use the Jython or Jacl scripting language with the wsadmin tool to configure a single built-in, file-based repository in a new configuration under federated repositories.

Before you begin

Shut down the application server and ensure you have the primary administrator ID and password.

About this task

The federated repositories configuration file, wimconfig.xml, is supported by WebSphere Application Server 6.1.x and is located in the app_server_root/profiles/profile_name/config/cells/cell_name/wim/config directory.

Use the following steps to configure for use a single built-in, file-based repository in a new configuration for federated repositories.

Procedure

  1. Launch the wsadmin scripting tool.
  2. Create the fileRegistry.xml file, which is the user registry itself, if it does not already exist. If the fileRegistry.xml file does exist, use the following command to add the user to registry.
    Using Jython:
    AdminTask.addFileRegistryAccount('[-userId isoet01s01 -password oets01]')
    Using Jacl:
    $AdminTask addFileRegistryAccount {-userId isoet01s01 -password oets01}
  3. Update the security.xml file to enable administrative security, set the activeUserRegistry to use federated repositories, and update the primaryAdmin and its password.
    Using Jython:
    AdminTask.applyWizardSettings('[-secureApps false -secureLocalResources false -userRegistryType WIMUserRegistry -customRegistryClass com.ibm.ws.wim.registry.WIMUserRegistry -adminName isoet01s01 -adminPassword oets01]')
    Using Jacl:
    $AdminTask applyWizardSettings {-secureApps false -secureLocalResources false -userRegistryType WIMUserRegistry -customRegistryClass com.ibm.ws.wim.registry.WIMUserRegistry -adminName isoet01s01 -adminPassword oets01}
  4. Save your configuration changes. Enter the following commands to save the new configuration and close the wsadmin tool:
    Using Jython:
    AdminConfig.save()
    Using Jacl:
    $AdminConfig save
  5. Restart the application server.



In this information ...


IBM Redbooks, demos, education, and more


Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

IBM Suggests
Task topic    

Terms of Use | Feedback

Last updated: Feb 25, 2009 9:32:38 AM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/txml_config_single_fbase_repos.html