com.ibm.connector2.hod
Class J2HODVTManagedConnectionFactory

java.lang.Object
  |
  +--com.ibm.connector2.hod.J2HODBaseManagedConnectionFactory
        |
        +--com.ibm.connector2.hod.J2HODVTManagedConnectionFactory
All Implemented Interfaces:
javax.resource.spi.ManagedConnectionFactory, java.io.Serializable

public class J2HODVTManagedConnectionFactory
extends J2HODBaseManagedConnectionFactory

This class defines a ManagedConnectionFactory specification which holds all relevant connection properties.

If you want to use the SSL feature, you need the full Host-On-Demand (HOD) product. You have to create a CustomizedCAs class file. The HOD Administration Guide shows you how to create this file. After this file is created, you place it in \IBMVJava\project_resources\your_project directory.

Properties

The following table lists additional properties for VT from the base:

Property Name Type

Default

Access
CodePage String ECLSession.SESSION_VT_CODE_PAGE_DEFAULT get/set
ScreenSize String ECLSession.SESSION_PS_24X80_STR get/set
VTAutowrap Boolean false get/set
VTLocalEcho Boolean false get/set
VTNewLine Boolean true get/set
VTTerminalType String ECLSession.SESSION_VT_TERMINAL_TYPE_DEFAULT get/set

See Also:
Serialized Form

Fields inherited from class com.ibm.connector2.hod.J2HODBaseManagedConnectionFactory
CONNECTION_TIMEOUT_DEFAULT, RAS_TRACE_ENTRY_EXIT, RAS_TRACE_ERROR_EXCEPTION, RAS_TRACE_INTERNAL, RAS_TRACE_INTERNAL_NATIVE, RAS_TRACE_OFF
 
Constructor Summary
J2HODVTManagedConnectionFactory()
          J2HODVTManagedConnectionFactory constructor
 
Method Summary
 javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
          Creates a new physical connection to the underlying EIS resource manager,
 java.lang.String getCodePage()
          Gets the codePage property (java.lang.String) value.
 java.lang.String getScreenSize()
          Gets the screenSize property (java.lang.String) value.
 java.lang.Boolean getVTAutoWrap()
          Gets the VTAutoWrap property (java.lang.Boolean) value.
 java.lang.Boolean getVTLocalEcho()
          Gets the VTLocalEcho property (java.lang.Boolean) value.
 java.lang.Boolean getVTNewLine()
          Gets the VTNewLine property (java.lang.Boolean) value.
 java.lang.String getVTTerminalType()
          Gets the VTTerminalType property (java.lang.String) value.
 void setCodePage(java.lang.String codePage)
          Sets the codePage property (java.lang.String) value.
 void setScreenSize(java.lang.String screenSize)
          Sets the screenSize property (java.lang.String) value.
 void setVTAutoWrap(java.lang.Boolean VTAutoWrap)
          Sets the VTAutoWrap property (java.lang.Boolean) value.
 void setVTLocalEcho(java.lang.Boolean VTLocalEcho)
          Sets the VTLocalEcho property (java.lang.Boolean) value.
 void setVTNewLine(java.lang.Boolean VTNewLine)
          Sets the VTNewLine property (java.lang.Boolean) value.
 void setVTTerminalType(java.lang.String VTTerminalType)
          Sets the VTTerminalType property (java.lang.String) value.
 
Methods inherited from class com.ibm.connector2.hod.J2HODBaseManagedConnectionFactory
createConnectionFactory, createConnectionFactory, equals, getConnectionTimeout, getLogonLogoffClassName, getLogWriter, getPassword, getPortNumber, getServerName, getSessionName, getSSL, getSSLServerAuthentication, getTraceLevel, getUserName, getUseUserData, hashCode, isReauthentication, matchManagedConnections, setConnectionTimeout, setLogonLogoffClassName, setLogWriter, setPassword, setPortNumber, setReauthentication, setServerName, setSessionName, setSSL, setSSLServerAuthentication, setTraceLevel, setUserName, setUseUserData
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2HODVTManagedConnectionFactory

public J2HODVTManagedConnectionFactory()
J2HODVTManagedConnectionFactory constructor
Method Detail

createManagedConnection

public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
                                                                    javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
                                                             throws javax.resource.ResourceException
Creates a new physical connection to the underlying EIS resource manager,

ManagedConnectionFactory uses the security information (passed as Subject) and additional ConnectionRequestInfo (which is specific to ResourceAdapter and opaque to application server) to create this new connection.

This method returns a ManagedConnection instance that is the best match for handling the connection allocation request.

Parameters:
subject - javax.security.auth.Subject - caller's security information
connectionRequestInfo - ConnectionRequestInfo - additional resource adapter specific connection request information
Returns:
javax.resource.spi.ManagedConnection - J2HODVTManagedConnectionFactory instance
Throws:
javax.resource.ResourceException - - generic exception

getCodePage

public java.lang.String getCodePage()
Gets the codePage property (java.lang.String) value.
Returns:
java.lang.String - The codePage property value
See Also:
setCodePage(java.lang.String)

getScreenSize

public java.lang.String getScreenSize()
Gets the screenSize property (java.lang.String) value.
Returns:
java.lang.String - The screenSize property value
See Also:
setScreenSize(java.lang.String)

getVTAutoWrap

public java.lang.Boolean getVTAutoWrap()
Gets the VTAutoWrap property (java.lang.Boolean) value.
Returns:
java.lang.Boolean - The VTAutoWrap property value
See Also:
setVTAutoWrap(java.lang.Boolean)

getVTLocalEcho

public java.lang.Boolean getVTLocalEcho()
Gets the VTLocalEcho property (java.lang.Boolean) value.
Returns:
java.lang.Boolean - The VTLocalEcho property value
See Also:
setVTLocalEcho(java.lang.Boolean)

getVTNewLine

public java.lang.Boolean getVTNewLine()
Gets the VTNewLine property (java.lang.Boolean) value.
Returns:
java.lang.Boolena - The VTNewLine property value
See Also:
setVTNewLine(java.lang.Boolean)

getVTTerminalType

public java.lang.String getVTTerminalType()
Gets the VTTerminalType property (java.lang.String) value.
Returns:
java.lang.String - The VTTerminalType property value
See Also:
setVTTerminalType(java.lang.String)

setCodePage

public void setCodePage(java.lang.String codePage)
Sets the codePage property (java.lang.String) value.
Parameters:
codePage - java.lang.String - The new value for the property
See Also:
getCodePage()

setScreenSize

public void setScreenSize(java.lang.String screenSize)
Sets the screenSize property (java.lang.String) value.
Parameters:
screenSize - java.lang.String - The new value for the property
See Also:
getScreenSize()

setVTAutoWrap

public void setVTAutoWrap(java.lang.Boolean VTAutoWrap)
Sets the VTAutoWrap property (java.lang.Boolean) value.
Parameters:
VTAutoWrap - java.lang.Boolean - The new value for the property
See Also:
getVTAutoWrap()

setVTLocalEcho

public void setVTLocalEcho(java.lang.Boolean VTLocalEcho)
Sets the VTLocalEcho property (java.lang.Boolean) value.
Parameters:
VTLocalEcho - java.lang.Boolean - The new value for the property
See Also:
getVTLocalEcho()

setVTNewLine

public void setVTNewLine(java.lang.Boolean VTNewLine)
Sets the VTNewLine property (java.lang.Boolean) value.
Parameters:
VTNewLine - java.lang.Boolean - The new value for the property
See Also:
getVTNewLine()

setVTTerminalType

public void setVTTerminalType(java.lang.String VTTerminalType)
Sets the VTTerminalType property (java.lang.String) value.
Parameters:
VTTerminalType - java.lang.String - The new value for the property
See Also:
getVTTerminalType()