cancel
Showing results for 
Search instead for 
Did you mean: 

Write to audit log from Axis Handler

Former Member
0 Kudos

Hi guys,

Using PI 7.11 SP 04 I have deployed the com.sap.aii.af.axisproviderlib.sda containing the libraries for Axis.

This is deployed fine and I can write my Handlers without trouble.

There is only 1 issue bugging me and that is the writing to the Adapter Audit Log. In SAP Note 1039369 FAQ XI Axis Adapter it is described how to write to the Audit log.

I can successfully write to the Channel monitor. But when I try to write to the Audit log data is still just written to the Channel monitor and not the audit log.

So what I have done is:


StatusAgent sa = (StatusAgent) getOption(Constants.MONITOR_AGENT_KEY);
		
Hashtable ht = getOptions();
ht.put("audit", Boolean.TRUE);
ht.put("pivoted", Boolean.TRUE);

sa.reportEvent(Status.OK, "This should be written to audit log but is written to channel monitor", ht);
sa.reportEvent(Status.ERROR, "This should also be written to audit log but is written to channel monitor", ht);

If i print the content of my hashtable in the channel monitor I can see that my entries are put into the table just fine. The 'audit' entry just seems to be completely ignored.

Anyone have and suggestions?

Regards,

Daniel

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Guys,

I need to know what JAR file i need to download for the following packages from SAP PI.

import com.sap.aii.axis.monitor.Status;

import com.sap.aii.axis.monitor.StatusAgent;

import com.sap.aii.axis.utils.Constants;

I am doing AXIS custom modules and i need to write to the PI 7.1 Audit Logs.

Thanks in advance.

Raj

Former Member
0 Kudos

How did you deploy it? I am using the JSPM tool and it does not pick up the SDA file.

Did you used NWDI?

Former Member
0 Kudos

Hi,

I used NWDS.

Best Regards,

Daniel

Former Member
0 Kudos

Hi Daniel,

I am developing Axis Handler.

Can you please help me with few codes and settings we need to deploy it on PI.

Regards,

Akshay

Former Member
0 Kudos

After a good amount of decompilation i learned that the message id must also be included in the hashtable.

After adding this it all works.

/Daniel