How to Create an Audit Provider for JBoss EAP

SampleAuditProvider.java

import org.jboss.security.audit.AbstractAuditProvider;
import org.jboss.security.audit.AuditEvent;

public final class SampleAuditProvider extends AbstractAuditProvider {

  @Override
  public void audit(final AuditEvent auditEvent) {
  }

}

jboss-web.xml

<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
  <security-domain>SampleSecurityDomain</security-domain>
  <disable-audit>false</disable-audit> <!-- the default is true -->
</jboss-web>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s