Operation
EntireXBroker (java.util.Properties p_prop), in Class EntireXBroker
Documentation
public static void
main( String [] args )
{
///////////////////////////////////////////////////////////////
// load all property files
//
PropertyManager.init( "D:\\code\\projects\\fccsc\\manager\\properties" );
PropertyManager.loadAll();
///////////////////////////////////////////////////////////////
// load the log4j properties
//
Properties propLog4j = (Properties) PropertyManager.getProperty( "log4j.properties" );
PropertyConfigurator.configure( propLog4j );
for ( int i = 0; i < 2; i++)
{
new Thread()
{
String data = "" +
"000736TCP FEDI00FLATRANFORMFLACENTSERV04200 " +
" 000001REQUEST Y\n" +
" 000010PROCESS VERIFY \n" +
" 000016STATEKEYT0000531M0000004\n" +
" 000015IPADDRES10.0.0.15 \n" +
" 000005PORTNUMB03006\n" +
" 000050RETNDATAWA00, SWWP0F00P0001267 \n" +
" 000030HTMLKEY \n" +
////" 000012STUID 123456789 \n" +
" 000012STUID 265155136 \n" +
////" 000015PIN/PW 1111 \n" +
" 000015PIN/PW 1254 \n" +
" 000001WAIT N\n" +
" 000005RETNCODE00000\n" +
" 000240RETNMESS \n" +
"";
public void run()
{
try
{
//System.out.println( "running [" + this.getName() + "] START" );
Properties prop = (Properties) PropertyManager.getProperty( "message.VERIFY.properties" );
EntireXBroker broker = new EntireXBroker( prop );
broker.sendMessage( data );
// get response message
String response = broker.getResponse();
System.out.println( "response [" + this.getName() + "] size [" + response.length() + "]" );
//System.out.println( "response [" + response + "]" );
//System.out.println( "running [" + this.getName() + "] END" );
}
catch (BrokerException ex)
{
ex.printStackTrace();
}
}
}.start();
}
//ControlBlock ediCB = new ControlBlock( response );
//StandardDataBlock ediSB = new StandardDataBlock( response );
//System.out.println( "CB [" + ediCB + "]" );
//System.out.println( "SB [" + ediSB + "]" );
}
This class encapsulates the ability to communicate with the
Entire X Broker on the mainframe using the Entire X Java
interface client.
Parameters to instantiate this object are loaded from a properties file.
@param p_prop a properties object.
Protocol | | Qualification | |
Exceptions | | Size | |
Time | | Concurrency | Sequential |
Export Control | PublicAccess | | |
Preconditions
Postconditions
Semantics
Property Settings
Java
GenerateFullyQualifiedThrows | | Abstract | False |
Static | False | Final | False |
Native | False | Synchronized | False |
Strictfp | False | GenerateFullyQualifiedArgument | |
GenerateFullyQualifiedReturn | False | ReplaceExistingCode | True |