Package All Classes All Fields and Methods Deprecated
java.lang.Objectcom.ibm.connector2.ims.ico.IMSConnectionSpec
An IMSConnectionSpec instance is used by an application component to pass information to the getConnection method. One example of this is an application using component-managed EIS sign-on. In this case, the application uses an IMSConnectionSpec instance to pass security information such as user name, password and group name to be used for that connection.
Connection connection = null; // Populate an IMSConnectionSpec object IMSConnectionSpec aCSpec = new IMSConnectionSpec(); aCSpec.setUserName("myUserName"); aCSpec.setPassword("myPassword"); aCSpec.setGroupName("myGroupName"); // Obtain a connection handle connection = connectionFactory.getConnection(aCSpec);
Another example is an application using a dedicated persistent socket connection to IMS Connect. In this case, the application uses an IMSConnectionSpec instance to provide the clientID to be used for the connection. This form is used, even when the application uses container-managed sign-on.
Connection connection = null; // Populate an IMSConnectionSpec object IMSConnectionSpec aCSpec = new IMSConnectionSpec(); aCSpec.setClientID("CLIENT01"); // Obtain a connection handle connection = connectionFactory.getConnection(aCSpec);
IMSConnectionFactory.getConnection(ConnectionSpec)
Field Summary | |
java.beans.PropertyChangeSupport |
propertyChange
Property change support |
Fields inherited from interface com.ibm.ims.ico.IMSICOProperties |
COMMIT_THEN_SEND, DEFAULT_ALTCLIENTID_NAME, DEFAULT_CM0DEDICATED, DEFAULT_COMMIT_MODE, DEFAULT_CURRENT_SEGMENT, DEFAULT_DATASTORE_NAME, DEFAULT_ENCRYPTYPE, DEFAULT_GROUPNAME, DEFAULT_HOSTNAME, DEFAULT_IMSCONNNAME, DEFAULT_ISSSL, DEFAULT_KEYSTORENAME, DEFAULT_KEYSTOREPASSWD, DEFAULT_LTERM_NAME, DEFAULT_MAP_NAME, DEFAULT_PASSWORD, DEFAULT_PORTNUMBER, DEFAULT_REPOSITORYID, DEFAULT_REPOSITORYURI, DEFAULT_REROUTE_NAME, DEFAULT_TRUSTSTORENAME, DEFAULT_TRUSTSTOREPASSWD, DEFAULT_USERNAME, ENCRYPTYPE_0, ENCRYPTYPE_1, ENCRYPTYPE_2, IBM_SSL_CERT_TYPE, MAX_ALTCLIENTIDNAME, MAX_CIPHER_ARRAY, MAX_CLIENTID, MAX_DATASTORENAME, MAX_GROUPNAME, MAX_IMSCONNNAME, MAX_LTERMNAME, MAX_MAPNAME, MAX_PASSWORD, MAX_REROUTENAME, MAX_SSLSTOREPASSWORD, MAX_USERNAME, MODE_ACK_TEXT, MODE_COMMIT_TEXT, MODE_END_CONVERSATION_TEXT, MODE_FORGET_TEXT, MODE_NACK_TEXT, MODE_PREPARE_TEXT, MODE_RECEIVE_ASYNCOUTPUT_SINGLE_NOWAIT_TEXT, MODE_RECEIVE_ASYNCOUTPUT_SINGLE_WAIT_TEXT, MODE_RECEIVE_ASYNCOUTPUT_TEXT, MODE_RECEIVE_TEXT, MODE_RECOVER_TEXT, MODE_ROLLBACK_TEXT, MODE_SEND_ONLY_TEXT, MODE_SEND_RECEIVE_TEXT, SEND_THEN_COMMIT, SSL_PROVIDER, SSL_STORE_TYPE_JCE4758RACFKS, SSL_STORE_TYPE_JCERACFKS, SSL_STORE_TYPE_JKS, SUN_SSL_CERT_TYPE, SYNC_LEVEL_CONFIRM, SYNC_LEVEL_NONE, SYNC_LEVEL_SYNCPT |
Constructor Summary | |
IMSConnectionSpec()
Creates an IMSConnectionSpec instance. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener for all the properties. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener for a property. |
boolean |
equals(java.lang.Object other)
Determines if the passed instance is equal to this IMSConnectionSpec instance. |
void |
firePropertyChange(java.beans.PropertyChangeEvent evt)
The firePropertyChange method was generated to support the propertyChange field. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
The firePropertyChange method was generated to support the propertyChange field. |
java.lang.String |
getClientID()
Returns the value of the clientID property. |
java.lang.String |
getGroupName()
Returns the value of the groupName property. |
java.lang.String |
getPassword()
Returns the value of the password property. |
java.beans.PropertyChangeSupport |
getPropertyChange()
Accessor for the propertyChange field. |
java.lang.String |
getUserName()
Returns the value of the userName property. |
int |
hashCode()
Returns a hash code representation of the user name, password, and group name. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener for a specific property. |
void |
setClientID(java.lang.String newClientID)
Sets the value of the clientID property. |
void |
setGroupName(java.lang.String newGroupName)
Sets the value of the groupName property. |
void |
setPassword(java.lang.String newPassword)
Sets the value of the password property. |
void |
setUserName(java.lang.String newUserName)
Sets the value of the userName property. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public transient java.beans.PropertyChangeSupport propertyChange
Constructor Detail |
public IMSConnectionSpec()
Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be added.public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be added.propertyName
- The name of the property to listen on.public boolean equals(java.lang.Object other)
public void firePropertyChange(java.beans.PropertyChangeEvent evt)
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public final java.lang.String getClientID()
setClientID(String)
public final java.lang.String getGroupName()
setGroupName(String)
public final java.lang.String getPassword()
setPassword(String)
public java.beans.PropertyChangeSupport getPropertyChange()
public final java.lang.String getUserName()
setUserName(String)
public int hashCode()
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- The name of the property that was listened on.listener
- The PropertyChangeListener to be removed.public void setClientID(java.lang.String newClientID)
newClientID
- The clientID value.getClientID()
,
IMSManagedConnectionFactory
public void setGroupName(java.lang.String newGroupName) throws javax.resource.ResourceException
newGroupName
- The new groupName value.
javax.resource.ResourceException
- If
newGroupName contains more than the maximum
number of characters (8).getGroupName()
public void setPassword(java.lang.String newPassword) throws javax.resource.ResourceException
newPassword
- The new password value.
javax.resource.ResourceException
- If
newPassword contains more than the maximum
number of characters (8).getPassword()
public void setUserName(java.lang.String newUserName) throws javax.resource.ResourceException
newUserName
- The new userName value.
javax.resource.ResourceException
- If
newUserName contains more than the maximum
number of characters (8).getUserName()