Previous Topic Next topic Print topic


Class EnterpriseServerBean

EnterpriseServerBean Class declaration.
java.lang.Object

extended bycom.microfocus.cics.connector.EnterpriseServerBean

Class Specifications

public class EnterpriseServerBean

extends Object

Constructor Summary

EnterpriseServerBean()
Constructor for an Enterprise Server bean; host defaults to localhost and port number defaults to 9003.
EnterpriseServerBean(String host, int port)
Constructor for a stateless Enterprise Server Bean, specifying a host name and a port number.
EnterpriseServerBean(String host, int port, boolean isInitial)
Constructor for an Enterprise Server Bean, specifying a host and port number, and specifying whether or not the Bean is stateful or stateless.
EnterpriseServerBean(String host, int port, boolean isInitial, boolean debugOrTrace)
Constructor for an Enterprise Server Bean, specifying a host and port number, specifying whether or not the Bean is stateful or stateless, and specifying the type of trace debug information displayed.
EnterpriseServerBean(String host, int port, boolean isInitial, boolean debugOrTrace, boolean isSecure)
Constructor for an Enterprise Server Bean, specifying a host and port number, specifying whether or not the Bean is stateful or stateless, specifying the type of debugOrTrace information displayed, and specifying whether or not to use isSecure.

Methods

Method Summary
void beginTransaction()

Begin a transaction.

int cobcall(String program, com.microfocus.cobol.lang.ParameterList inParameters, com.microfocus.cobol.lang.ParameterList outParameters)

Call a COBOL Server with a set of input and output parameters.

void commitTransaction()

Commit a transaction.

void dispose()

Dispose of the Bean.

int getReadTimeout()
String getSessionId()
static boolean IsGUIDGenerationStyleSecure()
boolean isStateful()
void rollbackTransaction()

Rollback a transition.

void setCompression(boolean onOrOff)

Set compression.

void setReadTimeout(int inSeconds)
static boolean setSecureGUID(boolean b)
void setStateful(boolean val)
void setTrustStoreName(String trustStoreName)
void setTrustStorePassword(String trustStorePassword)
void xa_commit()
void xa_commit(Xid xid, boolean onePhase)
void xa_end()
void xa_end(Xid xid, int flags)
void xa_forget()
void xa_forget(Xid xid)
void xa_prepare()
void xa_recover()
void xa_rollback()
void xa_rollback(Xid xid)
void xa_start()
void xa_start(Xid xid)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

EnterpriseServerBean
public EnterpriseServerBean()
                     throws com.microfocus.cobol.CobolException

Constructor for an Enterprise Server bean; host defaults to localhost and port number defaults to 9003.

Throws:
com.microfocus.cobol.CobolException
EnterpriseServerBean
public EnterpriseServerBean(String host, 
                            int port) 
                     throws com.microfocus.cobol.CobolException			 

Constructor for a stateless Enterprise Server Bean, specifying a host name and a port number.

Parameters:
host Host name
port Port number
Throws:
com.microfocus.cobol.CobolException
EnterpriseServerBean
public EnterpriseServerBean(String host, 
                            int port
                            boolean isInitial) 
                     throws com.microfocus.cobol.CobolException			 

Constructor for an Enterprise Server Bean, specifying a host and port number, and specifying whether or not the Bean is stateful or stateless.

Parameters:
host Host name
port Port number
isInitial Stateful bean, set to: false

Stateless bean, set to: true

Throws:
com.microfocus.cobol.CobolException
EnterpriseServerBean
public EnterpriseServerBean(String host, 
                            int port
                            boolean isInitial, 
                            boolean debugOrTrace) 
                     throws com.microfocus.cobol.CobolException			 

Constructor for an Enterprise Server Bean, specifying a host and port number, specifying whether or not the Bean is stateful or stateless, and specifying the type of trace debug information displayed.

Parameters:
host Host name
port Port number
isInitial Stateful bean, set to: false

Stateless bean, set to: true

debugOrTrace Display just trace information: false

Display transport and trace (complete) information: true

Throws:
com.microfocus.cobol.CobolException
EnterpriseServerBean
public EnterpriseServerBean(String host, 
                            int port
                            boolean isInitial, 
                            boolean debugOrTrace,
                            boolean isSecure) 
                     throws com.microfocus.cobol.CobolException			 

Constructor for an Enterprise Server Bean, specifying a host and port number, specifying whether or not the Bean is stateful or stateless, specifying the type of debugOrTrace information displayed, and specifying whether or not to use isSecure.

Parameters:
host Host name
port Port number
isInitial Stateful bean, set to: false

Stateless bean, set to: true

debugOrTrace Display just trace information: false

Display transport and trace (complete) information: true

isSecure
Throws:
com.microfocus.cobol.CobolException

Method Detail

beginTransaction
public void beginTransaction() 
                    throws com.microfocus.cobol.CobolException

Begin a transaction.

Throws:
com.microfocus.cobol.CobolException
cobcall
public int cobcall(String program, 
                   com.microfocus.cobol.lang.ParameterList inParameters,
                   com.microfocus.cobol.lang.ParameterList outParameters)
            throws com.microfocus.cobol.CobolException,
                   Exception

Call a COBOL Server with a set of input and output parameters.

Parameters:
program
inParameters Input parameters
outParameters Output parameters
Throws:
com.microfocus.cobol.CobolException

Exception

commitTransaction
public void commitTransaction()
               throws com.microfocus.cobol.CobolException

Commit a transaction.

Throws:
com.microfocus.cobol.CobolException
dispose
public void dispose()
                 throws com.microfocus.cobol.CobolException

Dispose of a bean.

Throws:
com.microfocus.cobol.CobolException
getReadTimeout
public int getReadTimeout()
getSessionId
public String getSessionId()
IsGUIDGenerationStyleSecure
public static boolean IsGUIDGenerationStyleSecure()
isStateful
public boolean isStateful()
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
rollbackTransaction
public void rollbackTransaction() 
               throws com.microfocus.cobol.CobolException

Rollback a transition.

Throws:
com.microfocus.cobol.CobolException
setCompression
public void setCompression(boolean onOrOff)

Set compression.

setReadTimeout
public void setReadTimeout(int inSeconds) 
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
setSecureGUID
protected static setSecureGUID(boolean b)
setStateful
public void setStateful()
Throws:
com.microfocus.cobol.CobolException
setTrustStoreName
public void setTrustStoreName(String trustStoreName)
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
setTrustStorePassword
public void setTrustStorePassword(String trustStorePassword)
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
xa_commit
public void xa_commit()
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
xa_commit
public void xa_commit(Xid xid, 
                      boolean onePhase)
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
xa_end
public void xa_end()
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
xa_end
public void xa_end(Xid xid, 
                   int flags)
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
xa_forget
public void xa_forget()
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
xa_forget
public void xa_forget(Xid xid)
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
xa_prepare
public void xa_prepare()
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
xa_recover
public void xa_recover()
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
xa_rollback
public void xa_rollback()
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
xa_rollback
public void xa_rollback(Xid xid)
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
xa_start
public void xa_start()
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
xa_start
public void xa_start(Xid xid)
               throws com.microfocus.cobol.CobolException
Throws:
com.microfocus.cobol.CobolException
Previous Topic Next topic Print topic