BEA WebLogic User Manual page 279

Adapter for sap
Hide thumbs Also See for WebLogic:
Table of Contents

Advertisement

public class RFC implements com.bea.jws.WebService
{
/**
* @common:control
*/
private resources.RFCControl RFCControl;
static final long serialVersionUID = 1L;
/**
* @common:operation
*/
public void RFC_CUSTOMER_GET(RFCControl.RFC_CUSTOMER_GET input)
throws Exception
File outFile=new File("RESULTS.txt"); //creating an output file
FileWriter out=new FileWriter(outFile); //creating a fileWriter for
the output file
long diff=0; //used to store the execution time
Calendar cal_start=Calendar.getInstance(TimeZone.getTimeZone("EST"));
//creating a start calendar
System.out.println("<<<< start: "+ cal_start.getTimeInMillis());
//Display the start time of execution to the WEBLOGIC CONSOLE
cal_end=Calendar.getInstance(TimeZone.getTimeZone("EST")); //create end
calendar
Display the end time of execution to the WEBLOGIC CONSOLE
//Calculating the difference (execution time)
//Displaying the execution time to the WEBLOGIC Console
//writing to file
out.write("end time: "+cal_end.getTimeInMillis()+"\n");
out.write("execution time : "+diff+"\n");
out.close(); //closing file
BEA WebLogic Adapter for SAP User's Guide
{
RFCControl.RFC_CUSTOMER_GET(input);
Calendar
System.out.println("<<<< end: "+ cal_end.getTimeInMillis());
diff=cal_end.getTimeInMillis()-cal_start.getTimeInMillis();
System.out.println("<<<< EXECUTION time in Milliseconds:" +diff);
out.write( "start time: "+ cal_start.getTimeInMillis()+"\n");
Using WebLogic Workshop to Access Web Services
C-21

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WebLogic and is the answer not in the manual?

Table of Contents