on 10-24-2006 7:44 AM
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
Hi,
try not to use this kind of logging
using the visual admin log service is much better:
you can find sample code in this presentation:
https://www.sdn.sap.com/irj/sdn/webinar?rid=/library/uuid/64a6bdab-0c01-0010-079a-b3707717cecd
with this you can control your logging
so it's much better approach
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.