Creating an IBM® i program call J2C connection for use on WebSphere® Application Server, V5.0 and later for an IBM i host, involves the following steps:
The connector delegates the authentication to the application server that supports J2C 1.0. J2C 1.0 supports "Basic password" and "Kerboros V5" authentication. For instructions in setting up authentication on the WebSphere Application Server on the host, see the information in the WebSphere Application Server Installation and Configuration documentation.
For information about the J2C 1.0 specification, see the J2EE Connector Architecture (located on Sun Microsystem's Web site at http://java.sun.com/j2ee/connector/index.html.) J2C 1.0 is fully supported by WebSphere Application Server V5.0 and later. However, only Basic password is supported by the application server.
The connection factory contains the definition for the ServerName, UserName, and Password properties.
Once the connector is installed on the application server, the administrator needs to set the values for the three properties for each instance of ISeriesPgmCallConnectionFactory, identified by the JNDI name.
The ISeriesPgmCallConnectionSpecImpl provides the serverName, userName, password, PcmlName, AS400LibList and Session ID properties that are required for the IBM i program call connection. .
The authentication information in ISeriesPgmCallConnectionSpecImpl takes precedence over that of the connector authentication setting in the application server, which in turn takes precedence over the setting in the ISeriesPgmCallConnectionFactory. In this way, the application component has the flexibility of either delegating the authentication to the application server, or of setting up the authentication information programmatically. The settings in the ISeriesConnectionFactory instance are the default when the other two settings are not defined.