com.microfocus.cobol.connector.cci.CobolConnection
public class CobolConnection
extends Object
implements MFCobolConnection, Serializable
See Also:
protected | CobolConnection(CobolManagedConnection mc)
Cobol Connection is obtained through a CobolConnection Factory. |
Method Summary | |
---|---|
String | getSessionId() |
void | setEJBContext(EJBContext e)
Set the EJB context that the CobolConnection can later use to determine if the bean is stateful or stateless. The EJB context is set to be transient. |
EJBContext | getEJBContext()
Get the EJBContext. |
Interaction | CreateInteraction()
Create an interaction with the Cobol Server. |
LocalTransaction | getLocalTransaction()
Get the Local Transaction instance that needs to be used by the bean. |
ResultSetInfo | getResultSetInfo()
Result Set is not supported. |
void | close()
Close the CobolConnection handle. |
ConnectionMetaData | getMetaData()
Get an instance of Connection Meta Data. |
static void | dispose(String sessionId)
Dispose a Cobol Connection. This needs to be called from stateful EJB's ejbRemove only. |
void | activate() |
void | passivate() |
protected void | associateConnection(CobolManagedConnection newMc)
Associate a connection handle with a physical managed connection. |
protected void | invalidate() |
protected CobolManagedConnection | getManagedConnection()
Associate a connection handle with a physical managed connection . |
void | resetXAFlow() |
void | resetLocalTransaction() |
protected CobolConnection(CobolManagedConnection mc)
Cobol Connection is obtained through a CobolConnection Factory.
mc | The Managed Connection instance. |
public String getSessionId() throws ResourceException
public void setEJBContext(EJBContext e) throws RemoteException
Set the EJB context that the CobolConnection can later use to determine if the bean is stateful or stateless. The EJB context is set to be transient.
e | The EJBContext to be set. |
public EJBContext getEJBContext()
Get the EJBContext.
public Interaction createInteraction() throws ResourceException
Create an interaction with the Cobol Server.
public LocalTransaction getLocalTransaction() throws ResourceException
Get the Local Transaction instance that needs to be used by the bean.
public ResultSetInfo getResultSetInfo() throws ResourceException
Result Set is not supported.
public void close() throws ResourceException
public ConnectionMetaData getMetaData() throws ResourceException
Get an instance of Connection Meta Data.
public static void dispose(String sessionId) throws ResourceException
Dispose a Cobol Connection. This needs to be called from stateful EJB's ejbRemove only.
public void activate() throws ResourceException
public void passivate() throws ResourceException
protected void associateConnection(CobolManagedConnection newMc, String sessionId) throws ResourceException
Associate a connection handle with a physical managed connection.
newMc | The Managed Connection instance. |
protected void invalidate()
protected CobolManagedConnection getManagedConnection()
Get the Managed Connection associated with this connection handle.
public void resetXAFlow()
public void resetLocalTransaction()