public class JNDIAuditorEJB extends AuditorBase implements AuditorRemote
Modifier and Type | Field and Description |
---|---|
private ConnectionFactory |
cf |
private SessionContext |
ctx |
private EntityManager |
em |
private static org.slf4j.Logger |
log |
private Boolean |
publishJMS |
private Topic |
topic |
Constructor and Description |
---|
JNDIAuditorEJB() |
Modifier and Type | Method and Description |
---|---|
int |
audit(String message) |
boolean |
haveConnectionFactory() |
boolean |
havePersistenceContext() |
boolean |
haveTopic() |
void |
init() |
boolean |
isPublishJMS() |
close, close, persistRecord, publishRecord, setConnectionFactory, setEntityManager, setLog, setPublishJMS, setTopic
private static final org.slf4j.Logger log
private Boolean publishJMS
private EntityManager em
private ConnectionFactory cf
private Topic topic
private SessionContext ctx
@PostConstruct public void init()
public boolean isPublishJMS()
isPublishJMS
in interface AuditorRemote
public boolean havePersistenceContext()
havePersistenceContext
in interface AuditorRemote
public boolean haveTopic()
haveTopic
in interface AuditorRemote
public boolean haveConnectionFactory()
haveConnectionFactory
in interface AuditorRemote
public int audit(String message)
audit
in interface AuditorRemote
audit
in class AuditorBase
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.