Automatically configure the connection factory

You can use the Jacl script cfgIdToken.jacl to automatically configure J2C authentication data, resource adapter and the connection factory. For OS/400 V5R2, to create a connection factory named CF1 in the WebSphere Application Server profile myinst:

  1. Ensure the application server (or deployment manager for a Network Deployment Edition profile) is started
  2. Start the QShell environment by typing QSH on the OS/400 command line and pressing enter
  3. cd to the WAS_INSTALL_ROOT/bin directory and invoke the following command:
    wsadmin -profileName myinst 
      -f /QIBM/ProdData/OS400/Java400/ext/cfgIdToken.jacl 
      CF1  sys1.ibm.com  389  "Eim Domain 1"  "Registry For MyInst" 
      -rarFile /QIBM/ProdData/OS400/Java400/ext/idTokenRA.rar  
      -authAlias myAlias1 -authUserName cn=administrator  
      -authPassword pwd1
    

    Note: The above lines have been wrapped to fit the display. Type them in one continuous line when entering the command.

    Note: Quote all argument values containing embedded blanks.

    Note: For OS/400 V5R3, substitute /QIBM/ProdData/OS400/security/eim for /QIBM/ProdData/OS400/Java400/ext.

    Note: For a Network Deployment Edition profile or if an external Web server is configured (version 6.0 or later), also use -nodeName to specify the node within the cell where the connection factory is to be configured.

    Note: If WebSphere global security is already enabled, append the wsadmin options -username myUid and -password myPwd to the command, where myUid and myPwd are the WebSphere administrative ID and password, respectively.

Where:

myinst

is the name of the WebSphere profile.

/QIBM/ProdData/OS400/Java400/ext/cfgIdToken.jacl

is the path name to the cfgIdToken.jacl script

SYS1_myinst

is the WebSphere node in which the connection factory is created

sys1.ibm.com

is the LDAP server system host name for the EIM domain controller

389

is the LDAP server port

EimDomain1

is the EIM domain name

Registry4MyInst

is the EIM source registry

/QIBM/ProdData/OS400/Java400/ext/idTokenRA.rar

is the path name to the idTokenRA.rar file

myAlias1

is the authentication alias name referenced by the connection factory when it authenticates to the EIM domain controller (LDAP server)

cn=administrator

is the distinguished name associated with the authentication alias

pwd1

is the password associated with the authentication alias