Skip to Content
0
Former Member
Oct 24, 2006 at 06:44 AM

How To : RFC<--> XI <-->Java Proxy(Sync)

40 Views

How can I make Web Message Adapter Monitoring log file in the Java Proxy Server(JPR).

Message Interface : Synchronous(RFC< >XI< >JPR)

===========EJB Coding===========

public class JPRPOSENDREQTSYNCIN_PortTypeImpl

extends com.sap.aii.proxy.xiruntime.core.AbstractProxy implements

JPRPOSENDREQTSYNCIN_PortType {

public kr.co.amkor.xi.pODemo.JPRPOSENDSYNCRESPDT_Type

jPRPOSENDREQTSYNCIN(kr.co.amkor.xi.pODemo.JPRPOSENDSYNCREQTDT_Type jPRPOSENDSYNCREQTMT)

throws com.sap.aii.proxy.xiruntime.core.SystemFaultException, com.sap.aii.proxy.xiruntime.core.ApplicationFaultException{

Connection con = null;

PreparedStatement ps = null;

ResultSet rs = null;

JPRPOSENDSYNCREQTDT_Type.Item_Type[] zkppList = jPRPOSENDSYNCREQTMT.getItem();

try {

Class.forName("com.ibm.as400.access.AS400JDBCDriver");

String dbURL = "jdbc:as400://XX.XX.XX.XX/XX";

con = DriverManager.getConnection(dbURL, "XX", "XX");

con.setAutoCommit(false);

for (int i = 0; i < zkppList.length; i++) {

ps = con.prepareStatement("select AAA from TEST");

//select Logic

}

/////////// How can I make Web Message Audit log file? //////////////////

JPRPOSENDREQTSYNCIN_PortTypeBean jpb = new JPRPOSENDREQTSYNCIN_PortTypeBean();

MessageSpecifier msg = (MessageSpecifier) jpb.$messageSpecifier();

AuditMessageKey amk = new AuditMessageKey(String.valueOf(msg.getMessageID()), AuditDirection.INBOUND);

Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,"TEST Aduit Log : Module called");

/////////////////////////////////////////////////////////////////////////

outDt.setItem(da);

return outDt;

please help me. thanks

Message was edited by: YongWoo Kim

Message was edited by: YongWoo Kim