com.ibm.vap.cciadapter.ims
Class IMSAdapter

java.lang.Object
  |
  +--com.ibm.vap.generic.ServerAdapter
        |
        +--com.ibm.vap.cciadapter.CCIAdapter
              |
              +--com.ibm.vap.cciadapter.ims.IMSAdapter

public class IMSAdapter
extends CCIAdapter

This server adapter class is used by the VisualAge Pacbase Runtime to communicate with the server using J2EE connectors through IMS Connect protocol.

Sample code :

	com.ibm.connector2.ims.ico.IMSManagedConnectionFactory imsmcf = new com.ibm.connector2.ims.ico.IMSManagedConnectionFactory();
	imsmcf.setHostName("xxx.xxx.xxx.xxx.xxx");
	imsmcf.setPortNumber(new Integer(4000));
	imsmcf.setDataStoreName("DATASTORE");
	imsmcf.setTraceLevel(new Integer(2));
	imsmcf.setUserName("USER");
	imsmcf.setPassword("PASSWORD");
	imsmcf.setGroupName("GROUPNAME");
	 com.ibm.connector2.ims.ico.IMSConnectionFactory imscf= (com.ibm.connector2.ims.ico.IMSConnectionFactory)imsmcf.createConnectionFactory();

	com.ibm.connector2.ims.ico.IMSConnectionSpec imscs = new com.ibm.connector2.ims.ico.IMSConnectionSpec();
	com.ibm.connector2.ims.ico.IMSInteractionSpec imsis = new com.ibm.connector2.ims.ico.IMSInteractionSpec();
	imsis.setInteractionVerb(com.ibm.connector2.ims.ico.IMSInteractionSpec.SYNC_SEND_RECEIVE);
	 
	try {
		com.ibm.vap.cciadapter.ims.IMSAdapter imsa = new com.ibm.vap.cciadapter.ims.IMSAdapter(imscf, imscs, imsis);
		imsa.setHostCodePage("Cp037");
		imsa.setTransactionName("TRANS");
		imsa.setCommareaLength(8192);
		com.ibm.vap.generated.proxies.CustomerProxyLv proxy = new com.ibm.vap.generated.proxies.CustomerProxyLv();
		proxy.setServerAdapter(imsa);
		proxy.selectInstances();
		return proxy.rows();
	} catch (com.ibm.vap.generic.CommunicationError ce) {
		return ce.getMessage();
	}
 

Since:
3.0v06
See Also:
ServerAdapter

Constructor Summary
IMSAdapter()
          IMSAdapter constructor comment.
IMSAdapter(javax.resource.cci.ConnectionFactory connectionFactory, javax.resource.cci.ConnectionSpec connection, javax.resource.cci.InteractionSpec interaction)
          IMSAdapter constructor comment.
 
Method Summary
 int getCommareaLength()
          retrieves the messageLength attribut.
 java.lang.String getTransactionName()
           
 void setCommareaLength(int newValue)
          Sets the commareaLength attribut.
 void setTransactionName(java.lang.String tn)
           
 
Methods inherited from class com.ibm.vap.cciadapter.CCIAdapter
addPropertyChangeListener, disconnect, getConnectionFactory, getConnectionSpec, getHostCodePage, getInteractionSpec, getProperty, removePropertyChangeListener, requireRequester, setConnectionFactory, setConnectionSpec, setHostCodePage, setInteractionSpec, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IMSAdapter

public IMSAdapter()
IMSAdapter constructor comment.

IMSAdapter

public IMSAdapter(javax.resource.cci.ConnectionFactory connectionFactory,
                  javax.resource.cci.ConnectionSpec connection,
                  javax.resource.cci.InteractionSpec interaction)
IMSAdapter constructor comment.
Parameters:
connectionFactory - javax.resource.cci.ConnectionFactory
connection - javax.resource.cci.ConnectionSpec
interaction - javax.resource.cci.InteractionSpec
Method Detail

getCommareaLength

public int getCommareaLength()
retrieves the messageLength attribut.
Overrides:
getCommareaLength in class CCIAdapter
Returns:
the commarea length

getTransactionName

public java.lang.String getTransactionName()

setCommareaLength

public void setCommareaLength(int newValue)
Sets the commareaLength attribut.
Parameters:
length - of the commarea

setTransactionName

public void setTransactionName(java.lang.String tn)


Licensed Materials - Property of IBM - 5655-F37 - (C) Copyright IBM Corp. 1983, 2003. All Rights Reserved.
IBM, VisualAge and Pacbase are trademarks of International Business Machines Corporation registered in the United States, other countries, or both.
Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States,other countries, or both.
Other company, product or service names may be the trademarks or service marks of others.